Skip to main content

C++ Programming From Problem Analysis to Program Design 8th Edition Malik Test Bank

Page 1

Type:

Test Bank

C++ Programming From Resource: Problem Analysis to Program Design Edition:

8th Edition

Author(s):

D.S Malik


Name:

Class:

Date:

Chapter 1 1. The basic commands that a computer performs are input (get data), output (display result), storage, and performance of arithmetic and logical operations. a. True b. False ANSWER: True FEEDBACK: Correct Reading data (input), displaying results (output), storage, and performing arithmetic and logical operations are the basic commands which are performed by a computer. Incorrect Reading data (input), displaying results (output), storage, and performing arithmetic and logical operations are the basic commands which are performed by a computer.

POINTS: 1 REFERENCES: 4 – Elements of a Computer System QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 3/16/2020 10:45 PM 2. Main memory is directly connected to the CPU. a. True b. False ANSWER: True FEEDBACK: Correct The main memory (also called random access memory) is directly connected to the central processing unit (CPU). Incorrect The main memory (also called random access memory) is directly connected to the central processing unit (CPU).

POINTS: 1 REFERENCES: 4 – Central Processing Unit and Main Memory QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:42 AM 3. When the computer is turned off, everything in secondary memory is lost. a. True b. False ANSWER: False FEEDBACK: Correct When the computer is turned off, everything in the main memory is lost, but the secondary memory stores information permanently. Incorrect When the computer is turned off, everything in the main memory is lost, but the secondary memory stores information permanently. Copyright Cengage Learning. Powered by Cognero.

Page 1


Name:

Class:

Date:

Chapter 1 POINTS: 1 REFERENCES: 5 – Central Processing Unit and Main Memory QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:44 AM 4. The devices that feed data and programs into computers are called output devices. a. True b. False ANSWER: False FEEDBACK: Correct The devices that feed data and programs into computers are called input devices. A mouse, scanner, webcam, and keyboard are examples of input devices. Incorrect The devices that feed data and programs into computers are called input devices. A mouse, scanner, webcam, and keyboard are examples of input devices.

POINTS: 1 REFERENCES: 5 – Input/Output Devices QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:46 AM 5. Information stored in main memory must be transferred to some other device for permanent storage. a. True b. False ANSWER: True FEEDBACK: Correct Information stored in the main memory is lost when the computer is turned off, so the information should be transferred to some other device like hard disk (HD) for permanent storage. Incorrect Information stored in the main memory is lost when the computer is turned off, so the information should be transferred to some other device like hard disk (HD) for permanent storage.

POINTS: 1 REFERENCES: 5 – Central Processing Unit and Main Memory QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:47 AM Copyright Cengage Learning. Powered by Cognero.

Page 2


Name:

Class:

Date:

Chapter 1 6. The device that stores information permanently (unless the device becomes unusable or you change the information by rewriting it) is called primary storage. a. True b. False ANSWER: False FEEDBACK: Correct A secondary storage device is used to store information permanently until the device becomes unusable or someone rewrites the information stored in it. Incorrect A secondary storage device is used to store information permanently until the device becomes unusable or someone rewrites the information stored in it.

POINTS: 1 REFERENCES: 5 – Central Processing Unit and Main Memory QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.02 Explore the hardware and software components of a computer system DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:49 AM 7. The command that does the linking on Visual C++ Express (2013 or 2016) and Visual Studio 2015 is Make or Remake. a. True b. False ANSWER: False FEEDBACK: Correct The Build or Rebuild is the command, which does the linking on Visual C++ Express (2013 or 2016) and Visual Studio 2015. Incorrect The Build or Rebuild is the command, which does the linking on Visual C++ Express (2013 or 2016) and Visual Studio 2015.

POINTS: 1 REFERENCES: 11 – Processing a C++ Program QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.08 - Explore how a C++ program is processed DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 1:51 AM 8. When you compile your program, the compiler identifies the logic errors and suggests how to correct them. a. True b. False ANSWER: False FEEDBACK: Correct The syntax errors in a program can be identified by a compiler while compiling the program. Also, the compiler suggests how to correct the errors. Incorrect The syntax errors in a program can be identified by a compiler while compiling the program. Also, the compiler suggests how to correct the errors.

POINTS: REFERENCES:

1 11 – Processing a C++ program

Copyright Cengage Learning. Powered by Cognero.

Page 3


Name:

Class:

Date:

Chapter 1 QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.08 - Explore how a C++ program is processed DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 4:18 AM 9. To develop a program to solve a problem, you start by analyzing the problem. a. True b. False ANSWER: True FEEDBACK: Correct To solve a problem by developing a program, the problem must be analyzed first. Incorrect To solve a problem by developing a program, the problem must be analyzed first.

POINTS: 1 REFERENCES: 12 – Programming with the Problem Analysis–Coding–Execution Cycle QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.09 - Learn what an algorithm is and explore problem-solving techniques DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 2/26/2020 4:18 AM 10. C++ programs have always been portable from one compiler to another. a. True b. False ANSWER: False FEEDBACK: Correct In the early 1980s through the early 1990s, the C++ language was evolving in slightly different ways in different compilers. Therefore,C++ programs were not always portable from one compiler to another. Incorrect In the early 1980s through the early 1990s, the C++ language was evolving in slightly different ways in different compilers. Therefore,C++ programs were not always portable from one compiler to another.

POINTS: 1 REFERENCES: 22 – ANSI/ISO Standard C++ QUESTION TYPE: True / False HAS VARIABLES: False LEARNING OBJECTIVES: PDDS.MALI.01.11 - Become aware of ANSI/ISO Standard C++, C++11, C++14 DATE CREATED: 10/5/2016 1:36 PM DATE MODIFIED: 5/11/2020 4:29 PM 11. Several categories of computers exist, such as ____. a. microframe, midframe, and miniframe b. midsize, microframe, and mainframe c. mainsize, midsize, and microsize d. mainframe, midsize, and micro Copyright Cengage Learning. Powered by Cognero.

Page 4


Turn static files into dynamic content formats.

Create a flipbook