100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Problem Solving with C++ 9th Edition Walter Savitch - Test Bank $26.06   Add to cart

Exam (elaborations)

Problem Solving with C++ 9th Edition Walter Savitch - Test Bank

 3 views  0 purchase
  • Course
  • Institution

Complete Test Bank (with Questions Answers)

Preview 4 out of 160  pages

  • December 5, 2023
  • 160
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
,Test Bank for Problem Solving with C++: The Object of Programming, 9/e
Chapter 1 Introduction to Computer and C++ Programming
SHORT ANSWER

1. A set of instructions that the computer will follow is called a _____________.
Answer: program
2. The collection of programs used by the computer is known as ______________.
Answer: software
3. Computers that are interconnected are known as a _____________.
Answer: network
4. A digit that can hold a zero or a one is known as a ___________.
Answer: bit
5. List at least two input devices ____________ _________________.
Answer: keyboard, mouse, network card, file
6. List at least two output devices ______________ _____________.
Answer: screen, printer, file, network card
7. A variable that can hold a whole number is called a(n) ____________.
Answer: integer
8. What punctuation signifies the end of a C++ statement? _____________
Answer: A semicolon.
9. A mistake in a computer program is called a ______________.
Answer: bug
10. A __________ is the program that translates a program written in C++ into machine
language.
Answer: compiler
11. Errors in a program can be classified into three types, list them
Answer: Syntax, logic,run-time
12. What does the following statement in C++ print to the screen?
cout << “Hello students\n”;
Answer: Hello students.
13. A mistake that is a direct violation of the syntax rules will generate a compiler ________.
Answer: error
14. If your program compiles and runs, but gives an incorrect output, this is known as a
_________ error.
Answer: logic
15. The part of the computer that controls and executes programs is called the _______.
Answer: CPU

MULTIPLE CHOICE
1. Who was the programmer for Charles Babbage’s analytical engine?
a. Grace Hopper
b. Ada Lovelace
c. Lord Bryan
d. Walter Savitch
Answer: B
2. An algorithm is
a. The inputs and outputs of a program
b. The part of the computer that does the processing



1

,Test Bank for Problem Solving with C++: The Object of Programming, 9/e
Chapter 1 Introduction to Computer and C++ Programming
c. A finite set of steps to solve a problem
d. A complete computer program
Answer: C
3. A memory address is
a. Where a variable is stored
b. Where the computer is located
c. A step in the program.
d. Where the CPU is stored.
Answer: A
4. A computer that is normally used by only one person at a time is called a
a. Server
b. Mainframe
c. Personal Computer
d. Network
Answer: C
5. The physical machines that make up a computer is called the
a. Software
b. Network
c. Devices
d. CPU
e. Hardware
Answer: E
6. Which of the following is not a phase of the program-design process?
a. Problem-solving
b. Implementation
c. Marketing the final program
Answer: C

7. Which of the following is not part of the Software Life Cycle?
a. Analysis
b. Design
c. Data Entry
d. Implementation
e. Testing
Answer: C
8. From which language did C++ directly evolve?
a. A
b. Ada
c. C
d. C+
e. C-
Answer: C
9. What does the following line of code display to the screen?
cout << “This is the computer\n programming book\n”;
a. This is the computern programming book
b. This is the computer



2

, Test Bank for Problem Solving with C++: The Object of Programming, 9/e
Chapter 1 Introduction to Computer and C++ Programming
c. Nothing
d. This is the computer
programming book
Answer: D
10. C++ statements end with a
a. Period
b. Comma
c. Semicolon
d. Nothing
Answer: C
11. Which of the following is not an example of a program bug?
a. Run-time error
b. Operator error
c. Syntax error
d. Logic error
Answer:B
12. What does the following code print to the screen?
cout << “hello”;
a. Hello
b. hello
c. HELLO
d. Nothing
Answer: B
13. The set of instructions that a computer will follow is known as:
a. Hardware
b. Algorithm
c. Program
d. CPU
Answer: C
14. The anagram CPU stands for
a. Computer Programming Unit
b. Central Processing Unit
c. Central Program User
d. Computer Paper User
Answer: B
15. The output of the compiler is called
a. The program
b. Source code
c. Linked code
d. Object code
Answer:D
16. The term OS stands for
a. Operating System
b. Oscillating System
c. Operations Services
d. Nothing



3

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 premiumbiz379. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $26.06. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82956 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$26.06
  • (0)
  Add to cart