TEST BANK COMPLETE_
C++ PROGRAMMING: FROM PROBLEM ANALYSIS TO PROGRAM DESIGN 8TH EDITION
BY D.S. MALIK
ALL CHAPTERS 1-18| LATEST VERSION WITH VERIFIED ANSWERS| RATED A+
8th edition
chapter 1-an overview of computers and programming languages _____________________ 3
,chapter 2-basic elements of c++ ________________________________________________ 12
chapter 3-input/output _______________________________________________________ 26
chapter 4-control structures i (selection) _________________________________________ 41
chapter 5-control structures ii (repetition) ________________________________________ 52
chapter 6-user-defined functions i _______________________________________________ 66
chapter 7-user-defined simple data types, namespaces, and the string type _____________ 91
chapter 8-arrays and strings __________________________________________________ 103
chapter 9-records (structs) ____________________________________________________ 121
chapter 10-classes and data abstraction ________________________________________ 133
chapter 11-inheritance and composition ________________________________________ 148
chapter 12-pointers, classes, virtual functions, and abstract classes __________________ 163
chapter 13-overloading and templates __________________________________________ 177
chapter 14-exception handling ________________________________________________ 191
chapter 15-recursion ________________________________________________________ 205
chapter 16-searching, sorting, and the vector type ________________________________ 218
chapter 17-linked lists _______________________________________________________ 232
chapter 18-stacks and queues _________________________________________________ 245
,chapter 1-an overview of computers and programming languages
d.s. malik: c++ programming: from problem analysis to program design
true/false
1. the screen and keyboard are examples of input devices.
ANS:> f ref: 3
2. examples of output devices are the mouse and secondary storage.
ANS:> f ref: 3
3. main memory is directly connected to the cpu.
ANS:> t ref: 4
4. each cell has a unique location in main memory, called the name of the cell.
ANS:> f ref: 5
5. when the computer is turned off, everything in secondary memory is lost.
ANS:> f ref: 5
6. the operating system has a special program that organizes secondary storage so
that you can conveniently access information.
ANS:> t ref: 6
7. word processors are examples of system programs.
, ANS:> f ref: 6
8. analog signals represent information with a sequence of 0s and 1s.
ANS:> f ref: 6
9. the ascii data set consists of 127 characters.
ANS:> f ref: 6
10. the machine language of one machine is the same as the machine language of
another machine.
ANS:> f ref: 7
11. assembly, cobol, pascal, c, c++, and java are all high-level languages.
ANS:> f ref: 8
12. programming is a process of problem solving.
ANS:> t ref: 10
13. to develop a program to solve a problem, you start by analyzing the problem.
ANS:> t ref: 12
14. in c++, the mechanism that allows you to combine data and operations on the data
into a single unit is called a class.
ANS:> t ref: 17
C++ PROGRAMMING: FROM PROBLEM ANALYSIS TO PROGRAM DESIGN 8TH EDITION
BY D.S. MALIK
ALL CHAPTERS 1-18| LATEST VERSION WITH VERIFIED ANSWERS| RATED A+
8th edition
chapter 1-an overview of computers and programming languages _____________________ 3
,chapter 2-basic elements of c++ ________________________________________________ 12
chapter 3-input/output _______________________________________________________ 26
chapter 4-control structures i (selection) _________________________________________ 41
chapter 5-control structures ii (repetition) ________________________________________ 52
chapter 6-user-defined functions i _______________________________________________ 66
chapter 7-user-defined simple data types, namespaces, and the string type _____________ 91
chapter 8-arrays and strings __________________________________________________ 103
chapter 9-records (structs) ____________________________________________________ 121
chapter 10-classes and data abstraction ________________________________________ 133
chapter 11-inheritance and composition ________________________________________ 148
chapter 12-pointers, classes, virtual functions, and abstract classes __________________ 163
chapter 13-overloading and templates __________________________________________ 177
chapter 14-exception handling ________________________________________________ 191
chapter 15-recursion ________________________________________________________ 205
chapter 16-searching, sorting, and the vector type ________________________________ 218
chapter 17-linked lists _______________________________________________________ 232
chapter 18-stacks and queues _________________________________________________ 245
,chapter 1-an overview of computers and programming languages
d.s. malik: c++ programming: from problem analysis to program design
true/false
1. the screen and keyboard are examples of input devices.
ANS:> f ref: 3
2. examples of output devices are the mouse and secondary storage.
ANS:> f ref: 3
3. main memory is directly connected to the cpu.
ANS:> t ref: 4
4. each cell has a unique location in main memory, called the name of the cell.
ANS:> f ref: 5
5. when the computer is turned off, everything in secondary memory is lost.
ANS:> f ref: 5
6. the operating system has a special program that organizes secondary storage so
that you can conveniently access information.
ANS:> t ref: 6
7. word processors are examples of system programs.
, ANS:> f ref: 6
8. analog signals represent information with a sequence of 0s and 1s.
ANS:> f ref: 6
9. the ascii data set consists of 127 characters.
ANS:> f ref: 6
10. the machine language of one machine is the same as the machine language of
another machine.
ANS:> f ref: 7
11. assembly, cobol, pascal, c, c++, and java are all high-level languages.
ANS:> f ref: 8
12. programming is a process of problem solving.
ANS:> t ref: 10
13. to develop a program to solve a problem, you start by analyzing the problem.
ANS:> t ref: 12
14. in c++, the mechanism that allows you to combine data and operations on the data
into a single unit is called a class.
ANS:> t ref: 17