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+
From: [Bestmaxsolutions.stuvia
,Chapter 1-An Overview Of Computers And Programming Languages ___________________ 3
Chapter 2-Basic Elements Of C++ ________________________________________________ 12
Chapter 3-Input/Output _______________________________________________________ 27
Chapter 4-Control Structures I (Selection) _________________________________________ 42
Chapter 5-Control Structures II (Repetition) _______________________________________ 54
Chapter 6-User-Defined Functions I ______________________________________________ 68
Chapter 7-User-Defined Simple Data Types, Namespaces, And The String Type __________ 93
Chapter 8-Arrays And Strings _________________________________________________ 105
Chapter 9-Records (structs) ___________________________________________________ 124
Chapter 10-Classes and Data Abstraction ________________________________________ 136
Chapter 11-Inheritance and Composition ________________________________________ 151
Chapter 12-Pointers, Classes, Virtual Functions, and Abstract Classes _________________ 166
Chapter 13-Overloading and Templates _________________________________________ 180
Chapter 14-Exception Handling ________________________________________________ 195
Chapter 15-Recursion ________________________________________________________ 209
Chapter 16-Searching, Sorting, and the vector Type _______________________________ 223
Chapter 17-Linked Lists ______________________________________________________ 237
Chapter 18-Stacks and Queues ________________________________________________ 251
,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
15. The Structured Design Approach Is Also Known As Modular Programming.
ANS: T REF: 16
16. C++ Programs Were Always Portable From One Compiler To Another.
ANS: F REF: 18
17. The Command That Does The Linking On Visual C++ Is Make Or Remake.
ANS: F REF: 10
18. When You Compile Your Program, The Compiler Not Only Identifies The Logic
Errors, But Also Typically Suggests How To Correct Them.
ANS: F REF: 10
19. The Programs That You Write In A High-Level Language Are Developed Using
An SDK. ANS: T REF: 9
20. A Computer Executes Assembly Language Instructions Directly.
ANS: F REF: 8
21. ASCII Is A Seven-Bit Code.
ANS: T REF: 7
22. A Sequence Of 0s And 1s Is Referred To As Binary Code.
,ANS: T REF: 6
23. The Application Program That Loads First When You Turn On Your PC Is Called
The Operating System.
ANS: F REF: 6
24. The Device That Stores Information Permanently (Unless The Device Becomes
Unusable Or You Change The Information By Rewriting It) Is Called Primary Storage.
ANS: F REF: 5
25. All Registers Provide Temporary Storage.
ANS: T REF: 4
MULTIPLE CHOICE
1. 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
ANS: D REF: 3
2. The Basic Commands That A Computer Performs Are , And Performance Of
Arithmetic And Logical Operations.
, A. Input, File C. Input, Output, Storage
B. Output, Folder D. Storage, Directory
ANS: C REF: 3
3. Main Memory Is Called .
A. Read Only Memory C. Read And Write Memory
B. Random Access Memory D. Random Read Only Memory
ANS: B REF: 3
4. The Is The Brain Of The Computer And The Single Most Expensive Piece Of
Hardware In Your Personal Computer.
A. MM C. RAM
B. ROM D. CPU
ANS: D REF: 3
5. The Carries Out All Arithmetic And Logical Operations.
A. IR C. CU
B. ALU D. PC
ANS: B REF: 4
6. Which Of The Following Is The Main Function Of The CU?
A. Fetch And Decode The Instructions C. Carry Out All Logic Operations