• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 66 pages
Exam (elaborations)

STARTING OUT WITH C++: FROM CONTROL STRUCTURES TO OBJECTS (10TH EDITION) — TONY GADDIS COMPLETE REVIEW WITH VERIFIED QUESTIONS DETAILED RATIONALES GRADED A+

Document preview thumbnail
Preview 4 out of 66 pages

STARTING OUT WITH C++: FROM CONTROL STRUCTURES TO OBJECTS (10TH EDITION) — TONY GADDIS COMPLETE REVIEW WITH VERIFIED QUESTIONS DETAILED RATIONALES GRADED A+

Content preview

Page 1 of 66


STARTING OUT WITH C++: FROM CONTROL STRUCTURES
TO OBJECTS (10TH EDITION) — TONY GADDIS COMPLETE
REVIEW WITH VERIFIED QUESTIONS DETAILED
RATIONALES GRADED A+




Starting Out with C++: From Control Structures to Objects (10th Edition) — Tony Gaddis



Original Practice Questions — Starting Out with C++ (10th Edition)

Chapter 1: Introduction to Computers and Programming (Questions 1–15)

1. Which of the following is considered the "brain" of the computer that performs all
calculations and executes instructions?
A) RAM
B) Hard Drive
C) CPU
D) Motherboard

Answer: C
Rationale: The Central Processing Unit (CPU) performs all calculations and executes instructions.
RAM is temporary storage, the hard drive is permanent storage, and the motherboard connects
components .



2. A byte consists of how many bits?
A) 4
B) 8
C) 16
D) 32

,Page 2 of 66


Answer: B
Rationale: A bit is a binary digit (0 or 1). A byte is a group of 8 bits, enough to store one
character like 'A' or '3' .



3. Which type of memory is volatile, meaning it loses its contents when the power is turned
off?
A) ROM
B) Hard Disk
C) Flash Drive
D) RAM

Answer: D
Rationale: Random Access Memory (RAM) is temporary storage used for running programs.
ROM and storage devices retain data without power .



4. Which component is responsible for performing arithmetic operations like addition and
subtraction?
A) Control Unit
B) ALU
C) BIOS
D) Register

Answer: B
Rationale: The Arithmetic Logic Unit (ALU) handles all mathematical calculations and logical
comparisons .



5. A set of well-defined steps to solve a problem is called a(n):
A) Program
B) Syntax
C) Algorithm
D) Flowchart

Answer: C
Rationale: An algorithm is a step-by-step procedure. When written in a programming language,
it becomes a program .

,Page 3 of 66


6. Which of the following is NOT an example of an input device?
A) Keyboard
B) Mouse
C) Printer
D) Scanner

Answer: C
Rationale: A printer is an output device. It receives data from the computer rather than sending
data to it .



7. What does the linker do in the compilation process?
A) Checks for syntax errors
B) Converts high-level code to machine code
C) Combines object code with library code to create an executable
D) Runs the program

Answer: C
Rationale: After compilation, the linker puts everything together into a single runnable file (e.g.,
.exe) .



8. Which language is the closest to what the CPU actually executes?
A) C++
B) Python
C) Java
D) Machine language

Answer: D
Rationale: The CPU directly executes machine language without any translation .



9. A syntax error is:
A) An error in the logic of the program
B) An error in the grammar of the programming language
C) A runtime crash
D) An error that occurs when the program is running

, Page 4 of 66


Answer: B
Rationale: A syntax error is a violation of the programming language's grammar rules. Logic
errors produce incorrect results but the program runs .



10. The programming process begins with:
A) Writing code
B) Testing the program
C) Debugging errors
D) Defining the problem

Answer: D
Rationale: You must clearly understand what the program needs to do before you can write it .



11. The preprocessor directive #include <iostream> is necessary for:
A) Performing math operations
B) Input/output operations
C) String manipulation
D) File operations

Answer: B
Rationale: iostream stands for "input/output stream" and provides cin and cout functionality .



12. The two parts of the CPU are:
A) The output device and the input device
B) The software and the hardware
C) The Control Unit and the Arithmetic and Logic Unit
D) The single-task device and the multi-task device

Answer: C
Rationale: The CPU consists of the Control Unit (fetches and decodes instructions) and the
Arithmetic and Logic Unit (performs calculations) .



13. Programs are normally stored in __________ and loaded into main memory as needed.
A) The input device
B) The output device

Document information

Uploaded on
September 14, 2026
Number of pages
66
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$23.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
176
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions