1. Which of the following is a type of machine language?
A. Assembly Language
B. High-Level Language
C. Binary Code
D. Pseudocode
Answer: C) Binary Code
Rationale: Machine language consists of binary code, which is the lowest-level
programming language directly understood by the computer’s hardware.
2. Which of the following operations is used in a stack?
A. enqueue
B. pop
C. insert
D. search
Answer: B) pop
Rationale: A stack operates on a Last In First Out (LIFO) principle, where the "pop"
operation removes the top element from the stack.
3. Which of the following is NOT a valid C++ data type?
A. int
,B. float
C. character
D. bool
Answer: C) character
Rationale: The correct data type for characters in C++ is char, not character.
4. What is the role of the Control Unit (CU) in the CPU?
A. To perform arithmetic operations
B. To store data
C. To control the execution of instructions
D. To communicate with peripheral devices
Answer: C) To control the execution of instructions
Rationale: The Control Unit (CU) manages and coordinates the execution of instructions
in the CPU.
5. Which of the following is a feature of a modern RISC (Reduced Instruction Set
Computing) architecture?
A. Complex instructions
B. Few instructions per cycle
C. Complex addressing modes
D. Multiple execution units for each instruction
Answer: B) Few instructions per cycle
, Rationale: RISC architecture aims for simplicity by using a small set of instructions,
with each instruction executing in a single cycle.
6. Which of the following is a non-blocking operation in a multithreaded environment?
A. Mutex
B. Semaphore
C. Lock
D. Signal
Answer: D) Signal
Rationale: Signals are non-blocking operations in multithreading, allowing a thread to
inform another of an event without requiring it to wait.
7. In which type of memory is data permanently stored, even when the system is
powered off?
A. RAM
B. ROM
C. Cache
D. Registers
Answer: B) ROM
Rationale: ROM is non-volatile memory that retains data even when the system is
powered off.
8. Which of the following is an example of a language used for web development?
A. Assembly Language
B. High-Level Language
C. Binary Code
D. Pseudocode
Answer: C) Binary Code
Rationale: Machine language consists of binary code, which is the lowest-level
programming language directly understood by the computer’s hardware.
2. Which of the following operations is used in a stack?
A. enqueue
B. pop
C. insert
D. search
Answer: B) pop
Rationale: A stack operates on a Last In First Out (LIFO) principle, where the "pop"
operation removes the top element from the stack.
3. Which of the following is NOT a valid C++ data type?
A. int
,B. float
C. character
D. bool
Answer: C) character
Rationale: The correct data type for characters in C++ is char, not character.
4. What is the role of the Control Unit (CU) in the CPU?
A. To perform arithmetic operations
B. To store data
C. To control the execution of instructions
D. To communicate with peripheral devices
Answer: C) To control the execution of instructions
Rationale: The Control Unit (CU) manages and coordinates the execution of instructions
in the CPU.
5. Which of the following is a feature of a modern RISC (Reduced Instruction Set
Computing) architecture?
A. Complex instructions
B. Few instructions per cycle
C. Complex addressing modes
D. Multiple execution units for each instruction
Answer: B) Few instructions per cycle
, Rationale: RISC architecture aims for simplicity by using a small set of instructions,
with each instruction executing in a single cycle.
6. Which of the following is a non-blocking operation in a multithreaded environment?
A. Mutex
B. Semaphore
C. Lock
D. Signal
Answer: D) Signal
Rationale: Signals are non-blocking operations in multithreading, allowing a thread to
inform another of an event without requiring it to wait.
7. In which type of memory is data permanently stored, even when the system is
powered off?
A. RAM
B. ROM
C. Cache
D. Registers
Answer: B) ROM
Rationale: ROM is non-volatile memory that retains data even when the system is
powered off.
8. Which of the following is an example of a language used for web development?