Test Bank For An Object-Oriented Approach to Programming Logic and Design
Chapter 1
Chapter 1: An Overview of Computer Programming
TRUE/FALSE
1. The two major components of any computer system are its hardware and its software.
ANS: T PTS: 1 REF: 2
2. Computer instructions are written in a computer programming language such as Visual Basic, C#,
C++, or Java.
ANS: T PTS: 1 REF: 3
3. Language translation software for a computer is called a compiler or interpreter.
ANS: T PTS: 1 REF: 3
4. Logical errors are sometimes referred to as structural errors.
ANS: F PTS: 1 REF: 4
5. A program that is free of syntax errors is also free of logical errors.
ANS: F PTS: 1 REF: 4
6. The two major techniques for developing programs are procedural programming and object-oriented
programming (OOP).
ANS: T PTS: 1 REF: 6
7. 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
8. When writing pseudocode, you need to be careful about syntax.
ANS: F PTS: 1 REF: 14
9. In a flowchart, processing symbols are represented by parallelograms.
ANS: F PTS: 1 REF: 15
10. In a flowchart, decision symbols are represented by diamonds.
1
, Test Bank For An Object-Oriented Approach to Programming Logic and Design
Chapter 1
ANS: T PTS: 1 REF: 16
MULTIPLE CHOICE
1. ____ is the set of physical devices associated with a computer.
a. Software c. Hardware
b. Input d. Data
ANS: C PTS: 1 REF: 2
2. The set of instructions that tell the computer what to do are called ____.
a. software c. hardware
b. input d. data
ANS: A PTS: 1 REF: 2
3. Data items enter the computer system through ____ devices.
a. software c. output
b. input d. storage
ANS: B PTS: 1 REF: 2
4. The rules that govern a programming language are called ____.
a. syntax c. structure
b. compilers d. constructs
ANS: A PTS: 1 REF: 3
5. All computers have temporary, ____ storage, also known as random access memory (RAM).
a. processing c. internal
b. machine d. external
ANS: C PTS: 1 REF: 3
6. The programming statements you write in a programming language are known as the ____ code.
a. object c. translated
b. source d. external
ANS: B PTS: 1 REF: 3
7. Machine language is also called ____ language.
a. volatile c. binary
b. high-level d. primary
ANS: C PTS: 1 REF: 3
8. Misuse of a language’s grammar rules is called a(n) ____ error.
a. illegal c. syntax
b. logical d. semantic
2
, Test Bank For An Object-Oriented Approach to Programming Logic and Design
Chapter 1
ANS: C PTS: 1 REF: 3
9. When you decide on the correct instructions for a program, you are developing the program’s ____.
a. logic c. data file
b. syntax d. data entities
ANS: A PTS: 1 REF: 4
10. The instruction Myanswer = Mynumber*2 is an example of a(n) ____ operation.
a. processing c. data
b. numerical d. input
ANS: A PTS: 1 REF: 5
11. People have been writing modern computer programs since the ____.
a. 1940s c. 1960s
b. 1950s d. 1970s
ANS: A PTS: 1 REF: 6
12. The type of software testing in which the tester does not look at the contents of the program is called
____ testing.
a. external c. internal
b. white box d. black box
ANS: D PTS: 1 REF: 8
13. One of the components of object-oriented design is identifying ____.
a. detail c. attributes
b. procedures d. syntax
ANS: C PTS: 1 REF: 9
14. Some very experienced programmers can successfully combine the planning and the actual instruction
writing, or ____ of the program, in one step.
a. directing c. coding
b. tweaking d. assigning
ANS: C PTS: 1 REF: 10
15. Which language does a computer know?
a. Java c. high-level
b. C++ d. machine language
ANS: D PTS: 1 REF: 10-11
16. ____, the entire set of actions an organization must take to switch over to using a new program or set
of programs, can sometimes take months or years to accomplish.
a. Duplication c. Exchange
b. Conversion d. Replication
3
, Test Bank For An Object-Oriented Approach to Programming Logic and Design
Chapter 1
ANS: B PTS: 1 REF: 13
17. Careful selection of ____ is an essential part of good programming.
a. pseudocode c. user environment
b. output data d. test data
ANS: D PTS: 1 REF: 13
18. What is a valid reason for program maintenance?
a. A new user enters the system. c. The format of input data changes.
b. The program is over a year old. d. The programmer needs more work.
ANS: C PTS: 1 REF: 13
19. One type of tool to aid the programmer during the planning stage is called a ____.
a. placeholder c. desk-checker
b. flowchart d. graphical user interface
ANS: B PTS: 1 REF: 14
20. Syntax is important when using a programming language, but not when using ____.
a. pseudocode c. high-level code
b. low-level code d. a translator
ANS: A PTS: 1 REF: 14-15
21. When using a flowchart, input is represented by what geometric shape?
a. rectangle c. circle
b. diamond d. parallelogram
ANS: D PTS: 1 REF: 15
22. When using a flowchart, terminal symbols are represented by what geometric shape?
a. parallelogram c. rectangle
b. lozenge d. diamond
ANS: B PTS: 1 REF: 16
23. Which of the following is an advantage of using an integrated development environment?
a. Syntax errors do not occur.
b. Syntax errors are visually highlighted.
c. The program can run with syntax errors.
d. Logical errors do not occur.
ANS: B PTS: 1 REF: 20
24. A ____ is an example of a user environment.
a. prompt c. text line
b. command line d. command box
4
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HIUPRO. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $28.99. You're not tied to anything after your purchase.