Algorithm Chapter1

advertisement
Chapter 1
1- All categories of computers except
a. Mainframe
b. Micro
2- All elements of a computer system except
a. Hardware
b. Software
3- All Hardware except
a. CPU
b. RAM
4- CU
a. Fetches and decodes instructions
b. point to the next instruction to be executed
c. holds instruction currently being executed
c. Machine Language
c. Whiteboard
c. Windows
5- PC
a. Fetches and decodes instructions
b. point to the next instruction to be executed
c. holds instruction currently being executed
6- IR
a. Fetches and decodes instructions
b. point to the next instruction to be executed
c. holds instruction currently being executed
7- A LU
a. Carries out all arithmetic and logic operation
b. point to the next instruction to be executed
c. holds instruction currently being executed
8- All the properties of the main memory except
a. Directly connected to the CPU
b. When computer power is turned off, everything in main memory is lost
c. device that stores information permanently
9- Secondary storage
a. Directly connected to the CPU
b. When computer power is turned off, everything in main memory is lost
c. device that stores information permanently
10- All examples of secondary storage except:
a. Hard disks
b. Floppy disks
c. RAM
11- All input devices except
a. Keyboard
b. Mouse
c. Printer
12- All output devices except
a. Monitor
b. Printer
c. Keyboard
13- All software except
a. Word processors
b. Excel
c. Mouse
14- Machine language: language of a computer
a. True
b. False
15- Binary digit (bit): The digit 0 or 2
a. True
b. False
16- Binary code: A sequence of 0s and 1s
a. True
b. false
17- Byte:A sequence of eight bits
a. True
b. False
18- Kilobyte = 8 byte
a. True
b. False
19- Byte = 8 bit
a. True
b. False
20- Megabyte = 1024 KB
a. True
b. False
21- Gigabyte = 1024 MB
a. True
b. False
22- The equation wages = rate • hours can be written in C++ as: wages = rate X hours;
a. True
b. False
23- LOAD rate
a. Assembly language
b. C++ language
c. Java language
24- Cout << “7+8=” 7+8<< endl
a. True
b. false
25- The output of this statement: cout << "7 + 8 = " << 7 + 8 << endl;
a. 15
b. 7+8=15
c. 30
26- Linker
a. Combines object program with other programs provided by the SDK to create executable code
b. Loads executable program into main memory
c. Step-by-step problem-solving process
27- Loader
a. Combines object program with other programs provided by the SDK to create executable
code
b. Loads executable program into main memory
c. Step-by-step problem-solving process
28- Algorithm
a. Combines object program with other programs provided by the SDK to create executable
code
b. Loads executable program into main memory
c. Step-by-step problem-solving process
29- Analyze the problem
a. Design steps (algorithm) to solve the problem
b. Implement the algorithm in code
c. Use and modify the program if the problem domain changes
30- Implement the algorithm
a. Design steps (algorithm) to solve the problem
b. Implement the algorithm in code
c. Use and modify the program if the problem domain changes
31- Maintenance
a. Design steps (algorithm) to solve the problem
b. Implement the algorithm in code
c. Use and modify the program if the problem domain changes
32- Compiler generates equivalent machine code
a. True
b. False
33- Linker links machine code with system resources
a. True
b. False
34- Structured design: Dividing a program into smaller subproblems
a. True
b. False
35- The structured design approach is also called:
a. Top-down (or bottom-up) design
b. Structured programming:
c. Object Oriented Programming
Download