Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
Chapter 1: Preliminaries
TRUE/FALSE
1. Frequently, when you don’t know the final conversion factor, making intermediate conversions can get
you to the correct result easily.
ANS: T PTS: 1 REF: 9
2. Another term for a program or set of programs is software.
ANS: T PTS: 1 REF: 16
3. A top-level structure diagram, also called a first-level structure diagram, represents the first overall
structure of the program the designer has selected.
ANS: T PTS: 1 REF: 18
4. Selection provides the capability to make a choice between different operations, depending on the
result of some condition.
ANS: T PTS: 1 REF: 19
5. Testing reveals all existing program errors.
ANS: F PTS: 1 REF: 19
6. It is critical to make and keep backup copies of the program at each step of the programming and
debugging process.
ANS: T PTS: 1 REF: 21
7. Because each class of computers—such as IBM, Apple, and Hewlett-Packard—has its own particular
machine language, writing machine-language programs is tedious and time consuming.
ANS: T PTS: 1 REF: 29
8. C++ is predominantly a compiled language.
ANS: T PTS: 1 REF: 30
9. Until the 1990s, the majority of high-level programming languages were object-oriented.
ANS: F PTS: 1 REF: 32
1
,Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
10. Structured programs are created using a set of well-defined structures organized into individual
programming sections.
ANS: T PTS: 1 REF: 34
MULTIPLE CHOICE
1. A ____ is a self-contained set of instructions used to operate a computer to produce a specific result.
a. programming language c. machine programming technique
b. computer program d. programming technique
ANS: B PTS: 1 REF: 16
2. The software development procedure consists of three overlapping phases: program development and
design, documentation, and ____.
a. testing c. maintenance
b. analysis d. programming
ANS: C PTS: 1 REF: 16
3. ____ is concerned with creating readable, efficient, reliable, and maintainable programs and systems.
a. Software engineering c. System approach
b. Scientific method d. Software development
ANS: A PTS: 1 REF: 16
4. ____ is the first step in the program development and design phase.
a. Developing a solution c. Coding the solution
b. Analyzing the problem d. Testing the program
ANS: B PTS: 1 REF: 17
5. ____ defines the order in which the program executes instructions.
a. Iteration c. Sequence
b. Invocation d. Selection
ANS: C PTS: 1 REF: 19
6. The purpose of ____ is to verify that a program works correctly and actually fulfills its requirements.
a. testing c. analyzing
b. coding d. designing
ANS: A PTS: 1 REF: 19
7. ____, also referred to as “looping” and “repetition,” makes it possible to repeat the same operation
based on the value of a condition.
a. Selection c. Sequence
b. Invocation d. Iteration
ANS: D PTS: 1 REF: 19
2
,Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
8. Although not everybody classifies them in the same way, there are ____ main documents for every
problem solution.
a. three c. five
b. four d. six
ANS: C PTS: 1 REF: 20
9. The ____ phase is concerned with the ongoing correction of problems, revisions to meet changing
needs, and the addition of new features.
a. testing c. analysis and design
b. maintenance d. coding
ANS: B PTS: 1 REF: 21
10. A(n) ____ is defined as a step-by-step sequence of instructions that must terminate and that describe
how the data is to be processed to produce the desired outputs.
a. backup copy c. machine-level program
b. final solution d. algorithm
ANS: D PTS: 1 REF: 23-24
11. When English-like phrases are used to describe the steps in an algorithm, the description is called
____.
a. pseudocode c. a flowchart
b. a formula d. a program
ANS: A PTS: 1 REF: 25
12. When diagrams are used to describe the algorithm, the description is referred to as ____.
a. pseudocode c. a formula
b. a flowchart d. a program
ANS: B PTS: 1 REF: 25
13. Writing of an algorithm by using computer-language statements is called ____ the algorithm.
a. testing c. coding
b. designing d. developing
ANS: C PTS: 1 REF: 27
14. Because ____ are cumbersome to revise and can support unstructured programming practices easily,
they have fallen out of favor by professional programmers.
a. algorithms c. pseudocodes
b. formulas d. flowcharts
ANS: D PTS: 1 REF: 27
15. Machine language programs are also referred to as ____.
a. programming c. executable programs
3
, Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
b. assembly language d. binary instructions
ANS: C PTS: 1 REF: 29
16. Programming languages that use symbolic notation like ADD 1, 2 are referred to as ____.
a. assembly languages c. opcode languages
b. machine languages d. IBM languages
ANS: A PTS: 1 REF: 29
17. Translator programs that convert assembly language programs into machine language programs are
known as ____.
a. opcoders c. translators
b. assemblers d. interpreter
ANS: B PTS: 1 REF: 29
18. Visual Basic, C, C++, and Java are all examples of ____ languages.
a. assembly c. low-level
b. machine-level d. high-level
ANS: D PTS: 1 REF: 30
19. When all statements in a high-level source program are translated as a complete unit before any
statement is executed, the programming language is called a(n) ____ language.
a. interpreted c. compiled
b. assembled d. translated
ANS: C PTS: 1 REF: 30
20. The output produced by a compiler is called a(n) ____, which is a machine language version of the
source code.
a. object program c. assembly program
b. high-level program d. executable program
ANS: A PTS: 1 REF: 31
21. In addition to classifying programming languages as high or low level, they are also classified by
orientation as either ____ or object-oriented.
a. linked c. interpreted
b. procedural d. compiled
ANS: B PTS: 1 REF: 32
22. ____ consists of programs written to perform particular tasks that users require.
a. System software c. Assembly software
b. Compiled software d. Application software
ANS: D PTS: 1 REF: 32
23. The first procedural language was ____.
4
Chapter 1: Preliminaries
Chapter 1: Preliminaries
TRUE/FALSE
1. Frequently, when you don’t know the final conversion factor, making intermediate conversions can get
you to the correct result easily.
ANS: T PTS: 1 REF: 9
2. Another term for a program or set of programs is software.
ANS: T PTS: 1 REF: 16
3. A top-level structure diagram, also called a first-level structure diagram, represents the first overall
structure of the program the designer has selected.
ANS: T PTS: 1 REF: 18
4. Selection provides the capability to make a choice between different operations, depending on the
result of some condition.
ANS: T PTS: 1 REF: 19
5. Testing reveals all existing program errors.
ANS: F PTS: 1 REF: 19
6. It is critical to make and keep backup copies of the program at each step of the programming and
debugging process.
ANS: T PTS: 1 REF: 21
7. Because each class of computers—such as IBM, Apple, and Hewlett-Packard—has its own particular
machine language, writing machine-language programs is tedious and time consuming.
ANS: T PTS: 1 REF: 29
8. C++ is predominantly a compiled language.
ANS: T PTS: 1 REF: 30
9. Until the 1990s, the majority of high-level programming languages were object-oriented.
ANS: F PTS: 1 REF: 32
1
,Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
10. Structured programs are created using a set of well-defined structures organized into individual
programming sections.
ANS: T PTS: 1 REF: 34
MULTIPLE CHOICE
1. A ____ is a self-contained set of instructions used to operate a computer to produce a specific result.
a. programming language c. machine programming technique
b. computer program d. programming technique
ANS: B PTS: 1 REF: 16
2. The software development procedure consists of three overlapping phases: program development and
design, documentation, and ____.
a. testing c. maintenance
b. analysis d. programming
ANS: C PTS: 1 REF: 16
3. ____ is concerned with creating readable, efficient, reliable, and maintainable programs and systems.
a. Software engineering c. System approach
b. Scientific method d. Software development
ANS: A PTS: 1 REF: 16
4. ____ is the first step in the program development and design phase.
a. Developing a solution c. Coding the solution
b. Analyzing the problem d. Testing the program
ANS: B PTS: 1 REF: 17
5. ____ defines the order in which the program executes instructions.
a. Iteration c. Sequence
b. Invocation d. Selection
ANS: C PTS: 1 REF: 19
6. The purpose of ____ is to verify that a program works correctly and actually fulfills its requirements.
a. testing c. analyzing
b. coding d. designing
ANS: A PTS: 1 REF: 19
7. ____, also referred to as “looping” and “repetition,” makes it possible to repeat the same operation
based on the value of a condition.
a. Selection c. Sequence
b. Invocation d. Iteration
ANS: D PTS: 1 REF: 19
2
,Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
8. Although not everybody classifies them in the same way, there are ____ main documents for every
problem solution.
a. three c. five
b. four d. six
ANS: C PTS: 1 REF: 20
9. The ____ phase is concerned with the ongoing correction of problems, revisions to meet changing
needs, and the addition of new features.
a. testing c. analysis and design
b. maintenance d. coding
ANS: B PTS: 1 REF: 21
10. A(n) ____ is defined as a step-by-step sequence of instructions that must terminate and that describe
how the data is to be processed to produce the desired outputs.
a. backup copy c. machine-level program
b. final solution d. algorithm
ANS: D PTS: 1 REF: 23-24
11. When English-like phrases are used to describe the steps in an algorithm, the description is called
____.
a. pseudocode c. a flowchart
b. a formula d. a program
ANS: A PTS: 1 REF: 25
12. When diagrams are used to describe the algorithm, the description is referred to as ____.
a. pseudocode c. a formula
b. a flowchart d. a program
ANS: B PTS: 1 REF: 25
13. Writing of an algorithm by using computer-language statements is called ____ the algorithm.
a. testing c. coding
b. designing d. developing
ANS: C PTS: 1 REF: 27
14. Because ____ are cumbersome to revise and can support unstructured programming practices easily,
they have fallen out of favor by professional programmers.
a. algorithms c. pseudocodes
b. formulas d. flowcharts
ANS: D PTS: 1 REF: 27
15. Machine language programs are also referred to as ____.
a. programming c. executable programs
3
, Test Bank For C++ for Engineers and Scientists
Chapter 1: Preliminaries
b. assembly language d. binary instructions
ANS: C PTS: 1 REF: 29
16. Programming languages that use symbolic notation like ADD 1, 2 are referred to as ____.
a. assembly languages c. opcode languages
b. machine languages d. IBM languages
ANS: A PTS: 1 REF: 29
17. Translator programs that convert assembly language programs into machine language programs are
known as ____.
a. opcoders c. translators
b. assemblers d. interpreter
ANS: B PTS: 1 REF: 29
18. Visual Basic, C, C++, and Java are all examples of ____ languages.
a. assembly c. low-level
b. machine-level d. high-level
ANS: D PTS: 1 REF: 30
19. When all statements in a high-level source program are translated as a complete unit before any
statement is executed, the programming language is called a(n) ____ language.
a. interpreted c. compiled
b. assembled d. translated
ANS: C PTS: 1 REF: 30
20. The output produced by a compiler is called a(n) ____, which is a machine language version of the
source code.
a. object program c. assembly program
b. high-level program d. executable program
ANS: A PTS: 1 REF: 31
21. In addition to classifying programming languages as high or low level, they are also classified by
orientation as either ____ or object-oriented.
a. linked c. interpreted
b. procedural d. compiled
ANS: B PTS: 1 REF: 32
22. ____ consists of programs written to perform particular tasks that users require.
a. System software c. Assembly software
b. Compiled software d. Application software
ANS: D PTS: 1 REF: 32
23. The first procedural language was ____.
4