Multiple Choice
1. Which statement best describes a computer program?
A) A program is a sequence of comments.
B) A program can decide what task it is to perform.
C) A program is a sequence of instructions and decisions that the computer carries out.
D) A program can only perform one simple task.
Ans: C
Section Ref: Section 1.1 Computer Programs
Title: Which statement best describes a computer program?
Difficulty: Easy
2. Which statement regarding computer programs is correct?
A) Computer programs can decide what task to perform.
B) Large and complex computer programs are generally written by only one programmer.
C) Computer programs are composed of extremely primitive operations.
D) Small computer programs are not documented.
Answer: c
Section reference: Section 1.1 Computer Programs
Title: Which statement regarding computer programs is correct?
Difficulty: Easy
3. What does CPU stand for?
A) Computer Programming Unit
B) Computer Processing Unit
C) Central Processing Unit
D) Central Programming Unit
Ans: C
Section Ref: Section 1.2 The Anatomy of a Computer
Title: What does CPU stand for?
Difficulty: Easy
4. Which one of the following is NOT a function of a CPU?
A) Performing arithmetic operations
B) Processing data and controlling programs
C) Querying a database
,D) Fetching and storing data from storage and input devices
Ans: C
Section Ref: Section 1.2 The Anatomy of a Computer
Title: Which one of the following is NOT a function of a CPU?
Difficulty: Easy
5. Which type of storage is made from memory chips?
A) CD
B) hard disk
C) primary storage
D) DVD
Ans: C
Section Ref: Section 1.2 The Anatomy of a Computer
Title: Which type of storage is made from memory chips?
Difficulty: Easy
6. Which one of the following memory types provides storage that persists without electricity?
A) primary storage
B) RAM
C) memory
D) secondary storage
Ans: D
Section Ref: Section 1.2 The Anatomy of a Computer
Title: Which one of the following memory types provides storage that persists without electricity?
Difficulty: Easy
7. Which type of secondary storage consists of rotating platters, which are coated with a magnetic
material, and read/write heads, which can detect and change the patterns of varying magnetic flux
on the platters?
A) hard disk
B) flashdrive
C) DVD
D) RAM
Ans: A
Section Ref: Section 1.2 The Anatomy of a Computer
Title: Which type of secondary storage consists of rotating platters?
Difficulty: Easy
,8. What are the electrical lines called that interconnect the CPU, RAM, and the electronics
controlling the hard disk and other devices?
A) bus
B) network
C) optical disk
D) power lines
Ans: A
Section Ref: Section 1.2 The Anatomy of a Computer
Title: What are the electrical lines called on a computer?
Difficulty: Easy
9. Which part of a computer contains the CPU, the RAM, and connectors to peripheral devices?
A) network
B) bus
C) motherboard
D) optical disk
Ans: C
Section Ref: Section 1.2 The Anatomy of a Computer
Title: Which part of a computer contains the CPU, the RAM, and connectors to peripheral
devices?
Difficulty: Easy
10. For a program to be executed, where must it reside so that the CPU can read its instructions?
A) optical disk
B) primary memory
C) secondary memory
D) hard disk
Ans: B
Section Ref: Section 1.2 The Anatomy of a Computer
Title: For a program to be executed, where must it reside so that the CPU can read its
instructions?
Difficulty: Easy
11. Which memory type does not provide persistent storage?
A) secondary storage
B) hard disk
C) primary storage
D) DVD
Answer: c
Section reference: 1.2 The Anatomy of a Computer
Title: Which memory type does not provide persistent storage?
, Difficulty: Easy
12. Which of the following is not contained on the motherboard of a computer?
A) RAM
B) integrated circuit
C) hard disk
D) CPU
Answer: c
Section reference: 1.2 The Anatomy of a Computer
Title: Which of the following is not contained on the motherboard of a computer?
Difficulty: Easy
13. What term is used to refer to the computer instructions that are executed by a CPU, which are
specific to each CPU?
A) virtual machine
B) machine code
C) high-level code
D) instruction set
Ans: B
Section Ref: Section 1.3 The Java Programming Language
Title: What term is used to refer to the computer instructions that are executed by a CPU?
Difficulty: Easy
14. What is the JVM?
A) A vital machine that never fails to run compiled Java code.
B) A vital machine that compiles Java code into machine instructions.
C) A virtual machine that runs compiled Java code on any CPU.
D) A virtual machine that compiles Java code into machine instructions.
Answer: c
Section reference: 1.3 The Java Programming Language
Title: What is the JVM?
Difficulty: Easy
15. What is the term used to refer to Java code that runs in a browser?
A) applet
B) script
C) html
D) class
Answer: a
Section reference: 1.3 The Java Programming Language
Title: What is the term used to refer to Java code that runs in a browser?
Difficulty: easy
16. What term is used to refer to languages that allow programmers to describe tasks at a higher
conceptual level than machine code?