An Object- Oriented Approach to Programming Logic and Design 4e Joyce Farrell
(Test Bank all Chapters)
- / 4
Chapter 1: An Overview of Computer Programming
TRUE/FALSE
- The two major components of any computer system are its hardware and its software.
ANS: T PTS: 1 REF: 2
- Computer instructions are written in a computer programming language such as Visual Basic, C#,
C++, or Java.
ANS: T PTS: 1 REF: 3
- Language translation software for a computer is called a compiler or interpreter.
ANS: T PTS: 1 REF: 3
- Logical errors are sometimes referred to as structural errors.
ANS: F PTS: 1 REF: 4
- A program that is free of syntax errors is also free of logical errors.
ANS: F PTS: 1 REF: 4
- The two major techniques for developing programs are procedural programming and object-oriented
programming (OOP).
ANS: T PTS: 1 REF: 6
- Writing a program includes planning the logic, coding the program, translating the program into
machine language, and testing the program.
ANS: T PTS: 1 REF: 9
- When writing pseudocode, you need to be careful about syntax.
ANS: F PTS: 1 REF: 14
- In a flowchart, processing symbols are represented by parallelograms.
ANS: F PTS: 1 REF: 15
- In a flowchart, decision symbols are represented by diamonds.
ANS: T PTS: 1 REF: 16
MULTIPLE CHOICE
- ____ is the set of physical devices associated with a computer.
- Software c. Hardware
- Input d. Data
- / 4
ANS: C PTS: 1 REF: 2
- The set of instructions that tell the computer what to do are called ____.
- software c. hardware
- input d. data
ANS: A PTS: 1 REF: 2
- Data items enter the computer system through ____ devices.
- software c. output
- input d. storage
ANS: B PTS: 1 REF: 2
- The rules that govern a programming language are called ____.
- syntax c. structure
- compilers d. constructs
ANS: A PTS: 1 REF: 3
- All computers have temporary, ____ storage, also known as random access memory (RAM).
- processing c. internal
- machine d. external
ANS: C PTS: 1 REF: 3
- The programming statements you write in a programming language are known as the ____ code.
- object c. translated
- source d. external
ANS: B PTS: 1 REF: 3
- Machine language is also called ____ language.
- volatile c. binary
- high-level d. primary
ANS: C PTS: 1 REF: 3
- Misuse of a language’s grammar rules is called a(n) ____ error.
- illegal c. syntax
- logical d. semantic
ANS: C PTS: 1 REF: 3
- When you decide on the correct instructions for a program, you are developing the program’s ____.
- logic c. data file
- syntax d. data entities
ANS: A PTS: 1 REF: 4
- The instruction Myanswer = Mynumber*2 is an example of a(n) ____ operation.
- processing c. data
- numerical d. input
ANS: A PTS: 1 REF: 5
- / 4
- People have been writing modern computer programs since the ____.
- 1940s c. 1960s
- 1950s d. 1970s
ANS: A PTS: 1 REF: 6
- The type of software testing in which the tester does not look at the contents of the program is called
- external c. internal
- white box d. black box
____ testing.
ANS: D PTS: 1 REF: 8
- One of the components of object-oriented design is identifying ____.
- detail c. attributes
- procedures d. syntax
ANS: C PTS: 1 REF: 9
- Some very experienced programmers can successfully combine the planning and the actual instruction
- directing c. coding
- tweaking d. assigning
writing, or ____ of the program, in one step.
ANS: C PTS: 1 REF: 10
- Which language does a computer know?
- Java c. high-level
- C++ d. machine language
ANS: D PTS: 1 REF: 10-11
- ____, the entire set of actions an organization must take to switch over to using a new program or set
- Duplication c. Exchange
- Conversion d. Replication
of programs, can sometimes take months or years to accomplish.
ANS: B PTS: 1 REF: 13
- Careful selection of ____ is an essential part of good programming.
- pseudocode c. user environment
- output data d. test data
ANS: D PTS: 1 REF: 13
- What is a valid reason for program maintenance?
- A new user enters the system. c. The format of input data changes.
- The program is over a year old. d. The programmer needs more work.
ANS: C PTS: 1 REF: 13
- One type of tool to aid the programmer during the planning stage is called a ____.
- placeholder c. desk-checker
- flowchart d. graphical user interface
ANS: B PTS: 1 REF: 14
- / 4