Upload
mulugeta-niguse
View
238
Download
0
Embed Size (px)
Citation preview
8/3/2019 Ch Intro Selfcheck
1/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
1. What is 1/1012 of a second?
Answer
Picosecond
8/3/2019 Ch Intro Selfcheck
2/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
2. What is 1/1015 of a second?
Answer
Femtosecond
8/3/2019 Ch Intro Selfcheck
3/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
3. A particular disk has a storage capacity of 30 gigabytes. Exactly how many b
disk hold?
Answer
30 230
32 212 254 720, , ,=
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
4/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
4. What does CPU stand for?What does CPU stand for?
Answer
Central processing unit
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
5/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
5. Convert 38 base ten to it binary equivalent.
Answer
0100110
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
6/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
6. Convert the binary number 010101 to its decimal equivalent.
Answer
21
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
7/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
7. What is the octal representation of the base ten number 551?
Answer
10478
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
8/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
8. What is the hexadecimal representation of the base ten number 4256?
Answer
10A016
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
9/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
9. What is the twos complement representation of the integer -101?
Answer
10011011
Solution: 10110 is 01100101 in twos complement. Complement and add one 10011011.
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
10/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
10. What points to the next instruction to fetch and execute?
Answer
The program counter
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
11/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
11. What does RAM stand for?
Answer
Random access memory
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
12/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises
12. What is a hierarchical ordering based on natural relationships?
Answer
Taxonomy
http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
13/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises13. What is the name of the program that translates a high-level language program
code?
Answer
Compiler
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
14/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises14. What is the name of the program that combines object files and library files so
produced as a unit?
Answer
Linker
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
15/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises15. What is the process of extacting the relevant properties of an object while
nonessential details.
Answer
Abstraction
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
16/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises16. What is the process of separating the asepects of an object into external
aspects.
Answer
Information hiding or encapsulation
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
17/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises17. What is the process of dividing an object into smaller pieces or modules so th
is easier to obtain?
Answer
Modularity
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/8/3/2019 Ch Intro Selfcheck
18/18
C++ Program Design/3e
Chapter 1
Answers to Self-Check Exercises18. What is the object-oriented property where a message can mean different thi
ing on the object receiving it.
Answer
Polymorphism
http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/http://ch-intro.pdf/