1.1.1 - Introduction to Computers.
1. What is the main function of the central processing unit (CPU) in a computer system?
Correct Answer: b) To execute instructions and perform computations
2. Which component of the computer system is responsible for storing data temporarily while a program is running?
Correct Answer: b) RAM (Random Access Memory)
3. In computer architecture, what does the term ‘bus’ refer to?
Correct Answer: b) A system that connects and facilitates data transfer between hardware components
4. What type of instruction involves operations such as input and output functions?
Correct Answer: c) Input-output Instruction
5. The ‘Address Bus’ in a computer system is used for:
Correct Answer: c) Specifying the location of data in memory
6. Which addressing mode involves using a fixed address specified directly in the instruction?
Correct Answer: d) Direct Addressing Mode
7. What is the function of the ‘Control Bus’?
Correct Answer: c) To manage and synchronize data transfers
8. In the context of C programming, what does the following code snippet do?
int a = 10; int b = 20; int c; c = a + b; printf("The sum is %d", c);
Correct Answer: b) Computes the sum of a and b and prints it
9. Which addressing mode involves an operand that is specified within the instruction itself?
Correct Answer: b) Immediate Addressing Mode
10. What is the primary role of the ‘Memory Buffer Register’ (MBR)?
Correct Answer: b) To store data temporarily during read and write operations
11. In which addressing mode does the instruction specify the address of a memory location containing the actual address of the operand?
Correct Answer: c) Indirect Addressing Mode
12. Which phase of the instruction cycle involves decoding the fetched instruction to determine the operation?
Correct Answer: b) Decode
13. What does the term ‘Microoperation’ refer to in the context of computer instructions?
Correct Answer: b) A small operation carried out as part of a macro operation
14. In C programming, what is the purpose of the printf function?
Correct Answer: b) To print output to the console
15. How does ‘Register Addressing Mode’ differ from ‘Memory Addressing Mode’?
Correct Answer: b) Register Addressing Mode specifies a register for operands, while Memory Addressing Mode specifies a memory address.
16. Which of the following addressing modes is commonly used for implementing arrays?
Correct Answer: b) Indexed Addressing Mode
17. What is an example of an instruction that falls under the category of ‘Input-output Instruction’?
Correct Answer: c) OUT
18. What type of system bus allows for connections to external devices such as printers and mice?
Correct Answer: d) Extension Bus
19. In an instruction cycle, what is the purpose of the ‘Execute’ phase?
Correct Answer: c) To perform the operation specified by the instruction
20. Which of the following is true about a synchronous system bus?
Correct Answer: c) It performs data transfers based on a set protocol related to time.