From Control Structures to
ST
Objects – 10th Edition
UV
TEST BANK &
IA
SOLUTIONS
?_
MANUAL
AP
PR
Tony Gaddis
OV
Comprehensive Test Bank & Solutions
Manual for Instructors and Students
ED
© Tony Gaddis. All rights reserved. Reproduction or distribution without permission is
prohibited.
??
©MEDCONNOISSEUR
, Test Bank & Solution Manual for Starting Out with C++ from Control
Structures to Objects, 10th Edition
Author: Tony Gaddis
ST
Chapter 1: Introduction to Computers and Programming
Chapter 2: Introduction to C++
Chapter 3: Expressions and Interactivity
UV
Chapter 4: Making Decisions
Chapter 5: Loops and Files
Chapter 6: Functions
Chapter 7: Arrays and Vectors
Chapter 8: Searching and Sorting Arrays
IA
Chapter 9: Pointers
Chapter 10: Characters, C-Strings, and More about the string Class
Chapter 11: Structured Data
?_
Chapter 12: Advanced File Operations
Chapter 13: Introduction to Classes
Chapter 14: More about Classes
Chapter 15: Inheritance, Polymorphism, and Virtual Functions
AP
Chapter 16: Exceptions and Templates
Chapter 17: The Standard Template Library
Chapter 18: Linked Lists
Chapter 19: Stacks and Queues
PR
Chapter 20: Recursion
Chapter 21: Binary Trees
OV
ED
??
©MEDCONNOISSEUR
, Starting Out with C++ from Control Structures to Objects, 10e (Gaddis)
Chapter 1 Introduction to Computers and Programming
TRUE/FALSE
1. Software engineering is a field that encompasses designing, writing, testing, debugging, documenting,
ST
modifying, and maintaining computer programs.
ANS: T
UV
2. Pseudocode is a form of a program statement that will always evaluate to "false."
ANS: F
3. In programming, the terms "line" and "statement" always mean the same thing.
IA
ANS: F
4. In C++, key words are written in all lowercase letters.
?_
ANS: T
5. The preprocessor executes after the compiler.
AP
ANS: F
6. Machine language is an example of a high-level language.
ANS: F
PR
7. A CPU only understands machine language instructions.
ANS: T
OV
8. Programs are often referred to as hardware.
ANS: F
9. The CPU is the most important component in a computer because without it, the computer could not
run software.
ED
ANS: T
10. The term "bit" stands for binary digit.
??
ANS: T
, MULTIPLE CHOICE
1. What does the term hardware refer to?
a. The relative difficulty of writing computer programs
b. The physical components that make up a computer
c. The way a computer's storage space is organized
ST
d. The logical flow of instructions
e. None of these
ANS: B
UV
2. A(n) is a set of instructions that the computer follows to solve a problem.
a. compiler
b. linker
c. program
d. operator
e. None of these
IA
ANS: C
3. Computer programs are also known as
?_
a. hardware
b. firmware
c. software
d. Any of these
e. None of these
AP
ANS: C
4. At the heart of a computer is its central processing unit. The CPU's job is:
a. To fetch instructions
b. To carry out the operations commanded by the instructions
PR
c. To produce some outcome or resultant information
d. All of these
e. None of these
ANS: D
OV
5. A computer stores a program while it is running
a. in main memory
b. on a hard disk
c. on the computer monitor
d. in the CPU
e. None of these
ED
ANS: A
6. The decodes an instruction and generates an electronic signal.
a. Arithmetic and Logic Unit
??
b. Main memory
c. BIOS
d. Control Unit
e. None of these