Nepal Engineering Council · Chapter 4
Computer Organization and Embedded System
Pick an answer for each question, then open “Show answer” to check it.
475 questions in 6 syllabus topics · 23 tagged from past exams or NEC model sets.
4.1 Control and central processing units
115 questions · ACtE0401
1. What is an alternative name for pipelining?
Aasadh 2081 exam- Option A: Assembly line operation
- Option B: Parallel processing
- Option C: Sequential execution
- Option D: Batch processing
Show hintHide hint
Pipelining divides processing into stages. What manufacturing concept does this resemble?
Show answerHide answer
Answer: A. Assembly line operation
Pipelining is called assembly line operation because it processes instructions in stages, similar to assembly lines where each stage performs specific tasks.
2. In indexed addressing MOV 5(R1), LOC, effective address is?
- Option A: EA = 5+R1
- Option B: EA = R1
- Option C: EA = [R1]
- Option D: EA = 5+[R1]
Show hintHide hint
Displacement plus register content.
Show answerHide answer
Answer: D. EA = 5+[R1]
Indexed addressing: EA = displacement + [register]. Here: EA = 5 + [R1]
3. What is main function of control unit?
- Option A: Fetch instructions
- Option B: Decode instructions
- Option C: Execute instructions
- Option D: Store in cache
Show hintHide hint
First step of fetch-decode-execute.
Show answerHide answer
Answer: A. Fetch instructions
Control unit's primary function is fetching instructions from memory during the fetch phase of execution cycle.
4. What is fetch-decode-execute cycle order?
- Option A: Fetch, decode, execute
- Option B: Decode, fetch, execute
- Option C: Execute, fetch, decode
- Option D: Execute, decode, fetch
Show hintHide hint
Sequential processing.
Show answerHide answer
Answer: A. Fetch, decode, execute
Correct order: Fetch instruction → Decode instruction → Execute instruction → Store result
5. What addressing mode accesses stack?
- Option A: Immediate
- Option B: Direct
- Option C: Indirect
- Option D: Stack
Show hintHide hint
Through register/pointer.
Show answerHide answer
Answer: C. Indirect
Indirect addressing mode is used for stack access through stack pointer register.
6. What is microinstruction in indirect control?
- Option A: Stored in register
- Option B: Stored in memory
- Option C: In opcode field
- Option D: In data field
Show hintHide hint
Indirect method stores next address.
Show answerHide answer
Answer: B. Stored in memory
In indirect microinstruction, next microinstruction address is stored in memory location.
7. What is pipeline having multiple stages?
- Option A: Instruction pipeline
- Option B: Arithmetic pipeline
- Option C: Data pipeline
- Option D: All of above
Show hintHide hint
CPU instruction processing.
Show answerHide answer
Answer: A. Instruction pipeline
Instruction pipeline divides instruction processing into multiple stages for parallel execution.
8. What is the primary function of the Control Unit in CPU architecture?
- Option A: Perform arithmetic and logical operations on data
- Option B: Fetch, decode, and execute instructions from memory
- Option C: Store temporary data during computation
- Option D: Manage input/output operations with peripheral devices
Show hintHide hint
Think about the orchestration of instruction processing in the fetch-decode-execute cycle.
Show answerHide answer
Answer: B. Fetch, decode, and execute instructions from memory
The Control Unit is the central orchestrator of the CPU that manages the entire instruction execution process. It fetches instructions from the main memory using the Program Counter, decodes the instruction to understand what operation must be performed, and then executes the instruction by coordinating with the ALU and other components. The Control Unit generates appropriate control signals and timing pulses that direct every operation in the CPU. Without the Control Unit, the CPU would be unable to coordinate its various components or process instructions in the correct sequence. The Control Unit essentially acts as the 'traffic director' of the processor, ensuring that each instruction flows through the processor in an orderly fashion and that all necessary operations occur at the right time.
9. Explain the concept of Control Memory and its role in microinstruction execution.
- Option A: RAM used for storing temporary data during program execution
- Option B: A special memory that stores microinstructions and microprogram control sequences
- Option C: Cache memory that speeds up instruction fetching
- Option D: Virtual memory used by the operating system
Show hintHide hint
Consider the relationship between microinstructions and the basic control operations in the CPU.
Show answerHide answer
Answer: B. A special memory that stores microinstructions and microprogram control sequences
Control Memory (also called Microprogram Memory or ROM) is a specialized storage within the Control Unit that contains the microinstructions and microprograms that define how the CPU executes each machine instruction. Each machine-level instruction (like ADD, MOV, etc.) is broken down into a sequence of microinstructions - smaller, more primitive operations that the hardware can directly execute. These microinstructions include signals for reading from registers, performing ALU operations, writing results, and managing data paths. The Control Memory typically uses ROM (Read-Only Memory) because these microprograms are fixed and don't change during program execution. When the Control Unit needs to execute a machine instruction, it looks up the corresponding microprogram in Control Memory and executes the sequence of microinstructions. This design allows for the implementation of complex instruction sets without making the hardware overly complicated. The size and organization of Control Memory directly impact the complexity of the machine instruction set that can be supported.
10. What is the purpose of microinstruction addressing and sequencing?
- Option A: To determine the order in which microinstructions are executed from Control Memory
- Option B: To allocate memory addresses for user programs
- Option C: To manage virtual memory page tables
- Option D: To handle interrupt requests from peripheral devices
Show hintHide hint
How does the Control Unit know which microinstruction to fetch next from Control Memory?
Show answerHide answer
Answer: A. To determine the order in which microinstructions are executed from Control Memory
Microinstruction addressing and sequencing is the mechanism that determines which microinstruction should be executed next in the microprogram. When a machine instruction is decoded, the Control Unit must fetch a sequence of microinstructions from Control Memory to execute that instruction. The microinstruction address sequencing can be implemented in several ways: (1) Sequential - simply incrementing the microprogram counter to fetch the next microinstruction in sequence; (2) Branching - jumping to a different address in Control Memory based on specific conditions; (3) Direct addressing - using bits within the microinstruction itself to specify the address of the next microinstruction; (4) Conditional branching - selecting between different microinstruction sequences based on condition codes. The design of the microinstruction sequencing logic affects both the speed of instruction execution and the complexity of the Control Unit. Efficient sequencing requires careful consideration of data dependencies, pipelining opportunities, and the conditional branching requirements of different machine instructions.
11. Which format is used for microinstruction design in hardwired control units?
- Option A: Vertical microinstruction format with many control bits
- Option B: Horizontal microinstruction format with individual control signals
- Option C: Compressed microinstruction format for reduced Control Memory size
- Option D: Both horizontal and vertical formats depending on the specific instruction
Show hintHide hint
Think about the trade-off between Control Memory size and execution speed.
Show answerHide answer
Answer: B. Horizontal microinstruction format with individual control signals
Microinstruction formats in hardwired and microprogrammed control units are typically designed using horizontal or vertical approaches. Horizontal microinstruction format directly encodes individual control signals as separate bits in the microinstruction word. Each bit or group of bits represents a specific control action (e.g., read from register, write to ALU, assert a particular control line). This format has a very wide microinstruction word but offers maximum parallelism - multiple control operations can occur simultaneously in a single microinstruction cycle. Although horizontal format requires more Control Memory (due to the large word width), it enables faster instruction execution because fewer microinstruction cycles are needed. In contrast, vertical microinstruction format is more compact but requires more microinstruction cycles to achieve the same operations, as control actions must be encoded and partially decoded. For high-performance processors, horizontal format is preferred despite the larger memory footprint. Many modern designs use a hybrid approach, combining some aspects of both formats to balance memory efficiency with execution speed.
12. What is Computer Configuration in the context of CPU design?
- Option A: The selection of peripheral devices connected to a computer
- Option B: The organization and interconnection of CPU components (ALU, registers, buses, memory)
- Option C: The BIOS settings for processor performance
- Option D: The arrangement of cache memory levels
Show hintHide hint
Consider how different components of a processor are arranged and connected to form a functional unit.
Show answerHide answer
Answer: B. The organization and interconnection of CPU components (ALU, registers, buses, memory)
Computer Configuration refers to the architectural design and physical organization of how CPU components are interconnected to form a cohesive processing system. This includes decisions about: (1) Number and types of registers available; (2) The width and organization of the data, address, and control buses; (3) The connection between the ALU and registers; (4) The placement and role of the Control Unit; (5) The integration of cache memory within the CPU; (6) The address decoding and memory access pathways. Different configurations lead to different processor characteristics - a simple configuration might have a single 32-bit bus and basic registers, while a modern configuration might have multiple buses, extensive register sets, and multi-level cache hierarchies. The configuration also determines the instruction set architecture (ISA) and how instructions interact with hardware resources. Von Neumann architecture with separate control and data paths differs significantly from modified Harvard architectures used in embedded systems. Configuration decisions directly impact processor performance, cost, power consumption, and complexity. These decisions must balance practical constraints (chip size, manufacturing capability, power dissipation) with performance objectives.
13. Describe the structure and organization of a typical Arithmetic and Logic Unit (ALU).
- Option A: A collection of registers for temporary data storage during computation
- Option B: A functional unit that performs arithmetic and logic operations on operands from registers
- Option C: A memory interface controller for accessing main memory
- Option D: A peripheral device controller for managing I/O operations
Show hintHide hint
What core operations does the ALU need to support for program execution?
Show answerHide answer
Answer: B. A functional unit that performs arithmetic and logic operations on operands from registers
The Arithmetic and Logic Unit (ALU) is a fundamental functional unit within the CPU responsible for performing all arithmetic and logical operations required by the instruction set. The ALU typically contains: (1) Arithmetic circuits for addition, subtraction, multiplication, and division using binary arithmetic; (2) Logic circuits for AND, OR, XOR, NOT operations; (3) Shift and rotate circuits for bit manipulation; (4) Comparison circuits for detecting condition flags (zero, overflow, carry, sign). The ALU receives two operands (usually from registers) on its input lines, performs the specified operation based on control signals from the Control Unit, and produces a result that is typically stored back in a register or used for conditional branching. Modern ALUs incorporate multiple functional units that can operate in parallel - for example, having a separate adder/subtractor unit, multiplier unit, and logic unit working simultaneously. The width of the ALU (8-bit, 16-bit, 32-bit, 64-bit) determines the size of operands it can handle and significantly impacts processor performance. Advanced ALU designs include support for floating-point operations, SIMD (Single Instruction Multiple Data) operations, and specialized functions. The ALU also generates status/condition flags (stored in the flag register) that indicate properties of the result - these flags are crucial for conditional instructions and program flow control.
14. What are the different instruction formats and how do they affect CPU design?
- Option A: All instructions must be fixed-length to simplify the Control Unit
- Option B: Fixed-length and variable-length formats, each with trade-offs in decoding complexity and instruction density
- Option C: Instruction format is irrelevant to CPU performance
- Option D: Only variable-length formats can support complex instruction sets
Show hintHide hint
Think about RISC processors with fixed-length instructions versus CISC processors with variable-length instructions.
Show answerHide answer
Answer: B. Fixed-length and variable-length formats, each with trade-offs in decoding complexity and instruction density
Instruction format design significantly impacts CPU architecture and performance. Fixed-length instruction formats (like in RISC architectures) have constant word length (typically 32 or 64 bits), where each field has a fixed position. Advantages include: simplified instruction decoding hardware, efficient pipeline operation, consistent fetch times, and easier parallel instruction processing. However, fixed-length instructions may waste bits and require more instructions to achieve complex operations. Variable-length instruction formats (like in x86 and other CISC architectures) allow instructions of different lengths (1-15 bytes in x86), optimizing code density and reducing memory/cache requirements. However, variable-length formats complicate decoding logic, require more complex sequencing, and can create pipeline hazards due to unpredictable instruction boundaries. Modern hybrid approaches include: (1) Primarily fixed-length with some variable-length extensions (ARM Thumb mode); (2) Multiple fixed lengths (MIPS has some 16-bit instructions); (3) Pre-decoding to identify instruction boundaries before main decoding stage. The choice of instruction format affects not only hardware complexity but also code size, memory bandwidth requirements, cache efficiency, and instruction-level parallelism achievable through pipelining. Designers must balance instruction density (code size) against decoding simplicity and pipeline efficiency.
15. Explain the concept of addressing modes and their role in instruction execution.
- Option A: Methods for calculating the effective address of operands in memory
- Option B: Techniques for managing virtual memory translation
- Option C: Strategies for cache replacement in multi-level caches
- Option D: Mechanisms for handling interrupt prioritization
Show hintHide hint
Consider how an instruction specifies where its operands are located.
Show answerHide answer
Answer: A. Methods for calculating the effective address of operands in memory
Addressing modes are the various methods by which instructions specify the location (effective address) of their operands. Different addressing modes provide flexibility in accessing data and enable different programming techniques: (1) Immediate addressing - operand value is directly embedded in the instruction; (2) Direct/Absolute addressing - instruction contains the absolute memory address of operand; (3) Register addressing - operand is located in a register; (4) Indirect addressing - instruction contains an address of a register that holds the operand's address; (5) Indexed addressing - effective address = base address + index register value; (6) Relative addressing - effective address calculated relative to current instruction (used for jumps); (7) Implied addressing - operand location is implicitly determined by the instruction type. Each addressing mode has specific applications: immediate for constants, direct for global variables, indexed for array access, indirect for dynamic data structures, relative for position-independent code. The number and types of addressing modes supported by a processor affect instruction set completeness, code size, and programming flexibility. RISC processors typically support fewer, simpler addressing modes to simplify hardware, while CISC processors support many complex addressing modes. The effective address calculation itself can require additional hardware (adders, shifters) and may introduce pipeline delays. Addressing mode selection during compilation significantly impacts program size and execution efficiency.
16. What is data transfer and manipulation in the context of CPU operations?
- Option A: Moving data between registers and memory, and performing operations like shift, rotate, and bit manipulation
- Option B: The process of translating virtual addresses to physical addresses
- Option C: Managing data consistency in multi-core processors
- Option D: Compressing and decompressing data for storage
Show hintHide hint
Think about instructions like MOV, LOAD, STORE, and bitwise operations.
Show answerHide answer
Answer: A. Moving data between registers and memory, and performing operations like shift, rotate, and bit manipulation
Data transfer and manipulation instructions form a fundamental category of CPU operations essential for program execution. Data transfer operations include: (1) Register-to-register moves; (2) Load operations - transferring data from memory to registers; (3) Store operations - transferring data from registers to memory; (4) I/O operations - data transfer with peripheral devices. Data manipulation operations include: (1) Shift operations - left/right shifting bits; (2) Rotate operations - circular bit rotations; (3) Bitwise logical operations - AND, OR, XOR, NOT for individual bit manipulation; (4) Bit extraction and insertion operations; (5) Byte/word swapping for endianness conversion. These operations are essential for: array and string processing, extracting fields from packed data, implementing algorithms that require bit-level operations, and data format conversions. The efficiency of these operations significantly impacts overall program performance, especially for data-intensive applications. Modern processors include specialized shift and rotate units within the ALU to execute these operations in single or few cycles. Load/store operations are particularly critical because they require memory access which is much slower than register operations. Cache hierarchies and load/store optimization techniques are essential for maintaining processor performance despite this bottleneck. Effective addressing mode support is crucial for making data transfer operations efficient.
17. Compare and contrast RISC and CISC processor design philosophies.
- Option A: RISC uses simple instructions and many registers; CISC uses complex instructions and fewer registers
- Option B: RISC is only for embedded systems; CISC is for general-purpose computers
- Option C: CISC is always faster than RISC
- Option D: They have identical performance characteristics but different manufacturing costs
Show hintHide hint
Consider the fundamental design tradeoffs between instruction complexity and execution speed.
Show answerHide answer
Answer: A. RISC uses simple instructions and many registers; CISC uses complex instructions and fewer registers
RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer) represent two major processor design philosophies with fundamental differences: RISC Design: (1) Simple, atomic instructions that execute in single cycle; (2) Large register file (32-128+ registers) for holding operands and intermediate results; (3) Only LOAD/STORE instructions access memory; (4) Uniform instruction format enabling efficient pipelining; (5) Simpler control logic and decoding; (6) Higher clock rates possible due to simpler operations; (7) Examples: MIPS, ARM, PowerPC. CISC Design: (1) Complex instructions that perform multiple operations (e.g., LOAD, operate, STORE in one instruction); (2) Smaller register file (8-16 registers) due to implicit operand locations; (3) Many addressing modes supporting complex memory access patterns; (4) Variable-length instruction format; (5) More complex control logic for decoding and execution; (6) Lower clock rates but fewer instructions needed per program; (7) Examples: x86, x86-64, m68k. Performance Implications: RISC achieves high performance through parallelism and pipelining, requiring more instructions but enabling faster cycles and simpler hardware. CISC achieves efficiency through instruction density, requiring fewer instructions but with more complex hardware. Modern processors increasingly adopt hybrid approaches: modern x86 processors internally decode CISC instructions into RISC-like micro-operations; ARM has added more complex instructions while maintaining RISC core; many RISC architectures added compression extensions for better code density. The RISC vs CISC debate is less about which is definitively better and more about different tradeoffs suitable for different applications.
18. Explain the concept of instruction pipelining and how it improves processor performance.
- Option A: A technique where multiple instructions are executed simultaneously by dividing execution into pipeline stages
- Option B: A method for increasing memory bandwidth by buffering instructions
- Option C: A compression technique for reducing instruction size
- Option D: A scheduling algorithm for managing interrupt latency
Show hintHide hint
Think of an assembly line where different stages process different instructions in parallel.
Show answerHide answer
Answer: A. A technique where multiple instructions are executed simultaneously by dividing execution into pipeline stages
Instruction pipelining is a critical performance enhancement technique where instruction execution is divided into multiple stages, and different instructions are processed in different stages simultaneously. In a classic 5-stage pipeline: (1) Fetch (IF) - retrieve instruction from memory; (2) Decode (ID) - decode instruction and read operands from registers; (3) Execute (EX) - perform ALU operation; (4) Memory (MEM) - access memory if needed; (5) Writeback (WB) - write results back to registers. With pipelining, while instruction N is in the execute stage, instruction N+1 is in decode, instruction N+2 is in fetch, etc. Ideally, the pipeline completes one instruction per cycle after filling, compared to 5 cycles per instruction without pipelining - a 5x speedup! However, pipelining introduces complications: (1) Pipeline hazards - dependencies between instructions; (2) Data hazards - when an instruction depends on results from previous instructions; (3) Control hazards - when branch instructions change the instruction flow; (4) Structural hazards - when multiple instructions need the same hardware resource. Modern processors use sophisticated techniques to handle hazards: (1) Forwarding/bypassing - directly routing results to dependent instructions without waiting for writeback; (2) Pipeline stalling - delaying instructions when hazards occur; (3) Branch prediction - speculating branch directions to avoid stalling on branches; (4) Out-of-order execution - executing independent instructions ahead of dependent ones. Deeper pipelines (10-20+ stages in modern processors) increase clock frequency but intensify hazard problems and penalty costs when hazards occur. Cache misses cause pipeline stalls lasting many cycles. The effectiveness of pipelining depends on code characteristics and hazard frequency.
19. What are pipeline hazards and how can they be mitigated?
- Option A: Situations where pipeline stalls occur due to instruction dependencies or resource conflicts
- Option B: Errors that cause incorrect instruction execution
- Option C: Memory access delays from slow caches
- Option D: Thermal issues in high-performance processors
Show hintHide hint
Consider what prevents a pipeline from sustaining one instruction per cycle throughput.
Show answerHide answer
Answer: A. Situations where pipeline stalls occur due to instruction dependencies or resource conflicts
Pipeline hazards are situations where the pipeline must stall (introduce delays) because the normal flow of instructions cannot proceed. Three main types: DATA HAZARDS occur when an instruction needs a value produced by a preceding instruction not yet available: (1) Read-After-Write (RAW) - most common, instruction needs result from previous instruction; (2) Write-After-Read (WAR) - write to a register needed by preceding instruction (rare in simple pipelines); (3) Write-After-Write (WAW) - multiple writes to same register. Example: ADD R1, R2, R3; ADD R4, R1, R5 - second instruction needs R1 from first. CONTROL HAZARDS occur when branch instructions change instruction flow unpredictably: When a branch instruction is decoded, the next instruction to fetch isn't known until the branch is resolved. The processor may have fetched and partially executed wrong instructions. Example: BEQ R1, L1; ADD R2, R3, R4 - which instruction comes after BEQ? STRUCTURAL HAZARDS occur when multiple instructions need the same hardware resource simultaneously: For example, both an instruction fetch and a load/store operation needing memory access, or multiple instructions needing the ALU. Mitigation techniques: (1) FORWARDING/BYPASSING - route results directly to dependent instructions bypassing writeback; (2) INSTRUCTION SCHEDULING - compiler reorders instructions to avoid hazards; (3) BRANCH PREDICTION - predict branch outcomes, speculatively execute instructions, and correct if prediction wrong; (4) SPECULATION WITH RECOVERY - speculate past uncertain instructions, recovering if speculation incorrect; (5) MULTIPLE PIPELINES - replicate hardware to avoid structural conflicts; (6) REGISTER RENAMING - eliminate WAW and WAR hazards by renaming registers; (7) OUT-OF-ORDER EXECUTION - execute independent instructions out of order to hide hazard latencies. The effectiveness of hazard mitigation significantly impacts pipelined processor performance.
20. Explain parallel processing and its relationship to multiprocessor systems.
- Option A: Using multiple processors or multiple cores to execute different programs or parts of programs simultaneously
- Option B: Increasing clock frequency to speed up single processor execution
- Option C: Caching frequently used data to reduce memory latency
- Option D: Optimizing compilers to generate more efficient code
Show hintHide hint
Consider how multiple CPUs or cores on a single chip can work together.
Show answerHide answer
Answer: A. Using multiple processors or multiple cores to execute different programs or parts of programs simultaneously
Parallel processing involves using multiple processing units working simultaneously to solve problems faster. This can be achieved through: (1) MULTIPROCESSOR SYSTEMS - multiple independent processors connected via shared memory and buses, each capable of independent computation; (2) MULTI-CORE PROCESSORS - multiple processor cores on a single chip, sharing some resources (cache levels, memory controller) but with independent execution resources; (3) GPU ACCELERATION - specialized graphics processors with massive parallelism for data-parallel tasks. Parallel processing is essential for modern computing because single-processor performance has reached physical limits (heat dissipation, power consumption). Forms of parallelism include: (1) TASK PARALLELISM - different processors execute different programs or different threads of same program; (2) DATA PARALLELISM - same operation applied to different data elements on different processors (SIMD, MIMD); (3) PIPELINE PARALLELISM - different stages of a computation on different processors. Challenges in parallel processing: (1) SYNCHRONIZATION - coordinating access to shared data to prevent race conditions; (2) LOAD BALANCING - distributing work evenly among processors; (3) COMMUNICATION OVERHEAD - time spent moving data between processors may exceed computation benefits; (4) MEMORY CONTENTION - multiple processors contending for memory access; (5) CACHE COHERENCE - ensuring all processors see consistent view of shared memory. Multiprocessor systems require sophisticated designs: (1) Cache coherence protocols (write-through, write-back, invalidation-based); (2) Interconnection networks optimized for low-latency, high-bandwidth communication; (3) Memory hierarchy designed for multiprocessor scenarios; (4) Synchronization primitives (locks, barriers, memory fences). Effective parallel programming requires careful design to minimize synchronization overhead and communication costs. The speedup achievable by parallel processing is limited by Amdahl's Law: speedup depends on the fraction of code that can be parallelized and the number of processors available.
21. Explain the design and function of the Program Counter (PC) in CPU architecture.
- Option A: A register that holds the address of the currently executing instruction
- Option B: A counter that tracks the number of instructions executed
- Option C: A buffer for storing intermediate computation results
- Option D: A device for measuring processor performance metrics
Show hintHide hint
How does the CPU know which instruction to fetch next?
Show answerHide answer
Answer: A. A register that holds the address of the currently executing instruction
The Program Counter (PC), also called Instruction Pointer (IP) in some architectures, is a fundamental CPU register that holds the memory address of the instruction currently being executed or about to be fetched. During normal instruction execution: (1) PC is used to fetch the current instruction from memory; (2) After fetching, PC is typically incremented by the instruction length to point to the next instruction; (3) When a branch instruction is executed, PC is loaded with the target address rather than incremented. The PC is essential for: (1) SEQUENTIAL PROGRAM FLOW - allowing instructions to be executed in order; (2) BRANCHING - enabling jump instructions to change program flow; (3) RETURN ADDRESSES - storing where to resume after function calls (saved on stack); (4) EXCEPTION HANDLING - recording where exceptions occurred. PC width determines the maximum addressable memory - a 32-bit PC can address 2^32 different memory locations. In fixed-instruction-length architectures (RISC), PC typically increments by 4 bytes per instruction. In variable-length architectures, incrementing depends on instruction length. Special considerations: (1) PIPELINE - PC must be managed carefully in pipelined processors; (2) BRANCH PREDICTION - processors may speculatively update PC before branch resolves; (3) VIRTUAL MEMORY - PC contains virtual addresses translated to physical by MMU; (4) INTERRUPTS - PC must be saved when interrupts occur; (5) DEBUGGING - PC is critical for debuggers to track program execution. The design and management of PC is crucial for correct program execution and represents one of the simplest yet most important CPU components.
22. What is the role of Status/Condition Flags (also called Flags Register) in CPU operation?
- Option A: Storing status bits that reflect results of ALU operations for conditional branching and program flow control
- Option B: Tracking memory page translation information
- Option C: Managing cache replacement policies
- Option D: Monitoring thermal and power characteristics
Show hintHide hint
Think about how conditional branches (if statements) work in assembly language.
Show answerHide answer
Answer: A. Storing status bits that reflect results of ALU operations for conditional branching and program flow control
The Status/Condition Flags Register (or Flags Register/EFLAGS in x86) contains individual flag bits that reflect properties of the most recent ALU operation or system state. Common flags: (1) ZERO FLAG (Z) - set if result was zero, used for equality testing; (2) SIGN FLAG (S/N) - set if result was negative; (3) CARRY FLAG (C) - set if arithmetic operation produced carry/borrow; (4) OVERFLOW FLAG (V) - set if signed arithmetic overflowed; (5) PARITY FLAG (P) - set if result had even parity; (6) HALF-CARRY FLAG (H) - set if carry from lower nibble; (7) INTERRUPT FLAG (I) - enables/disables interrupts; (8) TRAP FLAG (T) - enables single-step debugging. These flags enable: (1) CONDITIONAL EXECUTION - branches based on flags (BZ, BNZ, BV, BNC, etc.); (2) LOOP CONTROL - loop conditions often use flags; (3) ERROR CHECKING - overflow flag indicates computation errors; (4) COMPARISON OPERATIONS - subtraction sets flags for comparison without storing result; (5) PROGRAM FLOW CONTROL - essential for if-else, loops, and switch statements. Architectural considerations: (1) FLAG GENERATION - all ALU operations must set appropriate flags; (2) FLAG PRESERVATION - flags must be preserved across function calls if needed; (3) FLAG LATENCY - flags must be available quickly for dependent branches; (4) FLOATING-POINT FLAGS - FP exceptions stored separately in FP status register. Different ISAs define flags differently - x86 has many flags, ARM has 4 primary flags, MIPS has none (conditional test determines branch). Proper use of flags is essential for efficient conditional logic and is typically handled automatically by compilers.
23. Describe the role of general-purpose registers and special-purpose registers in CPU design.
- Option A: General-purpose for data/address storage, special-purpose for specific functions (PC, SP, Flags, etc.)
- Option B: Both types are identical in function but different in size
- Option C: General-purpose are only used in RISC processors
- Option D: Special-purpose registers cannot be directly accessed by programs
Show hintHide hint
Think about registers needed for holding data versus managing program execution.
Show answerHide answer
Answer: A. General-purpose for data/address storage, special-purpose for specific functions (PC, SP, Flags, etc.)
CPU registers are high-speed storage locations that hold operands and results. They are organized into two categories: GENERAL-PURPOSE REGISTERS: Available for programmer use to hold data and addresses. Typical ISAs provide 8-32 general-purpose registers. Advantages: (1) Extremely fast access (zero latency); (2) Reduce memory traffic; (3) Enable efficient code generation; (4) Support register allocation by compilers. Usage patterns: (1) Holding loop counters and variables; (2) Temporary operand storage; (3) Return values from functions; (4) Arguments to functions; (5) Saved state across function calls. Some ISAs designate roles (accumulator for results, register for specific purposes) but most modern ISAs allow flexible use. SPECIAL-PURPOSE REGISTERS: Dedicated to specific functions in program/system control: (1) PROGRAM COUNTER (PC/IP) - holds next instruction address; (2) STACK POINTER (SP) - points to top of stack for PUSH/POP; (3) STATUS/FLAGS REGISTER - holds condition codes; (4) MEMORY MANAGEMENT REGISTERS - page tables, TLB entries; (5) INSTRUCTION REGISTER - holds current instruction being decoded; (6) MEMORY ADDRESS REGISTER (MAR) - holds address for memory operations; (7) MEMORY DATA REGISTER (MDR) - holds data for memory operations. Some ISAs allow limited programmer access to special-purpose registers while others restrict access. Architectural considerations: (1) REGISTER COUNT - more registers reduce memory traffic but increase chip complexity; (2) REGISTER WIDTH - must match or exceed data word size; (3) REGISTER ORGANIZATION - some ISAs have register windows for function calls; (4) CONTEXT SWITCHING - saving/restoring register state is critical for multitasking. The distinction between general and special-purpose reflects the different needs: general-purpose flexibility for diverse computation versus special-purpose efficiency for critical system functions.
24. In a pipelined processor with control hazards, what is branch prediction and why is it important?
- Option A: A technique to guess whether a branch will be taken and speculatively fetch/execute instructions from the predicted path
- Option B: A method to prevent branch instructions from being executed
- Option C: A hardware mechanism to prevent pipeline stalls entirely
- Option D: A compiler optimization to eliminate all conditional branches
Show hintHide hint
Why does a pipelined processor have a problem with branch instructions?
Show answerHide answer
Answer: A. A technique to guess whether a branch will be taken and speculatively fetch/execute instructions from the predicted path
Branch prediction is a critical optimization technique in modern pipelined processors that addresses the control hazard problem. Without branch prediction, when a branch instruction is decoded, the processor doesn't know the next instruction address until the branch condition is evaluated (which occurs late in the pipeline). This creates a pipeline stall lasting many cycles. Branch prediction solves this by guessing the branch outcome early and speculatively fetching instructions from the predicted path. If prediction is correct, execution continues without stall. If prediction is wrong (mispredict), the speculatively executed instructions are discarded and execution restarts from correct path. Prediction accuracy is crucial - even 90% accurate prediction is very useful because on 10% of branches a small stall penalty occurs. PREDICTION METHODS: (1) STATIC - fixed prediction (always-taken, always-not-taken) based on instruction characteristics; (2) DYNAMIC - hardware learns branch behavior: (a) 1-bit predictor - flips on each misprediction; (b) 2-bit saturating counter - requires 2 misses to change prediction, handles occasional branches differently; (c) Pattern history table (PHT) - indexed by instruction address, stores counters; (3) CORRELATING PREDICTOR - prediction depends on outcomes of previous branches; (4) TOURNAMENT PREDICTOR - multiple predictors compete, chooser selects best. Modern processors use sophisticated predictors achieving 95%+ accuracy. INDIRECT BRANCH PREDICTION: Return address stacks cache function return addresses. Indirect branch target buffers cache previously seen target addresses. PENALTY: Modern processors stall 10-20+ cycles on misprediction due to deep pipelines. Branch misprediction is a major performance limiter alongside cache misses. Effective branch prediction is essential for high-performance execution, especially as pipelines deepen and execution becomes more speculative.
25. Explain superscalar execution and its benefits for processor performance.
- Option A: Issuing and executing multiple instructions per clock cycle from a sequential instruction stream
- Option B: Increasing processor clock frequency without changing architecture
- Option C: Using larger caches to reduce memory latency
- Option D: Implementing more pipeline stages for better instruction throughput
Show hintHide hint
What if a processor could execute more than one instruction per cycle?
Show answerHide answer
Answer: A. Issuing and executing multiple instructions per clock cycle from a sequential instruction stream
Superscalar execution is an advanced processor design technique where multiple independent instructions are issued and executed in parallel during a single clock cycle, even from a sequential instruction stream. Unlike VLIW (Very Long Instruction Word) processors where the compiler explicitly schedules multiple instructions, superscalar processors use hardware logic to dynamically identify independent instructions that can execute together. Key aspects: (1) INSTRUCTION FETCH - fetch multiple instructions per cycle from instruction cache; (2) INSTRUCTION DISPATCH - decode multiple instructions and check for dependencies; (3) PARALLEL EXECUTION UNITS - multiple ALUs, multipliers, load/store units allow independent operations; (4) REGISTER RENAMING - eliminates false dependencies (WAW and WAR hazards) allowing more parallelism; (5) OUT-OF-ORDER EXECUTION - execute independent instructions out of order, completing in different order than issued. Example: four 3-issue superscalar can execute up to 4 instructions per cycle from independent operations. Benefits: (1) IMPROVED IPC (Instructions Per Cycle) - from 1 to 2-4+ depending on degree; (2) FREQUENCY INDEPENDENCE - increased throughput without raising clock frequency; (3) BACKWARD COMPATIBLE - works with sequential instruction streams; (4) DYNAMIC OPTIMIZATION - adapts to instruction-level parallelism in actual code. Challenges: (1) COMPLEXITY - multiple fetch, dispatch, execution stages require sophisticated logic; (2) POWER CONSUMPTION - multiple execution units consume significant power; (3) DEPENDENCY DETECTION - must efficiently detect all data dependencies; (4) ISSUE LOGIC - complexity grows quadratically with issue width; (5) MEMORY HIERARCHY - must supply multiple instructions per cycle; (6) CODE CHARACTERISTICS - actual IPC varies greatly with code; (7) VERIFICATION - testing is extremely complex. Modern processors are heavily superscalar: modern x86 (Intel, AMD), ARM, MIPS use 4-6 wide issue. Diminishing returns exist - moving from 3-wide to 4-wide is harder than 2-wide to 3-wide. Out-of-order superscalar is one of most power-hungry components of modern processors.
26. What is speculative execution and what are the associated risks?
- Option A: Executing instructions ahead of branch/load resolution and discarding if prediction was wrong; risks include security vulnerabilities and power waste
- Option B: Executing instructions in random order to improve cache utilization
- Option C: Predicting memory access patterns to prefetch data
- Option D: Parallel execution of instructions on multiple cores
Show hintHide hint
Modern processors execute instructions that might not actually be needed - what could go wrong?
Show answerHide answer
Answer: A. Executing instructions ahead of branch/load resolution and discarding if prediction was wrong; risks include security vulnerabilities and power waste
Speculative execution is a fundamental optimization in modern processors where instructions are executed before it's certain they will actually be needed, based on predictions of branch outcomes or load/store dependencies. Examples: (1) Branch prediction allows speculative execution down predicted path; (2) Load speculation in out-of-order processors executes loads before preceding stores are resolved; (3) Address speculation when load address depends on result of previous instruction. Benefits: (1) Masks branch/load latencies; (2) Enables deeper pipelines and higher frequencies; (3) Improves out-of-order execution efficiency. Risks and challenges: (1) POWER WASTE - executing speculative instructions that don't contribute to final result wastes energy; (2) POLLUTION - speculative loads fill caches with data not used, evicting useful data; (3) EXCEPTION HANDLING - exceptions in speculative instructions must be suppressed/deferred; (4) PRECISION - interrupts during speculation can cause imprecise exceptions; (5) SECURITY VULNERABILITIES - (most critical) speculative execution enables Spectre and Meltdown attacks where timing differences from cache state leaked through speculation can reveal secrets (encryption keys, passwords, etc.). Spectre/Meltdown: Attackers trick processor into speculatively executing code that accesses secret data, then observe timing/cache effects to deduce data values even though speculative execution is rolled back. This led to: (1) Microcode patches disabling some speculation; (2) Instruction set extensions (LFENCE) to prevent speculation; (3) Significant performance penalties (5-30% depending on workload); (4) Hardware isolation mechanisms (IBRS, STIBP); (5) Process isolation improvements; (6) Flushing caches on context switches. The Spectre/Meltdown vulnerabilities revealed fundamental security issues with modern CPU designs and created ongoing tension between performance (enabled by speculation) and security.
27. What is the purpose of the control unit in a CPU?
NEC model set- Option A: To perform arithmetic and logical operations on data
- Option B: To store and retrieve data from memory
- Option C: To interpret instructions and control the flow of data within the CPU
- Option D: To print data from memory
Show hintHide hint
The control unit orchestrates CPU operations. What coordinates all the different parts?
Show answerHide answer
Answer: C. To interpret instructions and control the flow of data within the CPU
The control unit's primary purpose is to interpret instructions and control the flow of data within the CPU. Specifically, it: (1) Fetches instructions from memory, (2) Decodes the instruction to determine what operation is needed, (3) Sends control signals to other CPU components to execute the instruction, (4) Manages the instruction sequence and program counter, (5) Coordinates timing and synchronization. The control unit directs: (1) The ALU (Arithmetic Logic Unit) - which performs arithmetic and logical operations, (2) Memory operations - for storing and retrieving data, (3) Register operations - for data movement and storage. Think of the control unit as the 'traffic controller' of the CPU. Other components have specific functions: the ALU performs calculations, registers store data, memory stores programs and data. But the control unit orchestrates how all these parts work together. Without the control unit, the CPU would be like an orchestra without a conductor - individual instruments working but not in harmony. The control unit implements the fetch-decode-execute cycle.
28. An instruction set refers to
NEC model set- Option A: set of rules for writing code in a specific programming language
- Option B: instructions that a processor can execute
- Option C: input-output operations that a processor can perform
- Option D: printing commands
Show hintHide hint
Instruction set is hardware-level. What does a processor directly understand?
Show answerHide answer
Answer: B. instructions that a processor can execute
An instruction set refers to the complete set of machine instructions that a processor can execute. It's the basic instruction set that the CPU natively understands and can perform. Each instruction set is processor-specific and includes: (1) Arithmetic operations (ADD, SUB, MUL, DIV), (2) Logical operations (AND, OR, XOR, NOT), (3) Memory operations (LOAD, STORE), (4) Control flow (JUMP, CALL, RETURN), (5) I/O operations (INPUT, OUTPUT). Examples of instruction sets: (1) x86/x86-64 (Intel/AMD processors), (2) ARM (mobile processors), (3) RISC-V (open standard), (4) MIPS. Characteristics: (1) Processor-specific - Different processors have different instruction sets, (2) Machine-level - In binary or assembly form, (3) Hardware implementation - Directly executed by CPU circuits. This is different from: (1) Programming language syntax - which is a higher-level abstraction, (2) I/O operations - which are part of but not the entirety of instruction set, (3) Printing commands - which don't constitute an instruction set. The instruction set defines what a processor can do at the most fundamental level.
29. The CPI (Cycles Per Instruction) in an ideal pipeline is:
NEC model set- Option A: 0
- Option B: 1
- Option C: n
- Option D: Depends on clock speed
Show hintHide hint
In a perfect pipeline with no stalls, how many cycles per instruction?
Show answerHide answer
Answer: B. 1
In an ideal pipeline with no stalls, dependencies, or hazards, the CPI (Cycles Per Instruction) is 1. This means one instruction completes per clock cycle after the initial pipeline fill. A well-designed pipeline can achieve CPI close to 1 through techniques like superscaling. However, practical pipelines have stalls due to data hazards, control hazards, and cache misses, increasing the actual CPI above 1.
30. Which of the following is a characteristic of CISC architecture?
Recalled from Jan 2026 exam- Option A: Large number of simple instructions
- Option B: Small number of complex instructions
- Option C: Fixed instruction length
- Option D: Pipeline efficiency
Show hintHide hint
CISC has complex instructions. What's the characteristic?
Show answerHide answer
Answer: B. Small number of complex instructions
A characteristic of CISC (Complex Instruction Set Computer) architecture is a small number of complex instructions. CISC uses powerful instructions that perform multiple operations (like MOV, ADD, and MULTIPLY combined). This reduces program size and memory bandwidth. RISC (Reduced Instruction Set Computer) uses a large number of simple instructions. CISC instructions vary in length. CISC can have pipeline challenges due to instruction complexity. x86 and x64 are CISC architectures. CISC was popular before RISC architectures became dominant for many applications.
31. Which CPU design philosophy emphasizes a reduced set of simpler instructions?
- Option A: CISC
- Option B: RISC
- Option C: VLIW
- Option D: EPIC
Show answerHide answer
Answer: B. RISC
32. Pipelining in CPU design aims to increase:
- Option A: Clock frequency
- Option B: Instruction throughput
- Option C: Cache size
- Option D: Register count
Show answerHide answer
Answer: B. Instruction throughput
33. Which of the following is NOT a common instruction format component?
- Option A: Opcode
- Option B: Operand
- Option C: Cache line
- Option D: Address mode
Show answerHide answer
Answer: C. Cache line
34. Which addressing mode uses the content of a register plus a constant to determine the effective address?
- Option A: Immediate addressing
- Option B: Direct addressing
- Option C: Indexed addressing
- Option D: Register addressing
Show answerHide answer
Answer: C. Indexed addressing
35. A key characteristic of CISC architecture is:
- Option A: Fixed instruction length
- Option B: Large number of registers
- Option C: Complex addressing modes
- Option D: Single-cycle execution
Show answerHide answer
Answer: C. Complex addressing modes
36. Control memory in a computer system is used to store:
- Option A: User data
- Option B: Operating system
- Option C: Microinstructions
- Option D: Cache data
Show answerHide answer
Answer: C. Microinstructions
37. The primary function of the ALU in a CPU is:
- Option A: Memory management
- Option B: Instruction decoding
- Option C: Mathematical and logical operations
- Option D: I/O control
Show answerHide answer
Answer: C. Mathematical and logical operations
38. The primary advantage of hardwired control unit over microprogrammed control unit is:
- Option A: Flexibility
- Option B: Ease of design
- Option C: Speed
- Option D: Cost
Show answerHide answer
Answer: C. Speed
39. In horizontal microinstruction format:
- Option A: Each bit directly controls a control line
- Option B: Bits are encoded to reduce instruction width
- Option C: Only one operation can be specified at a time
- Option D: Instructions are always fixed length
Show answerHide answer
Answer: A. Each bit directly controls a control line
40. Which of the following is NOT a typical field in a microinstruction format?
- Option A: ALU operation
- Option B: Memory operation
- Option C: User data
- Option D: Next address
Show answerHide answer
Answer: C. User data
41. The primary difference between RISC and CISC architectures is:
- Option A: RISC uses more registers than CISC
- Option B: CISC has simpler instructions than RISC
- Option C: RISC emphasizes simple instructions and optimized pipelines
- Option D: CISC processors are always faster than RISC
Show answerHide answer
Answer: C. RISC emphasizes simple instructions and optimized pipelines
42. A hazard in pipelining that occurs when an instruction depends on the result of a previous instruction still in the pipeline is called:
- Option A: Structural hazard
- Option B: Data hazard
- Option C: Control hazard
- Option D: Memory hazard
Show answerHide answer
Answer: B. Data hazard
43. Which of the following best describes a Harvard architecture?
- Option A: Single memory for both instructions and data
- Option B: Separate memories for instructions and data
- Option C: Multiple processors sharing memory
- Option D: Virtual memory implementation
Show answerHide answer
Answer: B. Separate memories for instructions and data
44. Which of the following is NOT a common bus in computer organization?
- Option A: Data bus
- Option B: Address bus
- Option C: Control bus
- Option D: Execution bus
Show answerHide answer
Answer: D. Execution bus
45. Which of the following is not a function of the control unit?
- Option A: Fetching instructions from memory
- Option B: Decoding instructions
- Option C: Executing instructions
- Option D: Storing instructions in cache memory
Show answerHide answer
Answer: D. Storing instructions in cache memory
46. Which of the following is responsible for performing arithmetic and logical operations in a CPU?
- Option A: Control unit
- Option B: Arithmetic logic unit
- Option C: Cache memory
- Option D: Virtual memory
Show answerHide answer
Answer: B. Arithmetic logic unit
47. Which addressing mode uses a constant value or an expression as an operand to specify the memory location to be accessed?
- Option A: Immediate addressing mode
- Option B: Direct addressing mode
- Option C: Indirect addressing mode
- Option D: Indexed addressing mode
Show answerHide answer
Answer: A. Immediate addressing mode
48. Which addressing mode uses a memory location as an operand to specify the memory location to be accessed?
- Option A: Immediate addressing mode
- Option B: Direct addressing mode
- Option C: Indirect addressing mode
- Option D: Indexed addressing mode
Show answerHide answer
Answer: B. Direct addressing mode
49. Which addressing mode uses a memory location that contains the address of the memory location to be accessed?
- Option A: Immediate addressing mode
- Option B: Direct addressing mode
- Option C: Indirect addressing mode
- Option D: Indexed addressing mode
Show answerHide answer
Answer: C. Indirect addressing mode
50. Which addressing mode adds an offset to a base memory address to calculate the memory location to be accessed?
- Option A: Immediate addressing mode
- Option B: Direct addressing mode
- Option C: Indirect addressing mode
- Option D: Indexed addressing mode
Show answerHide answer
Answer: D. Indexed addressing mode
51. Which of the following components is responsible for executing instructions in a computer?
- Option A: Central Processing Unit (CPU)
- Option B: Random Access Memory (RAM)
- Option C: Hard Disk Drive (HDD)
- Option D: Graphics Processing Unit (GPU)
Show answerHide answer
Answer: A. Central Processing Unit (CPU)
52. Which of the following is a measure of the clock speed of a CPU?
- Option A: Gigahertz (GHz)
- Option B: Megabytes (MB)
- Option C: Terabytes (TB)
- Option D: Kilohertz (kHz)
Show answerHide answer
Answer: A. Gigahertz (GHz)
53. Which of the following is not a factor that affects the performance of a CPU?
- Option A: Clock speed
- Option B: Cache size
- Option C: Number of cores
- Option D: Type of operating system
Show answerHide answer
Answer: D. Type of operating system
54. Which component of a microinstruction specifies the operation to be performed by the CPU?
- Option A: Opcode
- Option B: Operand
- Option C: Control signals
- Option D: Microprogram counter
Show answerHide answer
Answer: A. Opcode
55. Which of the following is not a benefit of using microprogramming?
- Option A: Increased flexibility
- Option B: Simplified hardware design
- Option C: Improved performance
- Option D: Easier debugging and maintenance
Show answerHide answer
Answer: C. Improved performance
56. Which type of microinstruction is used to modify the execution sequence of a program?
- Option A: Unconditional microinstruction
- Option B: Conditional microinstruction
- Option C: Direct microinstruction
- Option D: Indirect microinstruction
Show answerHide answer
Answer: B. Conditional microinstruction
57. In a microprogrammed control unit, the microinstructions are stored in:
- Option A: The CPU cache
- Option B: The hard disk drive
- Option C: The ROM of the control unit
- Option D: The RAM of the control unit
Show answerHide answer
Answer: C. The ROM of the control unit
58. Which of the following is not a function of a control unit in a CPU?
- Option A: Instruction decoding
- Option B: Performing arithmetic operations
- Option C: Memory accessing
- Option D: None of the above
Show answerHide answer
Answer: B. Performing arithmetic operations
59. The design of a control unit is typically based on:
- Option A: Microprogramming
- Option B: Hardwiring
- Option C: A combination of microprogramming and hardwiring
- Option D: None of the above
Show answerHide answer
Answer: C. A combination of microprogramming and hardwiring
60. Which of the following is not a component of a control unit?
- Option A: Instruction register
- Option B: Decoder
- Option C: Arithmetic logic unit
- Option D: Sequencer
Show answerHide answer
Answer: C. Arithmetic logic unit
61. The instruction register of a control unit holds:
- Option A: The opcode of the current instruction
- Option B: The memory address of the current instruction
- Option C: The current instruction being executed
- Option D: The result of the current instruction
Show answerHide answer
Answer: C. The current instruction being executed
62. The decoder of a control unit is responsible for:
- Option A: Converting binary data to decimal data
- Option B: Interpreting the opcode of an instruction
- Option C: Performing arithmetic operations
- Option D: Accessing memory
Show answerHide answer
Answer: B. Interpreting the opcode of an instruction
63. Which of the following is not a type of control unit design?
- Option A: Hardwired control unit
- Option B: Microprogrammed control unit
- Option C: Hybrid control unit
- Option D: Centralized control unit
Show answerHide answer
Answer: D. Centralized control unit
64. In a hardwired control unit, the control signals are generated by:
- Option A: A microprogram
- Option B: Logic gates and flip-flops
- Option C: The CPU cache
- Option D: The main memory
Show answerHide answer
Answer: B. Logic gates and flip-flops
65. Which of the following is not a component of a control unit?
- Option A: Instruction register
- Option B: Control register
- Option C: Decoder
- Option D: Arithmetic logic unit
Show answerHide answer
Answer: D. Arithmetic logic unit
66. The control unit is responsible for:
- Option A: Fetching instructions from memory
- Option B: Decoding instructions
- Option C: Executing instructions
- Option D: All of the above
Show answerHide answer
Answer: D. All of the above
67. Which of the following is not a design approach for implementing a control unit?
- Option A: Hardwired control
- Option B: Microprogrammed control
- Option C: Sequential control
- Option D: State machine control
Show answerHide answer
Answer: C. Sequential control
68. In hardwired control, the control signals are generated by:
- Option A: A microinstruction
- Option B: A state machine
- Option C: A combination of gates and flip-flops
- Option D: The CPU cache
Show answerHide answer
Answer: C. A combination of gates and flip-flops
69. Microprogrammed control uses:
- Option A: Hardwired logic circuits to generate control signals
- Option B: A program stored in ROM to generate control signals
- Option C: A state machine to generate control signals
- Option D: A combination of gates and flip-flops to generate control signals
Show answerHide answer
Answer: B. A program stored in ROM to generate control signals
70. Which of the following is not an advantage of using microprogrammed control?
- Option A: Increased flexibility
- Option B: Simplified hardware design
- Option C: Improved performance
- Option D: Easier debugging and maintenance
Show answerHide answer
Answer: C. Improved performance
71. The microprogram stored in ROM for a microprogrammed control unit is also known as:
- Option A: Control memory
- Option B: Data memory
- Option C: Address memory
- Option D: Cache memory
Show answerHide answer
Answer: A. Control memory
72. In state machine control, the control unit is implemented as:
- Option A: A combinational logic circuit
- Option B: A sequential logic circuit
- Option C: A program stored in ROM
- Option D: A microinstruction
Show answerHide answer
Answer: B. A sequential logic circuit
73. Which of the following is not a type of instruction used by a control unit?
- Option A: Arithmetic instructions
- Option B: Control transfer instructions
- Option C: Input/output instructions
- Option D: Data transfer instructions
Show answerHide answer
Answer: A. Arithmetic instructions
74. The instruction register in a control unit is used to:
- Option A: Store the current instruction being executed
- Option B: Store the address of the next instruction
- Option C: Store the result of an arithmetic operation
- Option D: Store a microinstruction
Show answerHide answer
Answer: A. Store the current instruction being executed
75. The CPU consists of which two main components?
- Option A: Memory and control unit
- Option B: Control unit and arithmetic logic unit
- Option C: Arithmetic logic unit and memory
- Option D: Input/output unit and control unit
Show answerHide answer
Answer: B. Control unit and arithmetic logic unit
76. What is the function of the arithmetic logic unit (ALU) in the CPU?
- Option A: To fetch instructions from memory
- Option B: To decode instructions
- Option C: To execute arithmetic and logic operations
- Option D: To store results in memory
Show answerHide answer
Answer: C. To execute arithmetic and logic operations
77. The clock speed of a CPU is measured in:
- Option A: Megabytes per second
- Option B: Gigahertz
- Option C: Terabytes
- Option D: Kilohertz
Show answerHide answer
Answer: B. Gigahertz
78. What is the purpose of the register file in the CPU?
- Option A: To store the program counter
- Option B: To store instructions being executed
- Option C: To store intermediate results of calculations
- Option D: To store data from memory
Show answerHide answer
Answer: C. To store intermediate results of calculations
79. Which of the following is not a type of register in the CPU?
- Option A: Program counter
- Option B: Instruction register
- Option C: Control register
- Option D: Cache register
Show answerHide answer
Answer: D. Cache register
80. The program counter (PC) in the CPU is used to:
- Option A: Store intermediate results of calculations
- Option B: Store the current instruction being executed
- Option C: Store the address of the next instruction to be executed
- Option D: Store data from memory
Show answerHide answer
Answer: C. Store the address of the next instruction to be executed
81. Which of the following is not a function of the control unit in the CPU?
- Option A: Fetching instructions from memory
- Option B: Decoding instructions
- Option C: Executing instructions
- Option D: Controlling the flow of data between registers and ALU
Show answerHide answer
Answer: C. Executing instructions
82. The Von Neumann architecture of CPU design includes:
- Option A: Separate memory for instructions and data
- Option B: Separate buses for instructions and data
- Option C: A single bus for both instructions and data
- Option D: Multiple buses for both instructions and data
Show answerHide answer
Answer: C. A single bus for both instructions and data
83. Which of the following is not a component of a CPU?
- Option A: Control unit
- Option B: Memory unit
- Option C: Arithmetic logic unit
- Option D: Register unit
Show answerHide answer
Answer: B. Memory unit
84. The main function of the control unit is to:
- Option A: Fetching instructions from memory
- Option B: Manage data transfer between devices
- Option C: Storing data in memory
- Option D: Manage the overall operation of the CPU
Show answerHide answer
Answer: D. Manage the overall operation of the CPU
85. The arithmetic logic unit (ALU) is responsible for:
- Option A: Perform arithmetic operations
- Option B: Decoding instructions
- Option C: Execute instructions
- Option D: Performing arithmetic and logic operations
Show answerHide answer
Answer: D. Performing arithmetic and logic operations
86. Which of the following is not a type of register found in a CPU?
- Option A: Program counter
- Option B: Instruction register
- Option C: Memory register
- Option D: Accumulator
Show answerHide answer
Answer: C. Memory register
87. The program counter (PC) is used to:
- Option A: Store the current instruction being executed
- Option B: Store the result of an arithmetic operation
- Option C: Store the address of the next instruction to be fetched
- Option D: Store data for use in a calculation
Show answerHide answer
Answer: C. Store the address of the next instruction to be fetched
88. The instruction register (IR) is used to:
- Option A: Store the current instruction being executed
- Option B: Store the address of the next instruction to be fetched
- Option C: Store the result of an arithmetic operation
- Option D: Store data for use in a calculation
Show answerHide answer
Answer: A. Store the current instruction being executed
89. The fetch-decode-execute cycle is the basic operation of a CPU. Which of the following is the correct order of these three steps?
- Option A: Fetch, decode, execute
- Option B: Decode, fetch, execute
- Option C: Execute, fetch, decode
- Option D: Execute, decode, fetch
Show answerHide answer
Answer: A. Fetch, decode, execute
90. Clock speed is a measure of:
- Option A: The amount of memory in a CPU
- Option B: The frequency at which instructions are executed
- Option C: The number of cores in a CPU
- Option D: The size of the cache memory
Show answerHide answer
Answer: B. The frequency at which instructions are executed
91. Which of the following is not a factor that affects CPU performance?
- Option A: Clock speed
- Option B: Number of cores
- Option C: Cache size
- Option D: Amount of RAM
Show answerHide answer
Answer: D. Amount of RAM
92. The Arithmetic and Logic Unit (ALU) is responsible for:
- Option A: Storing data in memory
- Option B: Executing instructions
- Option C: Managing the operation of the CPU
- Option D: Fetching instructions from memory
Show answerHide answer
Answer: B. Executing instructions
93. Which of the following operations is not performed by the ALU?
- Option A: Addition
- Option B: Subtraction
- Option C: Multiplication
- Option D: Data transfer
Show answerHide answer
Answer: D. Data transfer
94. The ALU is composed of two types of circuits. What are they?
- Option A: Decoder and control circuits
- Option B: Adder and logic circuits
- Option C: Multiplexer and demultiplexer circuits
- Option D: Input and output circuits
Show answerHide answer
Answer: B. Adder and logic circuits
95. Which of the following is not a logic operation performed by the ALU?
- Option A: AND
- Option B: OR
- Option C: NOT
- Option D: Addition
Show answerHide answer
Answer: D. Addition
96. The carry flag is used to indicate what?
- Option A: Whether the last operation resulted in a positive number
- Option B: Whether the last operation resulted in a negative number
- Option C: Whether the last operation resulted in a zero
- Option D: Whether the last operation resulted in an overflow or underflow
Show answerHide answer
Answer: D. Whether the last operation resulted in an overflow or underflow
97. The zero flag is used to indicate what?
- Option A: Whether the last operation resulted in a positive number
- Option B: Whether the last operation resulted in a negative number
- Option C: Whether the last operation resulted in a zero
- Option D: Whether the last operation resulted in an overflow or underflow
Show answerHide answer
Answer: C. Whether the last operation resulted in a zero
98. Which of the following is not an arithmetic operation performed by the ALU?
- Option A: Increment
- Option B: Decrement
- Option C: Shift left
- Option D: Addition
Show answerHide answer
Answer: C. Shift left
99. The Arithmetic Logic Unit (ALU) is a part of the:
- Option A: Control Unit
- Option B: Memory Unit
- Option C: Input Unit
- Option D: Output Unit
Show answerHide answer
Answer: A. Control Unit
100. The ALU performs which of the following types of operations?
- Option A: Arithmetic operations only
- Option B: Logic operations only
- Option C: Both arithmetic and logic operations
- Option D: Neither arithmetic nor logic operations
Show answerHide answer
Answer: C. Both arithmetic and logic operations
101. Which of the following is not an arithmetic operation performed by the ALU?
- Option A: Addition
- Option B: Subtraction
- Option C: Multiplication
- Option D: Comparison
Show answerHide answer
Answer: D. Comparison
102. Which of the following is not a logical operation performed by the ALU?
- Option A: AND
- Option B: OR
- Option C: NOT
- Option D: Addition
Show answerHide answer
Answer: D. Addition
103. The result of an arithmetic operation performed by the ALU is stored in the:
- Option A: Program Counter (PC)
- Option B: Instruction Register (IR)
- Option C: Memory
- Option D: Accumulator
Show answerHide answer
Answer: D. Accumulator
104. The result of a logical operation performed by the ALU is stored in the:
- Option A: Program Counter (PC)
- Option B: Instruction Register (IR)
- Option C: Memory
- Option D: Accumulator
Show answerHide answer
Answer: D. Accumulator
105. Which of the following is not a flag bit that can be set by the ALU?
- Option A: Zero flag
- Option B: Overflow flag
- Option C: Carry flag
- Option D: Negative flag
Show answerHide answer
Answer: B. Overflow flag
106. The carry flag is set when:
- Option A: The result of a logical operation overflows
- Option B: The result of a subtraction operation overflows
- Option C: The result of a multiplication operation overflows
- Option D: The result of an addition operation overflows
Show answerHide answer
Answer: D. The result of an addition operation overflows
107. The overflow flag is set when:
- Option A: The result of a logical operation overflows
- Option B: The result of a subtraction operation overflows
- Option C: The result of a multiplication operation overflows
- Option D: The result of an addition operation overflows
Show answerHide answer
Answer: D. The result of an addition operation overflows
108. In immediate addressing mode, the operand is:
- Option A: A memory address
- Option B: A register
- Option C: An immediate value
- Option D: None of the above
Show answerHide answer
Answer: C. An immediate value
109. Which addressing mode allows for the use of a memory address directly in the instruction?
- Option A: Immediate
- Option B: Direct
- Option C: Indirect
- Option D: Inverted
Show answerHide answer
Answer: B. Direct
110. In indirect addressing mode, the operand is:
- Option A: A memory address stored in a register
- Option B: An immediate value
- Option C: The value stored at a memory address
- Option D: None of the above
Show answerHide answer
Answer: A. A memory address stored in a register
111. Which addressing mode is typically used for accessing elements in an array?
- Option A: Immediate
- Option B: Direct
- Option C: Indirect
- Option D: Indexed
Show answerHide answer
Answer: D. Indexed
112. RISC stands for:
- Option A: Reduced Instruction Set Computer
- Option B: Real Instruction Set Computer
- Option C: Random Instruction Set Computer
- Option D: Robust Instruction Set Computer
Show answerHide answer
Answer: A. Reduced Instruction Set Computer
113. CISC stands for:
- Option A: Complex Instruction Set Computer
- Option B: Compact Instruction Set Computer
- Option C: Common Instruction Set Computer
- Option D: Cooperative Instruction Set Computer
Show answerHide answer
Answer: A. Complex Instruction Set Computer
114. Which type of CPU design uses a small set of simple instructions?
- Option A: RISC
- Option B: CISC
- Option C: Both RISC and CISC
- Option D: Neither RISC nor CISC
Show answerHide answer
Answer: A. RISC
115. Pipelining is a technique used to:
- Option A: Increase the clock speed of a CPU
- Option B: Increase the number of registers in a CPU
- Option C: Increase the number of cores in a CPU
- Option D: Increase the number of instructions that can be executed simultaneously
Show answerHide answer
Answer: D. Increase the number of instructions that can be executed simultaneously
4.2 Computer arithmetic and memory system
115 questions · ACtE0402
116. EEPROM has drain and floating gate gap of
NEC model set- Option A: 5 nm
- Option B: 10 nm
- Option C: 12 nm
- Option D: 15 nm
Show hintHide hint
Standard EEPROM device specifications for oxide layer thickness.
Show answerHide answer
Answer: B. 10 nm
EEPROM (Electrically Erasable Programmable Read-Only Memory) devices have a characteristic oxide layer (tunnel oxide) between the drain and floating gate with a typical thickness of approximately 10 nanometers. This oxide layer is crucial for the device's operation as it controls electron tunneling for programming and erasing operations. The thickness affects the voltage required for writing/erasing and the data retention characteristics. Modern flash memory devices may have variations in this specification, but for standard EEPROM, 10 nm is the reference value. This thin oxide layer is critical for achieving the low voltages required for EEPROM operation.
117. In which cache replacement algorithm is least frequently used block removed?
Aasadh 2081 exam- Option A: Least Recently Used (LRU)
- Option B: First-In-First-Out (FIFO)
- Option C: Random
- Option D: Least Frequently Used (LFU)
Show hintHide hint
Track how often each block is accessed.
Show answerHide answer
Answer: D. Least Frequently Used (LFU)
LFU removes the block that has been used the least number of times, based on access frequency.
118. What provides fastest data access?
- Option A: Caches
- Option B: DRAM
- Option C: SRAM
- Option D: Registers
Show hintHide hint
On-chip storage.
Show answerHide answer
Answer: D. Registers
Registers provide fastest access because they're on the CPU with zero latency.
119. Which memory level has shortest latency?
- Option A: Cache
- Option B: Main memory
- Option C: Secondary memory
- Option D: Tertiary memory
Show hintHide hint
Closest to CPU.
Show answerHide answer
Answer: A. Cache
Cache memory has shortest latency because it's on-chip and closest to the CPU.
120. What level of memory is fastest?
- Option A: L1 cache
- Option B: L2 cache
- Option C: Main memory
- Option D: Secondary storage
Show hintHide hint
First level cache.
Show answerHide answer
Answer: A. L1 cache
L1 cache is fastest memory level because it's on-chip and has lowest latency.
121. Which cache level is available?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: All of the above
Show hintHide hint
Modern CPUs have multiple cache levels.
Show answerHide answer
Answer: D. All of the above
Modern processors typically have L1, L2, and L3 caches for hierarchical memory access.
122. What is multiplication operation result size?
- Option A: Same as inputs
- Option B: Half input size
- Option C: Twice input size
- Option D: Four times input
Show hintHide hint
Multiplying two n-bit numbers.
Show answerHide answer
Answer: C. Twice input size
Multiplying two n-bit numbers produces result of up to 2n bits.
123. What is memory controller function?
- Option A: Generate interrupts
- Option B: Handle memory operations
- Option C: Store memory
- Option D: Communicate with devices
Show hintHide hint
Memory management.
Show answerHide answer
Answer: B. Handle memory operations
Memory controller manages all memory read/write operations and controls memory bus.
124. What is arithmetic overflow and how is it detected in CPU operations?
- Option A: When the result of an arithmetic operation exceeds the range that can be represented in the available bits
- Option B: Excessive memory allocation causing system crash
- Option C: Data that exceeds the instruction cache size
- Option D: Unintended interrupt signals during computation
Show hintHide hint
What happens when you add two positive numbers and get a negative result?
Show answerHide answer
Answer: A. When the result of an arithmetic operation exceeds the range that can be represented in the available bits
Arithmetic overflow occurs when the result of an arithmetic operation cannot be properly represented in the designated number of bits. For example, adding 127 + 1 in 8-bit signed representation would overflow because the result 128 cannot be represented in 8-bit signed integer range (-128 to +127). Overflow detection depends on the data representation: UNSIGNED INTEGERS: Overflow occurs when carry-out from the most significant bit is generated. Example: in 8-bit unsigned, 255 + 1 generates a carry that is lost. SIGNED INTEGERS (Two's Complement): Overflow occurs when: (1) Adding two positive numbers produces negative result; (2) Adding two negative numbers produces positive result; (3) The carry-into sign bit differs from carry-out of sign bit. Example: in 8-bit signed, 127 + 1 = -128 (incorrect due to overflow). The CPU sets OVERFLOW FLAG in the status register when overflow is detected. Hardware detection circuits monitor operand signs and result sign, comparing against expected signs. Different ISAs handle overflow differently: (1) Some generate exceptions/traps for overflow; (2) Some set flags but continue; (3) Some wrap-around (saturation arithmetic for DSP applications). Proper handling of overflow is critical for: (1) Numeric computations requiring accuracy; (2) Safety-critical applications; (3) Cryptographic operations; (4) Digital signal processing. Compilers and programmers must be aware of overflow potential and use appropriate data types (wider integers, floating-point) or checking code when necessary. Undefined behavior or silent incorrect results from overflow can be catastrophic in critical applications.
125. What is the purpose of the cache replacement policy?
NEC model set- Option A: To determine which data to store in the cache
- Option B: To determine which data to evict from the cache when space is needed
- Option C: To determine how many levels of cache to use
- Option D: To determine which data to store in RAM
Show hintHide hint
When cache is full, what policy decides which existing data gets removed?
Show answerHide answer
Answer: B. To determine which data to evict from the cache when space is needed
Cache replacement policy determines which data block to evict (remove) from the cache when new data needs to be stored and the cache is full. Common replacement policies: (1) Least Recently Used (LRU) - Removes the block that hasn't been used recently, (2) First-In-First-Out (FIFO) - Removes the oldest block, (3) Least Frequently Used (LFU) - Removes the least frequently accessed block, (4) Random replacement - Randomly selects a block. The effectiveness of a replacement policy impacts cache performance: A good policy ensures frequently accessed data stays in cache, improving hit rate and performance. A poor policy might evict data that's needed again soon, causing cache misses. LRU is widely used because it performs well in practice - data recently accessed is likely needed again soon. Selection criteria: (1) Minimize cache misses, (2) Keep frequently used data in cache, (3) Maximize overall system performance. This is different from deciding what data to initially cache (which is determined by cache coherence and write policies) or determining cache structure (number of levels, size).
126. Increasing cache size generally:
NEC model set- Option A: Always improves performance
- Option B: Improves hit ratio but may increase access time
- Option C: Reduces both hit ratio and access time
- Option D: Does not affect system performance
Show hintHide hint
Larger caches have more space but may take longer to search. What's the trade-off?
Show answerHide answer
Answer: B. Improves hit ratio but may increase access time
Increasing cache size generally improves hit ratio (more data fits) but may increase access time (larger memory takes longer to search). There's a trade-off: a larger cache stores more data, reducing misses, but adds latency in searching for data. Optimal cache size depends on the workload and the technology used. Modern systems use multiple cache levels (L1, L2, L3) to balance these factors.
127. For faster data access in a computer system, which component should be prioritized?
Recalled from Jan 2026 exam- Option A: Hard disk
- Option B: RAM
- Option C: Cache memory
- Option D: Secondary storage
Show hintHide hint
The fastest but most expensive memory. What is it?
Show answerHide answer
Answer: C. Cache memory
Cache memory should be prioritized for faster data access in a computer system. Cache memory is extremely fast (accessing data in nanoseconds) but expensive, so it's limited in size. The memory hierarchy prioritizes: (1) CPU registers (fastest, smallest), (2) L1 Cache, (3) L2/L3 Cache, (4) RAM (slower, larger), (5) Disk (slowest, largest). Cache stores frequently accessed data and instructions, reducing average access time dramatically. Hard disk is slowest. Secondary storage is even slower than hard disk. Effective cache usage through cache optimization techniques significantly improves system performance.
128. What type of memory interface does USB typically use?
Recalled from Jan 2026 exam- Option A: SRAM
- Option B: DRAM
- Option C: Flash memory
- Option D: Cache
Show hintHide hint
USB devices like flash drives use what type of non-volatile memory?
Show answerHide answer
Answer: C. Flash memory
USB typically uses Flash memory interface. USB flash drives store data in flash memory, which is non-volatile (retains data without power). Flash memory provides fast read/write access suitable for portable storage. The USB interface provides power and communication to the flash memory device. SRAM and DRAM are volatile (lose data without power). Cache is internal to CPUs. Flash memory offers a good balance of speed, capacity, and cost for removable storage media.
129. In computer arithmetic, the 2's complement representation is used for:
- Option A: Floating-point numbers
- Option B: Signed integers
- Option C: Character data
- Option D: Memory addresses
Show answerHide answer
Answer: B. Signed integers
130. Cache memory improves system performance by:
- Option A: Increasing CPU clock speed
- Option B: Reducing memory access time
- Option C: Expanding main memory capacity
- Option D: Enhancing I/O operations
Show answerHide answer
Answer: B. Reducing memory access time
131. Which memory type has the fastest access time?
- Option A: Hard disk
- Option B: Main memory (RAM)
- Option C: Cache memory
- Option D: Registers
Show answerHide answer
Answer: D. Registers
132. Which cache write policy immediately updates both cache and main memory?
- Option A: Write-through
- Option B: Write-back
- Option C: Write-allocate
- Option D: Write-around
Show answerHide answer
Answer: A. Write-through
133. In direct mapping cache organization:
- Option A: A block can be placed anywhere in the cache
- Option B: A block can be placed in a restricted set of locations
- Option C: A block can be placed in exactly one location
- Option D: A block can only be placed at the beginning of cache
Show answerHide answer
Answer: C. A block can be placed in exactly one location
134. The Least Recently Used (LRU) algorithm is used for:
- Option A: CPU scheduling
- Option B: Memory allocation
- Option C: Cache replacement
- Option D: Disk scheduling
Show answerHide answer
Answer: C. Cache replacement
135. The memory hierarchy is organized based on:
- Option A: Access time
- Option B: Cost per bit
- Option C: Capacity
- Option D: All of these
Show answerHide answer
Answer: D. All of these
136. The primary advantage of a multilevel cache hierarchy is:
- Option A: Reduced power consumption
- Option B: Increased memory capacity
- Option C: Improved hit ratio
- Option D: Simplified memory management
Show answerHide answer
Answer: C. Improved hit ratio
137. The hit ratio in cache memory is:
- Option A: The percentage of time data is found in cache
- Option B: The percentage of cache memory used
- Option C: The time taken to access cache
- Option D: The number of cache levels
Show answerHide answer
Answer: A. The percentage of time data is found in cache
138. ROM is an example of:
- Option A: Volatile memory
- Option B: Non-volatile memory
- Option C: Virtual memory
- Option D: Cache memory
Show answerHide answer
Answer: B. Non-volatile memory
139. The IEEE 754 standard is related to:
- Option A: Integer arithmetic
- Option B: Floating-point arithmetic
- Option C: Binary coding
- Option D: Character encoding
Show answerHide answer
Answer: B. Floating-point arithmetic
140. What is the main purpose of the Memory Control Unit (MCU) in a computer system?
- Option A: To store instructions that the CPU can execute
- Option B: To manage data flow between input/output devices
- Option C: To regulate the flow of data between the CPU and memory
- Option D: To control the speed of the CPU
Show answerHide answer
Answer: C. To regulate the flow of data between the CPU and memory
141. Which of the following is not a type of memory used in a computer system?
- Option A: RAM
- Option B: ROM
- Option C: Cache
- Option D: Hard drive
Show answerHide answer
Answer: D. Hard drive
142. Which of the following is responsible for temporarily storing data that the CPU needs to access quickly?
- Option A: RAM
- Option B: ROM
- Option C: Cache
- Option D: Hard drive
Show answerHide answer
Answer: C. Cache
143. The term "memory hierarchy" refers to:
- Option A: The order in which data is accessed by the CPU
- Option B: The organization of different types of memory by speed and capacity
- Option C: The way in which the CPU processes instructions
- Option D: The way in which data is stored on a hard drive
Show answerHide answer
Answer: B. The organization of different types of memory by speed and capacity
144. Which of the following is responsible for permanently storing the BIOS on a computer system?
- Option A: RAM
- Option B: ROM
- Option C: Cache
- Option D: Hard drive
Show answerHide answer
Answer: B. ROM
145. What is the difference between volatile and non-volatile memory?
- Option A: Volatile memory loses its contents when power is lost, while non-volatile memory retains its contents
- Option B: Volatile memory is slower than non-volatile memory
- Option C: Volatile memory is used for long-term storage, while non-volatile memory is used for temporary storage
- Option D: Volatile memory is more expensive than non-volatile memory
Show answerHide answer
Answer: A. Volatile memory loses its contents when power is lost, while non-volatile memory retains its contents
146. What is the purpose of a memory controller?
- Option A: To regulate the flow of data between the CPU and memory
- Option B: To store instructions that the CPU can execute
- Option C: To manage data flow between input/output devices
- Option D: To control the speed of the CPU
Show answerHide answer
Answer: A. To regulate the flow of data between the CPU and memory
147. What is the difference between DDR3 and DDR4 RAM?
- Option A: DDR3 has a higher clock speed than DDR4
- Option B: DDR4 has a higher clock speed than DDR3
- Option C: DDR3 has a higher capacity than DDR4
- Option D: DDR4 has a higher capacity than DDR3
Show answerHide answer
Answer: B. DDR4 has a higher clock speed than DDR3
148. Which of the following is responsible for storing frequently used instructions and data in a CPU?
- Option A: Cache memory
- Option B: Virtual memory
- Option C: Main memory
- Option D: Auxiliary memory
Show answerHide answer
Answer: A. Cache memory
149. Which type of memory is used to store the program and data being currently executed by the CPU?
- Option A: Cache memory
- Option B: Virtual memory
- Option C: Main memory
- Option D: Auxiliary memory
Show answerHide answer
Answer: C. Main memory
150. Which type of memory is non-volatile and retains data even when the power is turned off?
- Option A: ROM
- Option B: Cache
- Option C: Main memory
- Option D: Virtual memory
Show answerHide answer
Answer: A. ROM
151. Which of the following components stores data and programs permanently, even when the computer is turned off?
- Option A: Central Processing Unit (CPU)
- Option B: Random Access Memory (RAM)
- Option C: Hard Disk Drive (HDD)
- Option D: Graphics Processing Unit (GPU)
Show answerHide answer
Answer: C. Hard Disk Drive (HDD)
152. What is the purpose of the cache memory in the CPU?
- Option A: To store intermediate results of calculations
- Option B: To store frequently used instructions and data for quick access
- Option C: To store the program counter
- Option D: To store data from memory
Show answerHide answer
Answer: B. To store frequently used instructions and data for quick access
153. The ALU can perform logical operations on binary numbers. Which of the following is true for the AND operation?
- Option A: 0 AND 0 = 1
- Option B: 0 AND 1 = 0
- Option C: 1 AND 1 = 0
- Option D: All of the above
Show answerHide answer
Answer: B. 0 AND 1 = 0
154. The ALU can perform logical operations on binary numbers. Which of the following is true for the OR operation?
- Option A: 0 OR 0 = 1
- Option B: 0 OR 1 = 1
- Option C: 1 OR 1 = 0
- Option D: All of the above
Show answerHide answer
Answer: B. 0 OR 1 = 1
155. The ALU can perform logical operations on binary numbers. Which of the following is true for the NOT operation?
- Option A: NOT 0 = 0
- Option B: NOT 1 = 1
- Option C: NOT 1 = 0
- Option D: NOT 0 = 0
Show answerHide answer
Answer: C. NOT 1 = 0
156. Which level of the memory hierarchy is the fastest, smallest, and most expensive?
- Option A: Level 1 cache
- Option B: Level 2 cache
- Option C: Main memory
- Option D: Secondary storage
Show answerHide answer
Answer: A. Level 1 cache
157. Which level of the memory hierarchy is typically the largest and the slowest?
- Option A: Level 1 cache
- Option B: Level 2 cache
- Option C: Main memory
- Option D: Secondary storage
Show answerHide answer
Answer: D. Secondary storage
158. Which type of memory is volatile and loses its contents when power is turned off?
- Option A: RAM
- Option B: ROM
- Option C: Cache
- Option D: Secondary storage
Show answerHide answer
Answer: A. RAM
159. Which type of memory is non-volatile and retains its contents even when power is turned off?
- Option A: RAM
- Option B: ROM
- Option C: Cache
- Option D: Secondary storage
Show answerHide answer
Answer: B. ROM
160. What is the primary purpose of cache memory?
- Option A: To store frequently accessed data for faster access
- Option B: To store all data in the system
- Option C: To store data that is rarely accessed
- Option D: To store data permanently
Show answerHide answer
Answer: A. To store frequently accessed data for faster access
161. Which level of cache memory is closest to the CPU?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: All levels are equidistant from the CPU
Show answerHide answer
Answer: A. L1 cache
162. What is the cache line size?
- Option A: The amount of data that can be stored in a cache block
- Option B: The amount of data that can be stored in main memory
- Option C: The amount of data that can be stored in virtual memory
- Option D: The amount of data that can be processed by the CPU in a single clock cycle
Show answerHide answer
Answer: A. The amount of data that can be stored in a cache block
163. Which mapping function maps a block of main memory to a single cache line?
- Option A: Direct mapping
- Option B: Associative mapping
- Option C: Set-associative mapping
- Option D: None of the above
Show answerHide answer
Answer: A. Direct mapping
164. Which mapping function allows any block of main memory to be placed in any cache line?
- Option A: Direct mapping
- Option B: Associative mapping
- Option C: Set-associative mapping
- Option D: None of the above
Show answerHide answer
Answer: B. Associative mapping
165. In a direct-mapped cache, how many cache lines can a block of main memory be mapped to?
- Option A: One
- Option B: Two
- Option C: Multiple
- Option D: None
Show answerHide answer
Answer: A. One
166. Which replacement algorithm replaces the cache line that has been unused for the longest time?
- Option A: Least Recently Used (LRU)
- Option B: First-In-First-Out (FIFO)
- Option C: Random Replacement
- Option D: Least Frequently Used (LFU)
Show answerHide answer
Answer: A. Least Recently Used (LRU)
167. Which write policy updates the cache first and then later updates the main memory when the cache line is replaced?
- Option A: Write-through
- Option B: Write-back
- Option C: Write-around
- Option D: Write-invalidate
Show answerHide answer
Answer: B. Write-back
168. What is the advantage of write-through policy in cache memory?
- Option A: Lower write latency
- Option B: Lower cache miss rate
- Option C: Lower main memory traffic
- Option D: Higher cache hit rate
Show answerHide answer
Answer: A. Lower write latency
169. What is the disadvantage of write-through policy in cache memory?
- Option A: Higher write latency
- Option B: Higher cache miss rate
- Option C: Higher main memory traffic
- Option D: Lower cache hit rate
Show answerHide answer
Answer: C. Higher main memory traffic
170. What is the advantage of write-back policy in cache memory?
- Option A: Lower write latency
- Option B: Lower cache miss rate
- Option C: Lower main memory traffic
- Option D: Higher cache hit rate
Show answerHide answer
Answer: C. Lower main memory traffic
171. What is the disadvantage of write-back policy in cache memory?
- Option A: Higher write latency
- Option B: Higher cache miss rate
- Option C: Higher main memory traffic
- Option D: Lower cache hit rate
Show answerHide answer
Answer: A. Higher write latency
172. Which write policy in cache memory is used in systems with multiple processors and a shared cache to ensure consistency?
- Option A: Write-back policy
- Option B: Write-through policy
- Option C: Write-allocate policy
- Option D: Write-nonallocate policy
Show answerHide answer
Answer: B. Write-through policy
173. Which of the following is a benefit of having multiple levels of caches in a computer system?
- Option A: Reduced latency for memory access
- Option B: Lower cost per cache level
- Option C: Reduced power consumption
- Option D: Higher cache hit rate
Show answerHide answer
Answer: A. Reduced latency for memory access
174. What is the primary disadvantage of having multiple levels of caches in a computer system?
- Option A: Increased latency for memory access
- Option B: Higher cost per cache level
- Option C: Increased power consumption
- Option D: Lower cache hit rate
Show answerHide answer
Answer: B. Higher cost per cache level
175. Which of the following is an example of a two-level cache hierarchy in a computer system?
- Option A: L1 cache and main memory
- Option B: L1 cache, L2 cache, and main memory
- Option C: L2 cache and main memory
- Option D: L1 cache, L2 cache, L3 cache, and main memory
Show answerHide answer
Answer: B. L1 cache, L2 cache, and main memory
176. Which write policy in cache memory requires the use of a dirty bit to indicate when a cache line has been modified?
- Option A: Write-through policy
- Option B: Write-back policy
- Option C: Write-allocate policy
- Option D: Write-nonallocate policy
Show answerHide answer
Answer: B. Write-back policy
177. Which cache level is typically the smallest and fastest in a multi-level cache hierarchy?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: A. L1 cache
178. Which cache level is typically the largest and slowest in a multi-level cache hierarchy?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: C. L3 cache
179. Which cache level is typically located on the processor chip in a computer system?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: Main memory
Show answerHide answer
Answer: A. L1 cache
180. Which cache level is typically shared among multiple processor cores in a multi-core computer system?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: Main memory
Show answerHide answer
Answer: C. L3 cache
181. Which of the following is an example of a unified cache that combines instructions and data in a single cache?
- Option A: Direct-mapped cache
- Option B: Set-associative cache
- Option C: Fully-associative cache
- Option D: Virtually-indexed cache
Show answerHide answer
Answer: B. Set-associative cache
182. Which cache organization allows a single memory location to be stored in multiple cache locations?
- Option A: Direct-mapped cache
- Option B: Set-associative cache
- Option C: Fully-associative cache
- Option D: Virtually-indexed cache
Show answerHide answer
Answer: B. Set-associative cache
183. Which cache organization uses a tag field to determine whether a given memory location is stored in a particular cache location?
- Option A: Direct-mapped cache
- Option B: Set-associative cache
- Option C: Fully-associative cache
- Option D: All of the above
Show answerHide answer
Answer: C. Fully-associative cache
184. What is the term used to describe a system with multiple levels of caches?
- Option A: Cache hierarchy
- Option B: Cache mapping
- Option C: Cache replacement
- Option D: Cache associativity
Show answerHide answer
Answer: A. Cache hierarchy
185. What is the purpose of having multiple levels of caches?
- Option A: To reduce cache hit time
- Option B: To reduce main memory traffic
- Option C: To increase cache miss rate
- Option D: To increase cache capacity
Show answerHide answer
Answer: B. To reduce main memory traffic
186. Which level of cache is usually the smallest and fastest?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: A. L1 cache
187. Which level of cache is usually shared between multiple cores or processors?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: C. L3 cache
188. What is the typical size of an L1 cache in modern processors?
- Option A: 1-2 KB
- Option B: 8-16 KB
- Option C: 64-128 KB
- Option D: 512 KB-1 MB
Show answerHide answer
Answer: C. 64-128 KB
189. What is the typical size of an L2 cache in modern processors?
- Option A: 1-2 MB
- Option B: 4-8 MB
- Option C: 16-32 MB
- Option D: 64-128 MB
Show answerHide answer
Answer: A. 1-2 MB
190. What is the purpose of having a larger cache?
- Option A: To reduce cache hit time
- Option B: To reduce main memory traffic
- Option C: To increase cache miss rate
- Option D: To increase cache capacity
Show answerHide answer
Answer: B. To reduce main memory traffic
191. Which cache level is usually the largest and slowest?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: C. L3 cache
192. What is the main disadvantage of having multiple levels of caches?
- Option A: Increased power consumption
- Option B: Increased cache miss rate
- Option C: Increased cache hit time
- Option D: Increased complexity and cost
Show answerHide answer
Answer: D. Increased complexity and cost
193. Which cache level is the most expensive to implement?
- Option A: L1 cache
- Option B: L2 cache
- Option C: L3 cache
- Option D: L4 cache
Show answerHide answer
Answer: A. L1 cache
194. Which of the following is a characteristic of volatile memory?
- Option A: It retains data even when the power is turned off
- Option B: It loses data when the power is turned off
- Option C: It is slower than non-volatile memory
- Option D: It requires less power than non-volatile memory
Show answerHide answer
Answer: B. It loses data when the power is turned off
195. Which of the following is an example of non-volatile memory?
- Option A: DRAM
- Option B: SRAM
- Option C: Flash memory
- Option D: Cache memory
Show answerHide answer
Answer: C. Flash memory
196. Which type of memory is typically used for main memory in a computer system?
- Option A: Volatile memory
- Option B: Non-volatile memory
- Option C: Flash memory
- Option D: Magnetic memory
Show answerHide answer
Answer: A. Volatile memory
197. Which of the following is a characteristic of write-through caching?
- Option A: It writes data to both the cache and main memory simultaneously
- Option B: It writes data to the cache only when it is needed
- Option C: It writes data to main memory only when it is needed
- Option D: It stores only a subset of the data in the cache
Show answerHide answer
Answer: A. It writes data to both the cache and main memory simultaneously
198. Which of the following is a characteristic of write-back caching?
- Option A: It writes data to both the cache and main memory simultaneously
- Option B: It writes data to the cache only when it is needed
- Option C: It writes data to main memory only when it is needed
- Option D: It stores only a subset of the data in the cache
Show answerHide answer
Answer: C. It writes data to main memory only when it is needed
199. Which of the following is an advantage of write-back caching?
- Option A: It reduces the memory access time
- Option B: It reduces the cache hit rate
- Option C: It reduces the number of writes to main memory
- Option D: It increases the number of writes to main memory
Show answerHide answer
Answer: C. It reduces the number of writes to main memory
200. Which of the following is a disadvantage of write-through caching?
- Option A: It increases the memory access time
- Option B: It reduces the cache hit rate
- Option C: It increases the cache size
- Option D: It increases the number of writes to main memory
Show answerHide answer
Answer: D. It increases the number of writes to main memory
201. Which of the following is a disadvantage of write-back caching?
- Option A: It reduces the cache hit rate
- Option B: It increases the memory access time
- Option C: It increases the number of writes to main memory
- Option D: It reduces the cache size
Show answerHide answer
Answer: B. It increases the memory access time
202. Which of the following is an example of a non-volatile memory technology used in solid-state drives (SSDs)?
- Option A: DRAM
- Option B: SRAM
- Option C: NAND flash
- Option D: Cache memory
Show answerHide answer
Answer: C. NAND flash
203. Which of the following is a disadvantage of using non-volatile memory for main memory?
- Option A: It is slower than volatile memory
- Option B: It is more expensive than volatile memory
- Option C: It requires more power than volatile memory
- Option D: It is less reliable than volatile memory
Show answerHide answer
Answer: A. It is slower than volatile memory
204. Which type of memory is non-volatile and has the highest storage capacity?
- Option A: RAM
- Option B: ROM
- Option C: Hard disk
- Option D: Flash memory
Show answerHide answer
Answer: C. Hard disk
205. What is the purpose of a write buffer in a computer memory system?
- Option A: To reduce the time it takes to write to main memory
- Option B: To increase the storage capacity of the memory system
- Option C: To improve the reliability of the memory system
- Option D: To reduce the cost of the memory system
Show answerHide answer
Answer: A. To reduce the time it takes to write to main memory
206. What is the difference between volatile and non-volatile memory?
- Option A: Volatile memory can only be read from, while non-volatile memory can be both read and written to
- Option B: Volatile memory requires power to retain its data, while non-volatile memory retains data even without power
- Option C: Volatile memory is faster than non-volatile memory
- Option D: Non-volatile memory has a higher storage capacity than volatile memory
Show answerHide answer
Answer: B. Volatile memory requires power to retain its data, while non-volatile memory retains data even without power
207. Which of the following is an example of volatile memory?
- Option A: Hard disk
- Option B: Flash memory
- Option C: ROM
- Option D: SRAM
Show answerHide answer
Answer: D. SRAM
208. Which type of memory is typically used to store the BIOS in a computer system?
- Option A: RAM
- Option B: ROM
- Option C: Hard disk
- Option D: Cache memory
Show answerHide answer
Answer: B. ROM
209. What is the difference between static RAM (SRAM) and dynamic RAM (DRAM)?
- Option A: SRAM is faster than DRAM
- Option B: SRAM is more dense than DRAM
- Option C: SRAM is more expensive than DRAM
- Option D: SRAM requires less power than DRAM
Show answerHide answer
Answer: A. SRAM is faster than DRAM
210. Which type of memory is typically used for level 1 (L1) and level 2 (L2) caches in a processor?
- Option A: SRAM
- Option B: DRAM
- Option C: ROM
- Option D: Flash memory
Show answerHide answer
Answer: A. SRAM
211. Which of the following is an advantage of dual In-line memory modules (DIMMs) over single in-line memory modules (SIMMs)?
- Option A: Faster data transfer rates
- Option B: Higher memory capacity
- Option C: Lower power consumption
- Option D: Easier installation
Show answerHide answer
Answer: A. Faster data transfer rates
212. What is the process of accessing data from multiple memory banks simultaneously called?
- Option A: Concurrent memory access
- Option B: Parallel memory access
- Option C: Linear memory access
- Option D: Sequential memory access
Show answerHide answer
Answer: B. Parallel memory access
213. What is the purpose of parity bits in memory systems?
- Option A: To increase the storage capacity of the memory system
- Option B: To improve the reliability of the memory system
- Option C: To reduce the time it takes to read from the memory system
- Option D: To reduce the cost of the memory system
Show answerHide answer
Answer: B. To improve the reliability of the memory system
214. Which type of memory is most commonly used for main memory in modern computers?
- Option A: DRAM
- Option B: SRAM
- Option C: ROM
- Option D: Flash memory
Show answerHide answer
Answer: A. DRAM
215. Which type of memory is typically used for virtual memory in a computer system?
- Option A: Hard disk
- Option B: ROM
- Option C: SRAM
- Option D: Flash memory
Show answerHide answer
Answer: A. Hard disk
216. Which of the following is an advantage of static RAM (SRAM) over dynamic RAM (DRAM)?
- Option A: Lower power consumption
- Option B: Faster access times
- Option C: Higher memory density
- Option D: Cheaper cost per bit
Show answerHide answer
Answer: B. Faster access times
217. Which type of memory is commonly used for cache memory in modern computers?
- Option A: DRAM
- Option B: SRAM
- Option C: ROM
- Option D: Flash memory
Show answerHide answer
Answer: B. SRAM
218. What is the purpose of composing memory in a computer system?
- Option A: To increase the total amount of memory available to the system
- Option B: To speed up the data access times of the system
- Option C: To simplify the design of the memory subsystem
- Option D: To reduce the cost of the memory subsystem
Show answerHide answer
Answer: A. To increase the total amount of memory available to the system
219. Which of the following is an example of composed memory?
- Option A: Virtual memory
- Option B: Cache memory
- Option C: Registers
- Option D: Main memory
Show answerHide answer
Answer: A. Virtual memory
220. What is the primary disadvantage of composed memory?
- Option A: High cost
- Option B: High access times
- Option C: Limited capacity
- Option D: Complexity of the design
Show answerHide answer
Answer: D. Complexity of the design
221. Which type of memory is typically used as the main memory in a computer system?
- Option A: Cache memory
- Option B: Virtual memory
- Option C: Registers
- Option D: DRAM
Show answerHide answer
Answer: D. DRAM
222. Which of the following is not a benefit of composed memory?
- Option A: Increased memory capacity
- Option B: Improved access times
- Option C: Lower power consumption
- Option D: Simplified memory management
Show answerHide answer
Answer: C. Lower power consumption
223. What is the purpose of a memory hierarchy in a computer system?
- Option A: To reduce the cost of the memory subsystem
- Option B: To simplify the design of the memory subsystem
- Option C: To increase the amount of memory available to the system
- Option D: To optimize memory access times
Show answerHide answer
Answer: D. To optimize memory access times
224. Which of the following is not a type of cache memory?
- Option A: Direct-mapped cache
- Option B: Set-associative cache
- Option C: Fully associative cache
- Option D: Static RAM cache
Show answerHide answer
Answer: D. Static RAM cache
225. Which of the following is not a level in a typical memory hierarchy?
- Option A: Registers
- Option B: Main memory
- Option C: Cache memory
- Option D: Virtual memory
Show answerHide answer
Answer: D. Virtual memory
226. What is the process of combining multiple memory chips to increase memory capacity called?
- Option A: Multiprocessing
- Option B: Memory mapping
- Option C: Memory composing
- Option D: Memory banking
Show answerHide answer
Answer: D. Memory banking
227. Which of the following is NOT a benefit of memory banking?
- Option A: Increased memory capacity
- Option B: Increased memory speed
- Option C: Reduced memory access time
- Option D: Reduced power consumption
Show answerHide answer
Answer: D. Reduced power consumption
228. In memory banking, what is a memory module?
- Option A: A collection of memory chips
- Option B: A collection of cache lines
- Option C: A collection of memory banks
- Option D: A collection of registers
Show answerHide answer
Answer: A. A collection of memory chips
229. Direct access storage?
- Option A: disk
- Option B: RAM
- Option C: cache
- Option D: register
Show hintHide hint
Random access.
Show answerHide answer
Answer: A. disk
Disk provides direct access to any location without sequential traversal.
230. Memory categories?
- Option A: 1
- Option B: 2
- Option C: 3
- Option D: 5
Show hintHide hint
Primary and secondary.
Show answerHide answer
Answer: B. 2
Two memory categories: primary (RAM) and secondary storage.
4.3 Input-output organization and multiprocessors
127 questions · ACtE0403
231. What is key feature of bus in computer architecture?
Aasadh 2081 exam- Option A: Data transfer
- Option B: Priority handling
- Option C: Memory access
- Option D: Interrupt handling
Show hintHide hint
Bus manages device access arbitration.
Show answerHide answer
Answer: B. Priority handling
Bus provides priority handling for managing simultaneous device access requests.
232. Which connector connects external devices?
- Option A: USB
- Option B: VGA
- Option C: HDMI
- Option D: SATA
Show hintHide hint
Universal Serial Bus.
Show answerHide answer
Answer: A. USB
USB is most common connector for connecting external devices to computers.
233. What component typically controls cursor movement?
- Option A: Keyboard
- Option B: Mouse
- Option C: Joystick
- Option D: Scanner
Show hintHide hint
Pointing device.
Show answerHide answer
Answer: B. Mouse
Mouse is standard peripheral for cursor control in graphical interfaces.
234. What is cache coherence purpose?
- Option A: Speed up cache
- Option B: Synchronize caches
- Option C: Reduce heat
- Option D: Increase memory
Show hintHide hint
Multiple cache consistency.
Show answerHide answer
Answer: B. Synchronize caches
Cache coherence ensures consistency when multiple caches contain same data in multiprocessor systems.
235. Which of the following is not a type of DMA transfer mode?
NEC model set- Option A: Burst mode
- Option B: Cycle-stealing mode
- Option C: Interrupt mode
- Option D: Instruction mode
Show hintHide hint
DMA operates in specific modes for data transfer. Which one is not a recognized DMA mode?
Show answerHide answer
Answer: D. Instruction mode
DMA (Direct Memory Access) has three main transfer modes: (1) Burst mode - The DMA controller takes complete control of the system bus and transfers a block of data in one continuous operation. Maximum throughput but may delay CPU. (2) Cycle-stealing mode - The DMA controller steals CPU cycles to transfer one byte/word at a time, reducing impact on CPU but taking more total time. (3) Transparent mode - Transfers occur only when the bus is idle, not affecting CPU at all (rarely used). 'Instruction mode' is NOT a recognized DMA transfer mode. DMA operates independently of instructions - it doesn't execute instructions. Options for DMA operations: (1) By channel - Multiple DMA channels for different devices, (2) By priority - Higher priority devices get preference, (3) By rotation - Fair sharing among devices. 'Interrupt mode' mentioned in some contexts refers to when DMA signals completion via interrupt, but it's not a transfer mode itself - it's a signaling mechanism. Understanding these modes is important for systems design, particularly in embedded systems and I/O-intensive applications.
236. In DMA (Direct Memory Access), data transfer occurs directly between:
NEC model set- Option A: CPU and memory
- Option B: CPU and I/O
- Option C: I/O device and memory
- Option D: Cache and registers
Show hintHide hint
DMA allows data transfer without CPU involvement. Which two components exchange data directly?
Show answerHide answer
Answer: C. I/O device and memory
In DMA (Direct Memory Access), data transfer occurs directly between I/O device and memory, bypassing the CPU. This improves performance by allowing the I/O controller to manage data transfer independently. The CPU is freed to do other tasks. DMA requires a DMA controller that handles address generation, data transfer, and interrupt signaling. After transfer completes, the DMA controller interrupts the CPU to indicate completion.
237. In Direct Memory Access (DMA), what is cycle stealing?
Recalled from Jan 2026 exam- Option A: A method of accessing memory without CPU intervention
- Option B: A technique where the DMA controller takes over the bus for one clock cycle to transfer data
- Option C: A process of stealing data from protected memory regions
- Option D: A mechanism to prevent unauthorized memory access
Show hintHide hint
DMA allows I/O devices to access memory. What does cycle stealing mean in this context?
Show answerHide answer
Answer: B. A technique where the DMA controller takes over the bus for one clock cycle to transfer data
Cycle stealing in DMA is a technique where the DMA controller temporarily takes over the system bus for one clock cycle to transfer data between I/O device and memory, stealing a cycle from the CPU. During this time, the CPU is paused or suspended. Cycle stealing allows I/O operations to proceed concurrently with CPU execution without completely halting the CPU. This improves overall system performance compared to the CPU being completely blocked during I/O operations. The number of cycles stolen depends on the amount of data to transfer.
238. How is control maintained on the system bus in a computer architecture?
Recalled from Jan 2026 exam- Option A: On a first-come, first-served basis
- Option B: Through priority-based arbitration
- Option C: Randomly selected
- Option D: Based on memory availability
Show hintHide hint
Multiple devices need the bus. How is access controlled?
Show answerHide answer
Answer: B. Through priority-based arbitration
Control on the system bus in a computer architecture is maintained through priority-based arbitration. When multiple devices (CPU, I/O controllers, DMA) need bus access, an arbiter grants access based on priority levels. Devices have different priorities (CPU usually highest). This ensures critical operations get bus access first. Arbitration prevents conflicts and ensures orderly sharing of the shared resource. Some systems use round-robin or other arbitration schemes, but priority-based is most common for performance and reliability.
239. Which I/O transfer mode requires CPU intervention for each data byte transferred?
- Option A: Programmed I/O
- Option B: Interrupt-driven I/O
- Option C: DMA
- Option D: Memory-mapped I/O
Show answerHide answer
Answer: A. Programmed I/O
240. Direct Memory Access (DMA) is used to:
- Option A: Increase memory capacity
- Option B: Transfer data without CPU intervention
- Option C: Improve CPU processing speed
- Option D: Enhance memory security
Show answerHide answer
Answer: B. Transfer data without CPU intervention
241. In a multiprocessor system, the bus arbitration technique determines:
- Option A: Which processor executes next
- Option B: Which processor gets control of the shared bus
- Option C: How memory is allocated
- Option D: How interrupts are handled
Show answerHide answer
Answer: B. Which processor gets control of the shared bus
242. Which interconnection structure provides the highest bandwidth in multiprocessor systems?
- Option A: Single bus
- Option B: Crossbar switch
- Option C: Multiple bus
- Option D: Star connection
Show answerHide answer
Answer: B. Crossbar switch
243. Cache coherence is an issue in:
- Option A: Single processor systems
- Option B: Systems without cache
- Option C: Multiprocessor systems with shared memory
- Option D: Embedded systems without memory
Show answerHide answer
Answer: C. Multiprocessor systems with shared memory
244. Memory-mapped I/O means:
- Option A: I/O devices have their own address space
- Option B: I/O devices share the same address space as memory
- Option C: I/O operations use special instructions
- Option D: I/O devices are mapped to specific memory types
Show answerHide answer
Answer: B. I/O devices share the same address space as memory
245. In DMA transfer, the device that initiates the transfer is:
- Option A: CPU
- Option B: Memory controller
- Option C: DMA controller
- Option D: I/O device
Show answerHide answer
Answer: C. DMA controller
246. Which component is responsible for managing input and output operations of a computer system?
- Option A: Central Processing Unit (CPU)
- Option B: Input/Output Controller (IOC)
- Option C: Hard Disk Drive (HDD)
- Option D: Graphics Processing Unit (GPU)
Show answerHide answer
Answer: B. Input/Output Controller (IOC)
247. Which of the following is responsible for providing power to the other components of a computer?
- Option A: Central Processing Unit (CPU)
- Option B: Power Supply Unit (PSU)
- Option C: Hard Disk Drive (HDD)
- Option D: Graphics Processing Unit (GPU)
Show answerHide answer
Answer: B. Power Supply Unit (PSU)
248. Which of the following is not a type of peripheral device?
- Option A: Monitor
- Option B: Keyboard
- Option C: Processor
- Option D: Printer
Show answerHide answer
Answer: C. Processor
249. Which of the following is not a function of the input/output unit in the CPU?
- Option A: To fetch instructions from memory
- Option B: To transfer data between the CPU and input/output devices
- Option C: To communicate with the operating system
- Option D: To convert data into a format that can be understood by the CPU
Show answerHide answer
Answer: A. To fetch instructions from memory
250. Which type of multiprocessor system is designed to work on multiple independent tasks simultaneously?
- Option A: Multicomputer system
- Option B: Symmetric multiprocessing
- Option C: Cluster computing
- Option D: Asymmetric multiprocessing
Show answerHide answer
Answer: B. Symmetric multiprocessing
251. Which of the following is an example of a peripheral device in Input-Output organization?
- Option A: CPU
- Option B: RAM
- Option C: Keyboard
- Option D: Main Memory
Show answerHide answer
Answer: C. Keyboard
252. Which type of device is a printer?
- Option A: Input device
- Option B: Output device
- Option C: Processing device
- Option D: Storage device
Show answerHide answer
Answer: B. Output device
253. Which type of peripheral device is used to input graphical information into a computer?
- Option A: Mouse
- Option B: Webcam
- Option C: Scanner
- Option D: Graphics tablet
Show answerHide answer
Answer: C. Scanner
254. Which type of peripheral device is commonly used to store backups of important data?
- Option A: Keyboard
- Option B: External hard drive
- Option C: Joystick
- Option D: Monitor
Show answerHide answer
Answer: B. External hard drive
255. Which of the following is an example of an input peripheral device?
- Option A: Printer
- Option B: Scanner
- Option C: Speaker
- Option D: Monitor
Show answerHide answer
Answer: B. Scanner
256. Which type of peripheral device is used to display output on a computer?
- Option A: Printer
- Option B: External hard drive
- Option C: Monitor
- Option D: Keyboard
Show answerHide answer
Answer: C. Monitor
257. Which of the following devices is used to read data from optical storage media?
- Option A: Scanner
- Option B: Printer
- Option C: CD/DVD drive
- Option D: Joystick
Show answerHide answer
Answer: C. CD/DVD drive
258. Which type of peripheral device is used to provide additional storage space for a computer?
- Option A: Printer
- Option B: External hard drive
- Option C: Keyboard
- Option D: Monitor
Show answerHide answer
Answer: B. External hard drive
259. Which type of device is commonly used to control the movement of the cursor on a computer screen?
- Option A: Keyboard
- Option B: Mouse
- Option C: Joystick
- Option D: Microphone
Show answerHide answer
Answer: B. Mouse
260. Which type of peripheral device is used to input voice commands into a computer?
- Option A: Microphone
- Option B: Webcam
- Option C: Graphics tablet
- Option D: Scanner
Show answerHide answer
Answer: A. Microphone
261. Which type of computer system allows multiple processors to work together on a task?
- Option A: Multiprocessing system
- Option B: Multitasking system
- Option C: Single-user system
- Option D: Multithreaded system
Show answerHide answer
Answer: A. Multiprocessing system
262. Which of the following is an example of an output peripheral device?
- Option A: Keyboard
- Option B: Mouse
- Option C: Printer
- Option D: Processing device
Show answerHide answer
Answer: C. Printer
263. Which of the following is NOT an example of a storage peripheral device?
- Option A: Hard disk drive
- Option B: Solid-state drive
- Option C: Flash drive
- Option D: Printer
Show answerHide answer
Answer: D. Printer
264. Which type of peripheral device is used to connect a computer to a network?
- Option A: Input device
- Option B: Output device
- Option C: Storage device
- Option D: Communication device
Show answerHide answer
Answer: D. Communication device
265. Which of the following is an example of a multiprocessor system?
- Option A: A single-core processor running multiple tasks simultaneously
- Option B: A dual-core processor running multiple tasks simultaneously
- Option C: A network of computers working together on a single task
- Option D: A single computer running multiple virtual machines simultaneously
Show answerHide answer
Answer: B. A dual-core processor running multiple tasks simultaneously
266. Which type of multiprocessor system is designed to work on a single task by dividing the task into smaller subtasks?
- Option A: Symmetric multiprocessing
- Option B: Multicomputer system
- Option C: Asymmetric multiprocessing
- Option D: Cluster computing
Show answerHide answer
Answer: A. Symmetric multiprocessing
267. Which of the following is a disadvantage of symmetric multiprocessing?
- Option A: It is difficult to implement
- Option B: It requires specialized software
- Option C: It is expensive to set up
- Option D: It can cause performance degradation due to contention for resources
Show answerHide answer
Answer: D. It can cause performance degradation due to contention for resources
268. What is the purpose of an I/O module in a computer system?
- Option A: To manage the memory
- Option B: To control the CPU
- Option C: To communicate with peripheral devices
- Option D: To process the data
Show answerHide answer
Answer: C. To communicate with peripheral devices
269. Which of the following is not a type of Input-Output interface?
- Option A: Memory-mapped I/O
- Option B: Direct memory access (DMA)
- Option C: Input-Output Control Unit (IOCU)
- Option D: Programmable I/O
Show answerHide answer
Answer: C. Input-Output Control Unit (IOCU)
270. Which type of I/O interface allows the CPU and peripheral devices to access the same memory location?
- Option A: Memory-mapped I/O
- Option B: Direct memory access (DMA)
- Option C: Input-Output Control Unit (IOCU)
- Option D: Programmable I/O
Show answerHide answer
Answer: A. Memory-mapped I/O
271. Which of the following is a type of programmable I/O interface?
- Option A: Serial
- Option B: Parallel
- Option C: USB
- Option D: Ethernet
Show answerHide answer
Answer: B. Parallel
272. Which type of I/O interface uses a separate processor to manage data transfers between the CPU and peripheral devices?
- Option A: Memory-mapped I/O
- Option B: Direct memory access (DMA)
- Option C: Input-Output Control Unit (IOCU)
- Option D: Programmable I/O
Show answerHide answer
Answer: B. Direct memory access (DMA)
273. Which of the following is not a function of an I/O interface?
- Option A: Data buffering
- Option B: Error detection and correction
- Option C: Interrupt handling
- Option D: Memory management
Show answerHide answer
Answer: D. Memory management
274. Which type of I/O interface uses a specialized controller to manage data transfers between the CPU and peripheral devices?
- Option A: Memory-mapped I/O
- Option B: Direct memory access (DMA)
- Option C: Input-Output Control Unit (IOCU)
- Option D: Programmable I/O
Show answerHide answer
Answer: B. Direct memory access (DMA)
275. Which type of I/O interface provides a serial data transfer between the CPU and peripheral devices?
- Option A: USB
- Option B: Parallel
- Option C: Ethernet
- Option D: Serial
Show answerHide answer
Answer: D. Serial
276. Which type of I/O interface provides a high-speed data transfer between the CPU and peripheral devices?
- Option A: Serial
- Option B: Parallel
- Option C: USB
- Option D: Ethernet
Show answerHide answer
Answer: B. Parallel
277. Which of the following is a disadvantage of memory-mapped I/O?
- Option A: It can lead to conflicts between the CPU and peripheral devices accessing the same memory location
- Option B: It is slow compared to other types of I/O interfaces
- Option C: It is difficult to implement
- Option D: It requires specialized hardware
Show answerHide answer
Answer: A. It can lead to conflicts between the CPU and peripheral devices accessing the same memory location
278. What is an I/O module?
- Option A: A device that performs input/output operations on behalf of the CPU
- Option B: A type of computer memory used to store input/output data
- Option C: A peripheral device used to connect computers in a network
- Option D: An input/output device used to scan documents and images
Show answerHide answer
Answer: A. A device that performs input/output operations on behalf of the CPU
279. What is the purpose of an input-output interface?
- Option A: To translate data between the computer and its peripherals
- Option B: To store input/output data in computer memory
- Option C: To control the flow of data between the CPU and peripherals
- Option D: To provide a physical connection between the CPU and peripherals
Show answerHide answer
Answer: A. To translate data between the computer and its peripherals
280. Which of the following is not an example of an I/O module?
- Option A: Network interface card (NIC)
- Option B: Graphics processing unit (GPU)
- Option C: Sound card
- Option D: Storage controller
Show answerHide answer
Answer: B. Graphics processing unit (GPU)
281. Which of the following is not a function of an input-output interface?
- Option A: Data buffering
- Option B: Error detection and correction
- Option C: Data transfer control
- Option D: Data processing
Show answerHide answer
Answer: D. Data processing
282. Which of the following is an advantage of using DMA (Direct Memory Access) in an I/O module?
- Option A: Reduced CPU overhead
- Option B: Increased memory usage
- Option C: Faster data processing
- Option D: Better error correction
Show answerHide answer
Answer: A. Reduced CPU overhead
283. What is an interrupt in the context of input-output operations?
- Option A: A signal that notifies the CPU of a peripheral event
- Option B: A type of peripheral device used for input/output operations
- Option C: An error that occurs during data transfer between the CPU and a peripheral
- Option D: A type of data transfer protocol used by I/O modules
Show answerHide answer
Answer: A. A signal that notifies the CPU of a peripheral event
284. What is the purpose of DMA in a computer system?
- Option A: To manage the memory
- Option B: To control the CPU
- Option C: To communicate with peripheral devices
- Option D: To transfer data between memory and peripheral devices
Show answerHide answer
Answer: D. To transfer data between memory and peripheral devices
285. Which of the following is not a mode of transfer for DMA?
- Option A: Cycle-stealing
- Option B: Burst mode
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: D. Interrupt mode
286. In cycle-stealing mode of DMA transfer, when does the DMA controller take control of the system bus?
- Option A: After every clock cycle
- Option B: After the CPU has completed its current instruction cycle
- Option C: Only when the CPU requests it
- Option D: Only when there is no other device using the bus
Show answerHide answer
Answer: B. After the CPU has completed its current instruction cycle
287. Which DMA transfer mode allows for multiple transfers to occur in a single burst?
- Option A: Cycle-stealing
- Option B: Burst mode
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: B. Burst mode
288. Which DMA transfer mode transfers a fixed number of data bytes or words in a single transfer?
- Option A: Cycle-stealing
- Option B: Burst mode
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: C. Block mode
289. In which DMA transfer mode does the DMA controller interrupt the CPU after each transfer?
- Option A: Cycle-stealing
- Option B: Burst mode
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: A. Cycle-stealing
290. Which DMA transfer mode is the most efficient for transferring large amounts of data?
- Option A: Burst mode
- Option B: Cycle-stealing
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: A. Burst mode
291. Which of the following is not a benefit of DMA transfer?
- Option A: It frees the CPU to perform other tasks
- Option B: It allows for faster data transfer rates
- Option C: It reduces the need for specialized hardware
- Option D: It reduces the overall power consumption of the system
Show answerHide answer
Answer: C. It reduces the need for specialized hardware
292. Which of the following is a disadvantage of DMA transfer?
- Option A: It can lead to conflicts between the CPU and DMA controller accessing the same memory location
- Option B: It requires specialized hardware
- Option C: It can only transfer data between memory and the CPU
- Option D: It is slower than other modes of transfer
Show answerHide answer
Answer: B. It requires specialized hardware
293. Which DMA transfer mode is best suited for real-time applications?
- Option A: Cycle-stealing
- Option B: Burst mode
- Option C: Block mode
- Option D: Interrupt mode
Show answerHide answer
Answer: A. Cycle-stealing
294. What is the purpose of DMA in a computer system?
- Option A: To manage the memory
- Option B: To control the CPU
- Option C: To communicate with peripheral devices
- Option D: To transfer data between memory and peripheral devices without CPU intervention
Show answerHide answer
Answer: D. To transfer data between memory and peripheral devices without CPU intervention
295. Which of the following is not a mode of transfer used by DMA?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: C. Programmed I/O
296. Which mode of DMA transfer uses a fixed number of words to be transferred between memory and the peripheral device?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: D. Block mode
297. Which mode of DMA transfer uses a predetermined number of clock cycles to transfer a word between memory and the peripheral device?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: A. Cycle stealing
298. Which mode of DMA transfer uses multiple words to be transferred between memory and the peripheral device without any intervention from the CPU?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: B. Burst mode
299. Which mode of DMA transfer uses a sequence of commands stored in memory to transfer data between the CPU and peripheral device?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: C. Programmed I/O
300. Which of the following is not an advantage of DMA?
- Option A: It frees the CPU from managing data transfer
- Option B: It reduces CPU overhead
- Option C: It allows for faster data transfer
- Option D: It increases the number of interrupts handled by the CPU
Show answerHide answer
Answer: D. It increases the number of interrupts handled by the CPU
301. Which of the following is a disadvantage of DMA?
- Option A: It requires specialized hardware
- Option B: It increases CPU overhead
- Option C: It is slower than other modes of data transfer
- Option D: It can cause conflicts with the CPU accessing memory
Show answerHide answer
Answer: D. It can cause conflicts with the CPU accessing memory
302. Which type of DMA transfer is best suited for transferring large amounts of data between memory and peripheral device?
- Option A: Cycle stealing
- Option B: Burst mode
- Option C: Programmed I/O
- Option D: Block mode
Show answerHide answer
Answer: B. Burst mode
303. Which of the following is a benefit of DMA when used in multiprocessor systems?
- Option A: It improves the reliability of data transfer
- Option B: It improves the performance of the system
- Option C: It reduces the need for shared memory
- Option D: It simplifies the task of the operating system
Show answerHide answer
Answer: B. It improves the performance of the system
304. Which of the following best describes a multiprocessor system?
- Option A: A system with multiple processors that share a common memory and communicate with each other
- Option B: A system with a single processor that has multiple cores
- Option C: A system with multiple processors that have separate memory and do not communicate with each other
- Option D: A system with multiple input/output devices
Show answerHide answer
Answer: A. A system with multiple processors that share a common memory and communicate with each other
305. Which of the following is not a characteristic of a multiprocessor system?
- Option A: Parallelism
- Option B: Scalability
- Option C: Fault tolerance
- Option D: Sequential execution
Show answerHide answer
Answer: D. Sequential execution
306. What is parallelism in a multiprocessor system?
- Option A: The ability of multiple processors to execute instructions simultaneously
- Option B: The ability of a single processor to execute multiple threads of execution simultaneously
- Option C: The ability of multiple input/output devices to communicate with each other simultaneously
- Option D: The ability of a single input/output device to handle multiple input/output operations simultaneously
Show answerHide answer
Answer: A. The ability of multiple processors to execute instructions simultaneously
307. What is scalability in a multiprocessor system?
- Option A: The ability of the system to handle multiple users simultaneously
- Option B: The ability of the system to increase performance as more processors are added
- Option C: The ability of the system to recover from failures automatically
- Option D: The ability of the system to communicate with other systems
Show answerHide answer
Answer: B. The ability of the system to increase performance as more processors are added
308. What is fault tolerance in a multiprocessor system?
- Option A: The ability of the system to handle multiple users simultaneously
- Option B: The ability of the system to increase performance as more processors are added
- Option C: The ability of the system to recover from failures automatically
- Option D: The ability of the system to communicate with other systems
Show answerHide answer
Answer: C. The ability of the system to recover from failures automatically
309. Which of the following is not a type of multiprocessor architecture?
- Option A: Shared memory
- Option B: Distributed memory
- Option C: Virtual memory
- Option D: Hybrid memory
Show answerHide answer
Answer: C. Virtual memory
310. What is the difference between shared memory and distributed memory architectures?
- Option A: Shared memory systems have a single memory space that is accessible by all processors, while distributed memory systems have separate memory spaces for each processor.
- Option B: Distributed memory systems have a single memory space that is accessible by all processors, while shared memory systems have separate memory spaces for each processor.
- Option C: Shared memory systems use virtual memory, while distributed memory systems use physical memory.
- Option D: Distributed memory systems use virtual memory, while shared memory systems use physical memory.
Show answerHide answer
Answer: A. Shared memory systems have a single memory space that is accessible by all processors, while distributed memory systems have separate memory spaces for each processor.
311. What is cache coherence in a multiprocessor system?
- Option A: The ability of the system to maintain consistency of data stored in the caches of multiple processors
- Option B: The ability of the system to maintain consistency of data stored in the main memory
- Option C: The ability of the system to communicate with other systems
- Option D: The ability of the system to handle multiple input/output operations simultaneously
Show answerHide answer
Answer: A. The ability of the system to maintain consistency of data stored in the caches of multiple processors
312. What is a multiprocessor?
- Option A: A computer with multiple processors
- Option B: A computer with multiple I/O devices
- Option C: A computer with multiple memory units
- Option D: A computer with multiple operating systems
Show answerHide answer
Answer: A. A computer with multiple processors
313. Which of the following is not a characteristic of a multiprocessor system?
- Option A: Parallelism
- Option B: Scalability
- Option C: Fault tolerance
- Option D: Single processing unit
Show answerHide answer
Answer: D. Single processing unit
314. What is parallelism in a multiprocessor system?
- Option A: The ability to run multiple tasks simultaneously
- Option B: The ability to share resources between processors
- Option C: The ability to use multiple processors to complete a single task
- Option D: The ability to increase the clock speed of a processor
Show answerHide answer
Answer: C. The ability to use multiple processors to complete a single task
315. What is scalability in a multiprocessor system?
- Option A: The ability to run more tasks simultaneously
- Option B: The ability to increase the memory capacity of the system
- Option C: The ability to add more processors to the system as needed
- Option D: The ability to reduce power consumption
Show answerHide answer
Answer: C. The ability to add more processors to the system as needed
316. Which of the following is a benefit of fault tolerance in a multiprocessor system?
- Option A: Increased reliability
- Option B: Increased performance
- Option C: Reduced cost
- Option D: Reduced power consumption
Show answerHide answer
Answer: A. Increased reliability
317. What is a shared memory multiprocessor system?
- Option A: A system where each processor has its own private cache
- Option B: A system where each processor has its own private memory
- Option C: A system where all processors share the same memory
- Option D: A system where all processors share the same cache
Show answerHide answer
Answer: C. A system where all processors share the same memory
318. What is cache coherence in a multiprocessor system?
- Option A: The ability to maintain consistency of shared data in different processor caches
- Option B: The ability to reduce the number of cache misses
- Option C: The ability to switch between processors seamlessly
- Option D: The ability to recover from failures automatically
Show answerHide answer
Answer: A. The ability to maintain consistency of shared data in different processor caches
319. What is a distributed memory multiprocessor system?
- Option A: A system where each processor has its own private memory
- Option B: A system where each processor has its own private cache
- Option C: A system where all processors share the same memory
- Option D: A system where all processors share the same cache
Show answerHide answer
Answer: A. A system where each processor has its own private memory
320. Which of the following is not a benefit of a distributed memory multiprocessor system?
- Option A: Increased scalability
- Option B: Reduced memory latency
- Option C: Reduced cache coherence overhead
- Option D: Increased reliability
Show answerHide answer
Answer: B. Reduced memory latency
321. What is a NUMA architecture in a multiprocessor system?
- Option A: A architecture where all processors share the same memory
- Option B: A architecture where each processor has its own private memory
- Option C: A architecture where each processor has a different clock speed
- Option D: A architecture where the memory is organized into multiple banks
Show answerHide answer
Answer: D. A architecture where the memory is organized into multiple banks
322. Which of the following is not a common type of interconnection structure in multiprocessor systems?
- Option A: Bus
- Option B: Ring
- Option C: Mesh
- Option D: Serial
Show answerHide answer
Answer: D. Serial
323. What is a bus in a multiprocessor system?
- Option A: A shared communication channel between all processors
- Option B: A dedicated communication channel between two processors
- Option C: A type of processor architecture
- Option D: A type of memory organization
Show answerHide answer
Answer: A. A shared communication channel between all processors
324. Which of the following is not a disadvantage of a bus interconnection structure?
- Option A: Limited bandwidth
- Option B: Limited scalability
- Option C: High cost
- Option D: Single point of failure
Show answerHide answer
Answer: C. High cost
325. What is a ring interconnection structure in a multiprocessor system?
- Option A: A star-shaped arrangement of processors where each processor is connected to a central hub
- Option B: A circular arrangement of processors where each processor is connected to its adjacent processors
- Option C: A tree-like arrangement of processors where each processor is connected to a parent processor
- Option D: A grid-like arrangement of processors where each processor is connected to its adjacent processors in a regular pattern
Show answerHide answer
Answer: B. A circular arrangement of processors where each processor is connected to its adjacent processors
326. Which of the following is a disadvantage of a ring interconnection structure?
- Option A: Limited scalability
- Option B: High cost
- Option C: Low reliability
- Option D: Limited bandwidth
Show answerHide answer
Answer: C. Low reliability
327. What is a hypercube interconnection structure in a multiprocessor system?
- Option A: A structure where each processor has a dedicated point-to-point connection to every other processor
- Option B: A three-dimensional cube-like arrangement of processors where each processor is connected to its adjacent processors in all three dimensions
- Option C: A two-dimensional grid-like arrangement of processors where each processor is connected to its adjacent processors in a regular pattern
- Option D: A circular arrangement of processors where each processor is connected to its adjacent processors
Show answerHide answer
Answer: B. A three-dimensional cube-like arrangement of processors where each processor is connected to its adjacent processors in all three dimensions
328. Which of the following is a benefit of a hypercube interconnection structure?
- Option A: High scalability
- Option B: Low cost
- Option C: High reliability
- Option D: High bandwidth
Show answerHide answer
Answer: A. High scalability
329. What is a tree interconnection structure in a multiprocessor system?
- Option A: A tree-like arrangement of processors where each processor is connected to a parent processor
- Option B: A star-shaped arrangement of processors where each processor is connected to a central hub
- Option C: A circular arrangement of processors where each processor is connected to its adjacent processors
- Option D: A grid-like arrangement of processors where each processor is connected to its adjacent processors in a regular pattern
Show answerHide answer
Answer: A. A tree-like arrangement of processors where each processor is connected to a parent processor
330. Which of the following is a disadvantage of a tree interconnection structure?
- Option A: Limited scalability
- Option B: High cost
- Option C: Low reliability
- Option D: Limited bandwidth
Show answerHide answer
Answer: D. Limited bandwidth
331. What is an interconnection structure in a multiprocessor system?
- Option A: The way in which processors communicate with I/O devices
- Option B: The way in which processors communicate with each other
- Option C: The way in which memory is organized in the system
- Option D: The way in which interrupts are handled by the system
Show answerHide answer
Answer: B. The way in which processors communicate with each other
332. What is a bus-based interconnection structure?
- Option A: A structure where each processor has its own dedicated bus
- Option B: A structure where processors share a single bus
- Option C: A structure where each processor has a dedicated point-to-point connection to every other processor
- Option D: A structure where processors communicate via a wireless network
Show answerHide answer
Answer: B. A structure where processors share a single bus
333. Which of the following is a disadvantage of a bus-based interconnection structure?
- Option A: Low cost
- Option B: High fault tolerance
- Option C: Limited bandwidth
- Option D: High complexity
Show answerHide answer
Answer: C. Limited bandwidth
334. What is a crossbar interconnection structure?
- Option A: A structure where each processor has its own dedicated bus
- Option B: A structure where processors share a single bus
- Option C: A structure where each processor has a dedicated point-to-point connection to every other processor
- Option D: A structure where processors communicate via a wireless network
Show answerHide answer
Answer: C. A structure where each processor has a dedicated point-to-point connection to every other processor
335. Which of the following is an advantage of a crossbar interconnection structure?
- Option A: High scalability
- Option B: Low cost
- Option C: Limited bandwidth
- Option D: Limited fault tolerance
Show answerHide answer
Answer: A. High scalability
336. What is a mesh interconnection structure?
- Option A: A structure where processors share a single bus
- Option B: A structure where processors are arranged in a grid-like pattern
- Option C: A circular arrangement of processors where each processor is connected to its adjacent processors
- Option D: A star-shaped arrangement of processors where each processor is connected to a central hub
Show answerHide answer
Answer: B. A structure where processors are arranged in a grid-like pattern
337. Which of the following is a disadvantage of a mesh interconnection structure?
- Option A: High scalability
- Option B: Low cost
- Option C: Limited bandwidth
- Option D: Limited fault tolerance
Show answerHide answer
Answer: C. Limited bandwidth
338. What is inter-processor communication in a multiprocessor system?
- Option A: The transfer of data between input and output devices
- Option B: The coordination of multiple input/output operations
- Option C: The synchronization of multiple processors to work on a common task
- Option D: The transfer of data between two or more processors
Show answerHide answer
Answer: D. The transfer of data between two or more processors
339. Which of the following is an example of inter-processor communication?
- Option A: A processor communicating with a hard disk
- Option B: A processor communicating with main memory
- Option C: A processor communicating with another processor
- Option D: A processor communicating with a keyboard
Show answerHide answer
Answer: C. A processor communicating with another processor
340. What is the purpose of synchronization in a multiprocessor system?
- Option A: To reduce the cost of the system
- Option B: To improve the performance of the system
- Option C: To improve the reliability of the system
- Option D: To coordinate the activities of multiple processors
Show answerHide answer
Answer: D. To coordinate the activities of multiple processors
341. What is a critical section in a multiprocessor system?
- Option A: A section of code that can only be executed by the CPU
- Option B: A section of code that can only be executed by one processor at a time to avoid race conditions
- Option C: A section of code that can be executed by multiple processors simultaneously without synchronization
- Option D: A section of code that can only be executed by the operating system
Show answerHide answer
Answer: B. A section of code that can only be executed by one processor at a time to avoid race conditions
342. Which of the following is a technique for synchronizing multiple processors in a multiprocessor system?
- Option A: Locking
- Option B: Interrupts
- Option C: DMA
- Option D: I/O mapping
Show answerHide answer
Answer: A. Locking
343. What is the purpose of a barrier in inter-processor communication?
- Option A: To prevent data corruption between processors
- Option B: To synchronize the clocks of multiple processors
- Option C: To ensure that all processors have completed a certain operation before continuing
- Option D: To coordinate the activities of multiple input/output operations
Show answerHide answer
Answer: C. To ensure that all processors have completed a certain operation before continuing
344. What is a deadlock in a multiprocessor system?
- Option A: A condition in which a processor executes an instruction before it is ready to do so
- Option B: A condition in which two or more processors try to access the same resource simultaneously
- Option C: A condition in which a processor cannot access a resource due to a race condition
- Option D: A condition in which two or more processors are waiting for each other to release a resource, preventing any progress from being made
Show answerHide answer
Answer: D. A condition in which two or more processors are waiting for each other to release a resource, preventing any progress from being made
345. Which of the following is a disadvantage of inter-processor communication?
- Option A: High cost
- Option B: Low performance
- Option C: Increased complexity
- Option D: Limited scalability
Show answerHide answer
Answer: C. Increased complexity
346. What is the purpose of a message passing system in inter-processor communication?
- Option A: To transfer data between the CPU and input/output devices
- Option B: To reduce the complexity of the system
- Option C: To enable processors to exchange information with each other
- Option D: To manage the memory hierarchy in a multiprocessor system
Show answerHide answer
Answer: C. To enable processors to exchange information with each other
347. Which of the following is not a type of input-output organization?
- Option A: Programmed I/O
- Option B: Interrupt-driven I/O
- Option C: Direct memory access (DMA) I/O
- Option D: Cache-based I/O
Show answerHide answer
Answer: D. Cache-based I/O
348. What is the purpose of a device controller in input-output organization?
- Option A: To coordinate the activities of multiple input/output operations
- Option B: To convert data from a format that can be used by the CPU to a format that can be used by the input/output device
- Option C: To manage the communication between the input/output device and the rest of the system
- Option D: To improve the performance of the system
Show answerHide answer
Answer: C. To manage the communication between the input/output device and the rest of the system
349. Which of the following is an example of a message passing system?
- Option A: Ethernet
- Option B: USB
- Option C: TCP/IP
- Option D: MPI
Show answerHide answer
Answer: D. MPI
350. What is the purpose of a semaphore in inter-processor communication?
- Option A: To prevent data corruption between processors
- Option B: To synchronize the clocks of multiple processors
- Option C: To coordinate the activities of multiple input/output operations
- Option D: To control access to shared resources
Show answerHide answer
Answer: D. To control access to shared resources
351. Which of the following is not a method of synchronization in input-output organization?
- Option A: Semaphores
- Option B: Mutexes
- Option C: Spin locks
- Option D: Interrupts
Show answerHide answer
Answer: D. Interrupts
352. Which of the following is a disadvantage of using semaphores for inter-processor communication?
- Option A: High overhead
- Option B: Low scalability
- Option C: Limited reliability
- Option D: High cost
Show answerHide answer
Answer: A. High overhead
353. What is inter-processor communication?
- Option A: The transfer of data between input and output devices
- Option B: The transfer of data between two or more processors in a multiprocessor system
- Option C: The transfer of data between main memory and cache memory
- Option D: The transfer of data between the CPU and registers
Show answerHide answer
Answer: B. The transfer of data between two or more processors in a multiprocessor system
354. Which of the following is not a method of inter-processor communication?
- Option A: Shared memory
- Option B: Message passing
- Option C: Remote procedure call
- Option D: Interrupts
Show answerHide answer
Answer: D. Interrupts
355. What is synchronization in a multiprocessor system?
- Option A: The process of ensuring that each processor has the same set of instructions
- Option B: The process of stopping all processors except for the one that needs to execute a critical section of code
- Option C: The process of coordinating the activities of multiple processors to avoid conflicts and ensure consistency
- Option D: The process of ensuring that each processor has the same clock speed
Show answerHide answer
Answer: C. The process of coordinating the activities of multiple processors to avoid conflicts and ensure consistency
356. Which of the following is not a method of synchronization in a multiprocessor system?
- Option A: Semaphores
- Option B: Mutexes
- Option C: Spin locks
- Option D: Remote procedure
Show answerHide answer
Answer: D. Remote procedure
357. What is a race condition in a multiprocessor system?
- Option A: A condition in which a processor executes an instruction incorrectly
- Option B: A condition in which a processor executes an instruction before it is ready to do so
- Option C: A condition in which two or more processors try to access the same resource simultaneously
- Option D: A condition in which a processor cannot access a resource due to a deadlock
Show answerHide answer
Answer: C. A condition in which two or more processors try to access the same resource simultaneously
4.4 Hardware-software design issues in embedded systems
93 questions · ACtE0404
358. What is purpose of special processor?
Aasadh 2081 exam- Option A: General computation
- Option B: Special function
- Option C: Data storage
- Option D: Network communication
Show hintHide hint
Optimized for specific operations.
Show answerHide answer
Answer: B. Special function
Special processors are optimized for specific functions like graphics, encryption, or floating-point calculations.
359. What is firmware in embedded system?
- Option A: Software in ROM
- Option B: Software in RAM
- Option C: Software on disk
- Option D: Executed by microcontroller
Show hintHide hint
Permanent software.
Show answerHide answer
Answer: A. Software in ROM
Firmware is software stored in read-only memory (ROM) that controls embedded system behavior.
360. A real-time embedded system must:
- Option A: Always be small in size
- Option B: Always use a microcontroller
- Option C: Meet specific timing constraints
- Option D: Always be battery-powered
Show answerHide answer
Answer: C. Meet specific timing constraints
361. Embedded systems are characterized by:
- Option A: General-purpose computing
- Option B: Dedicated function within a larger system
- Option C: Always requiring an operating system
- Option D: Always having a user interface
Show answerHide answer
Answer: B. Dedicated function within a larger system
362. Application-Specific Instruction-Set Processors (ASIPs) are:
- Option A: General-purpose processors
- Option B: Processors with instruction sets tailored to specific applications
- Option C: Single-purpose hardware accelerators
- Option D: Microcontrollers with fixed instruction sets
Show answerHide answer
Answer: B. Processors with instruction sets tailored to specific applications
363. Custom Single-Purpose Processors are designed to:
- Option A: Run general-purpose applications
- Option B: Execute a specific algorithm efficiently
- Option C: Replace general-purpose CPUs
- Option D: Support multiple operating systems
Show answerHide answer
Answer: B. Execute a specific algorithm efficiently
364. The primary goal of embedded system optimization is typically:
- Option A: Maximizing performance
- Option B: Minimizing cost and power consumption
- Option C: Maximizing memory usage
- Option D: Increasing system complexity
Show answerHide answer
Answer: B. Minimizing cost and power consumption
365. Which of the following is NOT a common embedded system classification?
- Option A: Stand-alone embedded systems
- Option B: Real-time embedded systems
- Option C: Networked embedded systems
- Option D: Virtual embedded systems
Show answerHide answer
Answer: D. Virtual embedded systems
366. What is an embedded system?
- Option A: A system with no computing capabilities
- Option B: A network of computers connected together
- Option C: A computer system that is embedded within a larger device
- Option D: A computer system with a large memory and processing power
Show answerHide answer
Answer: C. A computer system that is embedded within a larger device
367. Which of the following is a typical characteristic of an embedded system?
- Option A: It has a large memory capacity
- Option B: It has a high processing power
- Option C: It is designed to perform a specific task
- Option D: It can run a variety of applications
Show answerHide answer
Answer: C. It is designed to perform a specific task
368. Which of the following is an example of an embedded system?
- Option A: A personal computer
- Option B: A smartphone
- Option C: A digital camera
- Option D: A server
Show answerHide answer
Answer: C. A digital camera
369. What is the role of a microcontroller in an embedded system?
- Option A: To provide high processing power
- Option B: To provide storage capacity
- Option C: To provide network connectivity
- Option D: To control the device's functions
Show answerHide answer
Answer: D. To control the device's functions
370. Which of the following is an advantage of using an embedded system?
- Option A: It is easy to modify and upgrade
- Option B: It has a low cost
- Option C: It has a high processing power
- Option D: It is designed for general-purpose use
Show answerHide answer
Answer: B. It has a low cost
371. Which of the following is a disadvantage of using an embedded system?
- Option A: It is difficult to modify and upgrade
- Option B: It has a high cost
- Option C: It has a low processing power
- Option D: It is designed for general-purpose use
Show answerHide answer
Answer: A. It is difficult to modify and upgrade
372. Which of the following is a common programming language used in embedded systems?
- Option A: Java
- Option B: Python
- Option C: C
- Option D: JavaScript
Show answerHide answer
Answer: C. C
373. Which of the following is an example of an application-specific embedded system?
- Option A: A digital camera
- Option B: A server
- Option C: A personal computer
- Option D: A smart phone
Show answerHide answer
Answer: A. A digital camera
374. What is an embedded system?
- Option A: A system designed to perform a specific task
- Option B: A system that is connected to the internet
- Option C: A system that is used for gaming
- Option D: A system that is used for general-purpose computing
Show answerHide answer
Answer: A. A system designed to perform a specific task
375. Which of the following is NOT a characteristic of an embedded system?
- Option A: Small size
- Option B: Limited power
- Option C: General-purpose computing
- Option D: Low cost
Show answerHide answer
Answer: C. General-purpose computing
376. Which of the following is NOT an example of an embedded system?
- Option A: Smart watch
- Option B: Home computer
- Option C: Microwave oven
- Option D: Airplane navigation system
Show answerHide answer
Answer: B. Home computer
377. Which of the following is NOT a challenge in embedded system design?
- Option A: Limited memory
- Option B: Real-time requirements
- Option C: Security concerns
- Option D: Compatibility with standard operating systems
Show answerHide answer
Answer: D. Compatibility with standard operating systems
378. What is the purpose of a microcontroller in an embedded system?
- Option A: To perform real-time processing
- Option B: To provide wireless connectivity
- Option C: To display graphics on a screen
- Option D: To provide audio output
Show answerHide answer
Answer: A. To perform real-time processing
379. Which of the following is NOT a programming language commonly used for embedded system development?
- Option A: C
- Option B: Python
- Option C: Assembly language
- Option D: Ada
Show answerHide answer
Answer: B. Python
380. Which of the following is NOT a method for interfacing with external devices in an embedded system?
- Option A: Serial communication
- Option B: USB
- Option C: Ethernet
- Option D: Random access memory (RAM)
Show answerHide answer
Answer: D. Random access memory (RAM)
381. Which of the following is a key consideration in power management for embedded systems?
- Option A: Maximizing processing power
- Option B: Minimizing memory usage
- Option C: Maximizing battery life
- Option D: Minimizing system cost
Show answerHide answer
Answer: C. Maximizing battery life
382. Which of the following is a benefit of using an embedded system in a product?
- Option A: Increased product cost
- Option B: Increased flexibility
- Option C: Increased reliability
- Option D: Decreased performance
Show answerHide answer
Answer: C. Increased reliability
383. Which of the following is not a type of embedded system?
- Option A: Standalone embedded system
- Option B: Mobile embedded system
- Option C: Networked embedded system
- Option D: Web-based embedded system
Show answerHide answer
Answer: D. Web-based embedded system
384. Which of the following is an example of a real-time embedded system?
- Option A: MP3 player
- Option B: Digital camera
- Option C: Air traffic control system
- Option D: Home thermostat
Show answerHide answer
Answer: C. Air traffic control system
385. Which of the following is not a characteristic of a networked embedded system?
- Option A: Communication with other devices
- Option B: Connection to the internet
- Option C: Shared resources
- Option D: Standalone operation
Show answerHide answer
Answer: D. Standalone operation
386. An automotive embedded system is an example of a(n) ________ embedded system.
- Option A: Standalone
- Option B: Mobile
- Option C: Networked
- Option D: Hybrid
Show answerHide answer
Answer: D. Hybrid
387. Which of the following is not a characteristic of an embedded system?
- Option A: High reliability
- Option B: Limited resources
- Option C: Standard operating system
- Option D: Real-time operation
Show answerHide answer
Answer: C. Standard operating system
388. Which of the following is not a component of an embedded system?
- Option A: Microcontroller
- Option B: Sensors
- Option C: Software
- Option D: Monitor
Show answerHide answer
Answer: D. Monitor
389. A thermostat is an example of a(n) ________ embedded system.
- Option A: Mobile
- Option B: Networked
- Option C: Standalone
- Option D: Hybrid
Show answerHide answer
Answer: C. Standalone
390. What is the main difference between stand-alone and real-time embedded systems?
- Option A: Stand-alone systems have small memory, whereas real-time systems have large memory.
- Option B: Stand-alone systems have no interaction with external environment, whereas real-time systems interact with the environment and provide real-time response.
- Option C: Stand-alone systems are powered by battery, whereas real-time systems are powered by electricity.
- Option D: Stand-alone systems are single-processor systems, whereas real-time systems are multi-processor systems.
Show answerHide answer
Answer: B. Stand-alone systems have no interaction with external environment, whereas real-time systems interact with the environment and provide real-time response.
391. Which of the following is true about custom single-purpose processors?
- Option A: They can perform any task.
- Option B: They are expensive and difficult to design.
- Option C: They are optimized for a specific application.
- Option D: They are used in applications where flexibility is the key.
Show answerHide answer
Answer: C. They are optimized for a specific application.
392. What is the primary advantage of using a custom single-purpose processor over a general-purpose processor in an embedded system?
- Option A: Lower power consumption
- Option B: Instruction set architecture
- Option C: Higher performance
- Option D: Lower cost
Show answerHide answer
Answer: C. Higher performance
393. Which of the following is NOT a key consideration when optimizing a custom single-purpose processor for an embedded system?
- Option A: Instruction set architecture
- Option B: Compatibility with existing software
- Option C: Memory size
- Option D: Power consumption
Show answerHide answer
Answer: B. Compatibility with existing software
394. Which of the following is not a design consideration for custom single-purpose processors?
- Option A: Area
- Option B: Power consumption
- Option C: Compatibility with existing software
- Option D: Performance
Show answerHide answer
Answer: C. Compatibility with existing software
395. Which of the following is NOT a common application for custom single-purpose processors in embedded systems?
- Option A: Image processing
- Option B: Audio processing
- Option C: Network packet processing
- Option D: General-purpose computing
Show answerHide answer
Answer: D. General-purpose computing
396. Which of the following is a disadvantage of using a custom single-purpose processor in an embedded system?
- Option A: Higher cost
- Option B: Greater flexibility
- Option C: Larger size
- Option D: Lower performance
Show answerHide answer
Answer: A. Higher cost
397. Which of the following is a key consideration when designing a custom single-purpose processor for an embedded system?
- Option A: High clock speed
- Option B: Large instruction set
- Option C: Small code size
- Option D: Multiple address modes
Show answerHide answer
Answer: C. Small code size
398. Which of the following is a key advantage of using a custom single-purpose processor in an embedded system?
- Option A: Greater flexibility
- Option B: Lower cost
- Option C: Higher performance
- Option D: Smaller size
Show answerHide answer
Answer: C. Higher performance
399. Which of the following is NOT a benefit of using a custom single-purpose processor in an embedded system?
- Option A: Higher performance
- Option B: Lower power consumption
- Option C: Smaller size
- Option D: Greater flexibility
Show answerHide answer
Answer: D. Greater flexibility
400. Which of the following is a common approach to reducing the code size of a custom single-purpose processor?
- Option A: Increasing the clock speed
- Option B: Adding more general-purpose registers
- Option C: Removing unused instructions
- Option D: Increasing the data memory size
Show answerHide answer
Answer: C. Removing unused instructions
401. Which of the following is a common method for optimizing a custom single-purpose processor for an embedded system?
- Option A: Increasing clock speed
- Option B: Removing unused instructions
- Option C: Adding more general-purpose registers
- Option D: Increasing the data memory size
Show answerHide answer
Answer: B. Removing unused instructions
402. Which of the following is an example of a custom single-purpose processor design?
- Option A: FPGA
- Option B: GPU
- Option C: CPU
- Option D: All of the above
Show answerHide answer
Answer: A. FPGA
403. What is the main objective of optimizing custom single-purpose processors?
- Option A: To reduce the design cost
- Option B: To increase the flexibility
- Option C: To improve the performance
- Option D: To enhance the compatibility
Show answerHide answer
Answer: C. To improve the performance
404. Which of the following techniques is used for optimizing custom single-purpose processors?
- Option A: Loop unrolling
- Option B: Register allocation
- Option C: Instruction scheduling
- Option D: All of the above
Show answerHide answer
Answer: D. All of the above
405. Which of the following is a disadvantage of using custom single-purpose processors?
- Option A: High development cost
- Option B: Limited flexibility
- Option C: Longer development time
- Option D: All of the above
Show answerHide answer
Answer: D. All of the above
406. Which of the following is not a factor in the design of custom single-purpose processors?
- Option A: Power consumption
- Option B: Memory size
- Option C: Clock frequency
- Option D: All of the above are factors
Show answerHide answer
Answer: D. All of the above are factors
407. Which of the following is not a technique used for optimizing custom single-purpose processors?
- Option A: Data compression
- Option B: Loop pipelining
- Option C: Instruction-level parallelism
- Option D: All of the above are techniques
Show answerHide answer
Answer: A. Data compression
408. Which of the following is not an application of custom single-purpose processors?
- Option A: Video encoding and decoding
- Option B: Image processing
- Option C: Cryptography
- Option D: General-purpose computing
Show answerHide answer
Answer: D. General-purpose computing
409. What is an embedded system?
- Option A: A computer system used in industrial control applications
- Option B: A computer system that is always connected to the internet
- Option C: A computer system used for gaming
- Option D: A computer system that is only used for word processing
Show answerHide answer
Answer: A. A computer system used in industrial control applications
410. Which of the following is not an example of an embedded system?
- Option A: Smartwatch
- Option B: Traffic light control system
- Option C: Microwave oven
- Option D: Personal computer
Show answerHide answer
Answer: D. Personal computer
411. What is the primary function of an embedded system?
- Option A: To run a graphical user interface
- Option B: To store large amounts of data
- Option C: To control a specific device or process
- Option D: To perform complex mathematical computations
Show answerHide answer
Answer: C. To control a specific device or process
412. Which of the following is not a characteristic of an embedded system?
- Option A: Low power consumption
- Option B: Small form factor
- Option C: High processing speed
- Option D: Real-time operation
Show answerHide answer
Answer: C. High processing speed
413. Which of the following is an example of an event-driven system?
- Option A: A vending machine
- Option B: A washing machine
- Option C: A microwave oven
- Option D: A digital camera
Show answerHide answer
Answer: A. A vending machine
414. Which of the following is not a type of embedded system?
- Option A: Standalone system
- Option B: Real-time system
- Option C: Networked system
- Option D: Mainframe system
Show answerHide answer
Answer: D. Mainframe system
415. What is the main advantage of using a microcontroller in an embedded system?
- Option A: It is faster than other types of processors
- Option B: It is cheaper than other types of processors
- Option C: It has built-in peripherals and memory
- Option D: It requires less power than other types of processors
Show answerHide answer
Answer: C. It has built-in peripherals and memory
416. Which of the following is not a factor to consider when selecting a microcontroller for an embedded system?
- Option A: Memory size
- Option B: Power consumption
- Option C: Peripherals
- Option D: Color display resolution
Show answerHide answer
Answer: D. Color display resolution
417. What is firmware?
- Option A: Software that is stored on a hard disk
- Option B: Software that is loaded into RAM
- Option C: Software that is permanently stored in ROM or flash memory
- Option D: Software that is used to control the hardware of a computer
Show answerHide answer
Answer: C. Software that is permanently stored in ROM or flash memory
418. What is the primary difference between a microcontroller and a microprocessor?
- Option A: A microcontroller includes on-board memory and I/O, while a microprocessor does not.
- Option B: A microprocessor has more on-board memory than a microcontroller.
- Option C: A microcontroller is used for more complex applications than a microprocessor.
- Option D: A microprocessor is used for real-time applications, while a microcontroller is not.
Show answerHide answer
Answer: A. A microcontroller includes on-board memory and I/O, while a microprocessor does not.
419. Which type of memory is commonly used for program storage in embedded systems?
- Option A: SRAM
- Option B: DRAM
- Option C: EEPROM
- Option D: Flash
Show answerHide answer
Answer: D. Flash
420. What is the function of a watchdog timer in an embedded system?
- Option A: To reset the system if it becomes unresponsive.
- Option B: To synchronize data transfers between devices.
- Option C: To prevent unauthorized access to the system.
- Option D: To provide a backup power source in case of a power outage.
Show answerHide answer
Answer: A. To reset the system if it becomes unresponsive.
421. Which of the following is an advantage of using an FPGA in embedded system design?
- Option A: High clock speeds
- Option B: Low power consumption
- Option C: Flexibility in design
- Option D: Ease of programming
Show answerHide answer
Answer: C. Flexibility in design
422. What is the primary advantage of using a digital signal processor (DSP) in an embedded system?
- Option A: Low power consumption
- Option B: High clock speeds
- Option C: High accuracy in mathematical calculations
- Option D: Large amounts of on-board memory
Show answerHide answer
Answer: C. High accuracy in mathematical calculations
423. Which of the following statements about the programmer's view of an embedded system is true?
- Option A: It provides a detailed understanding of the software components
- Option B: It provides a detailed understanding of the hardware components
- Option C: It provides a detailed understanding of the user interface
- Option D: It provides a high-level understanding of how the system operates
Show answerHide answer
Answer: A. It provides a detailed understanding of the software components
424. Which of the following statements about the operation of an embedded system is true?
- Option A: It is always deterministic and predictable.
- Option B: It is always nondeterministic and unpredictable.
- Option C: It can be either deterministic or nondeterministic depending on the system design and implementation.
- Option D: It is not relevant to the operation of an embedded system.
Show answerHide answer
Answer: C. It can be either deterministic or nondeterministic depending on the system design and implementation.
425. Which of the following statements about the execution of programs on an embedded system is true?
- Option A: Programs are executed on a separate processor from the rest of the system.
- Option B: Programs are executed directly on the hardware of the system.
- Option C: Programs are executed in a virtual machine environment.
- Option D: Programs are executed on a separate computer connected to the system.
Show answerHide answer
Answer: B. Programs are executed directly on the hardware of the system.
426. Which of the following is NOT a typical operation performed by an embedded system?
- Option A: Collecting data from sensors
- Option B: Controlling a physical system
- Option C: Performing complex computations
- Option D: Displaying data on a screen
Show answerHide answer
Answer: C. Performing complex computations
427. Which of the following best describes the programmer's view of an embedded system?
- Option A: The physical components of the system
- Option B: The way in which the system operates
- Option C: The programming language used to write software for the system
- Option D: The functions provided by the operating system of the system
Show answerHide answer
Answer: C. The programming language used to write software for the system
428. Which of the following is a typical input device in an embedded system?
- Option A: Keyboard
- Option B: Mouse
- Option C: Touchscreen
- Option D: Scanner
Show answerHide answer
Answer: C. Touchscreen
429. Which of the following is a typical output device in an embedded system?
- Option A: Hard drive
- Option B: Speaker
- Option C: Scanner
- Option D: Printer
Show answerHide answer
Answer: B. Speaker
430. Which of the following is a typical communication protocol used by embedded systems?
- Option A: HTTP
- Option B: FTP
- Option C: TCP/IP
- Option D: SMTP
Show answerHide answer
Answer: C. TCP/IP
431. Which of the following is a typical memory component used in an embedded system?
- Option A: Hard drive
- Option B: SSD
- Option C: DRAM
- Option D: CD-ROM
Show answerHide answer
Answer: C. DRAM
432. Which of the following is NOT a typical programming language used in embedded systems?
- Option A: C
- Option B: Java
- Option C: Assembly language
- Option D: Python
Show answerHide answer
Answer: D. Python
433. Which of the following is NOT a typical application for an embedded system?
- Option A: Smart home automation
- Option B: Automotive systems
- Option C: Medical devices
- Option D: Web development
Show answerHide answer
Answer: D. Web development
434. Which of the following best describes the purpose of an interrupt in an embedded system?
- Option A: To shut down the system
- Option B: To allow communication between components
- Option C: To load data into memory
- Option D: To terminate a running program
Show answerHide answer
Answer: B. To allow communication between components
435. What is the purpose of the instruction set architecture (ISA) in an embedded system?
- Option A: To provide a detailed understanding of the software components
- Option B: To provide a high-level understanding of how the system operates
- Option C: To provide a detailed understanding of the hardware components
- Option D: To provide a standard interface between the software and hardware components
Show answerHide answer
Answer: D. To provide a standard interface between the software and hardware components
436. Which of the following is not a common method of communication between embedded systems and external devices?
- Option A: UART
- Option B: SPI
- Option C: USB
- Option D: FTP
Show answerHide answer
Answer: D. FTP
437. Which of the following is not a common component of an embedded system development environment?
- Option A: Integrated Development Environment (IDE)
- Option B: Compiler
- Option C: Debugger
- Option D: Printer
Show answerHide answer
Answer: D. Printer
438. Which of the following is a common method for programming an embedded system?
- Option A: Writing machine code directly to the device
- Option B: Using a graphical user interface
- Option C: Using a high-level programming language and a compiler
- Option D: All of the above
Show answerHide answer
Answer: C. Using a high-level programming language and a compiler
439. Which of the following is true regarding Application-Specific Instruction-Set Processors (ASIPs)?
- Option A: They are designed to be used for a specific application or a set of applications.
- Option B: They are not suitable for real-time systems.
- Option C: They are typically less efficient than general-purpose processors.
- Option D: They can be programmed using assembly language or high-level language.
Show answerHide answer
Answer: A. They are designed to be used for a specific application or a set of applications.
440. Which of the following is an advantage of using an ASIP in an embedded system?
- Option A: It reduces development time and cost.
- Option B: It provides a higher level of flexibility compared to general-purpose processors.
- Option C: It is easy to program using high-level languages.
- Option D: It provides a better performance than general-purpose processors.
Show answerHide answer
Answer: D. It provides a better performance than general-purpose processors.
441. Which of the following is an example of an ASIP?
- Option A: Intel Core i7
- Option B: ARM Cortex-A9
- Option C: Tensilica Xtensa
- Option D: AMD Ryzen
Show answerHide answer
Answer: C. Tensilica Xtensa
442. Which of the following is true regarding the instruction set of an ASIP?
- Option A: It is fixed and cannot be changed.
- Option B: It is designed to be compatible with existing general-purpose processors.
- Option C: It is designed to be optimized for a specific application.
- Option D: It is designed to be easy to program using high-level languages.
Show answerHide answer
Answer: C. It is designed to be optimized for a specific application.
443. Which of the following is an advantage of using an ASIP in a real-time embedded system?
- Option A: It provides a higher level of flexibility compared to general-purpose processors.
- Option B: It is easier to program using high-level languages.
- Option C: It can be optimized for the specific real-time requirements of the system.
- Option D: It provides a better performance than general-purpose processors.
Show answerHide answer
Answer: C. It can be optimized for the specific real-time requirements of the system.
444. Which of the following is a disadvantage of using an ASIP over a general-purpose processor?
- Option A: Reduced performance
- Option B: Increased development time
- Option C: Increased cost
- Option D: Reduced flexibility
Show answerHide answer
Answer: D. Reduced flexibility
445. Which of the following is an example of an ASIP?
- Option A: Intel Core i7
- Option B: ARM Cortex-A53
- Option C: Qualcomm Snapdragon
- Option D: Digital Signal Processor (DSP)
Show answerHide answer
Answer: D. Digital Signal Processor (DSP)
446. Which of the following statements is true regarding ASIPs?
- Option A: They are designed for a specific application
- Option B: They are optimized for high performance
- Option C: They have a flexible instruction set
- Option D: They are more expensive than general-purpose processors
Show answerHide answer
Answer: A. They are designed for a specific application
447. Which of the following is a limitation of using an ASIP?
- Option A: Reduced performance
- Option B: Inability to be reprogrammed
- Option C: Limited functionality
- Option D: It has limited scalability.
Show answerHide answer
Answer: C. Limited functionality
448. Which of the following is an advantage of using an ASIP in a multimedia processing embedded system?
- Option A: Increased code portability
- Option B: It is easy to program using high-level languages.
- Option C: It can provide a higher level of performance compared to general-purpose processors.
- Option D: It is easier to modify the hardware design once it is implemented.
Show answerHide answer
Answer: C. It can provide a higher level of performance compared to general-purpose processors.
449. Which of the following is an example of an application that would benefit from using an ASIP?
- Option A: Web browsing
- Option B: Video encoding
- Option C: Word processing
- Option D: Spreadsheet calculators
Show answerHide answer
Answer: B. Video encoding
450. Purpose of special processor?
- Option A: General compute
- Option B: Special function
- Option C: Storage
- Option D: Communication
Show hintHide hint
Optimized.
Show answerHide answer
Answer: B. Special function
Special processors optimized for specific functions like GPU or crypto.
4.5 Real-time operating and control systems
16 questions · ACtE0405
451. What is preemption in real-time system?
- Option A: Interrupt and switch tasks
- Option B: Run multiple tasks
- Option C: Prioritize tasks
- Option D: None of above
Show hintHide hint
High-priority interrupts low-priority.
Show answerHide answer
Answer: A. Interrupt and switch tasks
Preemption is ability to interrupt currently executing task and switch to higher priority task.
452. What is purpose of RTOS?
- Option A: Provide GUI
- Option B: Manage resources and scheduling
- Option C: Provide internet
- Option D: Audio/video output
Show hintHide hint
Real-time management.
Show answerHide answer
Answer: B. Manage resources and scheduling
Real-time operating system manages system resources and scheduling to meet time constraints.
453. What is a real-time kernel?
NEC model set- Option A: The core component of a real-time operating system
- Option B: The user interface of a real-time operating system
- Option C: The hardware component of a real-time operating system
- Option D: The core component of a real-time pointer system
Show hintHide hint
Kernel is the core of any OS. What does 'real-time' mean it must do?
Show answerHide answer
Answer: A. The core component of a real-time operating system
A real-time kernel is the core component of a real-time operating system (RTOS). It manages resources and task scheduling with strict timing constraints. Characteristics of a real-time kernel: (1) Deterministic behavior - Response times are predictable and bounded, (2) Priority-based scheduling - Tasks are scheduled by priority, high-priority tasks preempt low-priority ones, (3) Preemption - Can interrupt lower-priority tasks to serve urgent ones, (4) Low latency - Minimal delay between interrupt and response. Real-time kernels are used in: (1) Embedded systems - Industrial controllers, medical devices, automotive systems, (2) Time-critical applications - Flight control, power plants, robotics. Distinction from general-purpose kernels: (1) General-purpose kernels optimize for throughput and fairness, (2) Real-time kernels optimize for meeting deadlines. Types: (1) Hard real-time - Missing deadline is unacceptable (aircraft systems), (2) Soft real-time - Missing deadline is undesirable but tolerable (multimedia). The kernel's job is to enforce timing guarantees for all tasks in the system. Examples: VxWorks, QNX Neutrino, FreeRTOS.
454. Preemptive scheduling allows:
- Option A: Tasks to run until completion
- Option B: Tasks to be interrupted by higher priority tasks
- Option C: Only one task to run at a time
- Option D: Tasks to determine their own execution time
Show answerHide answer
Answer: B. Tasks to be interrupted by higher priority tasks
455. Device drivers are:
- Option A: Hardware components
- Option B: Software interfaces between OS and hardware
- Option C: User applications
- Option D: Firmware stored in ROM
Show answerHide answer
Answer: B. Software interfaces between OS and hardware
456. An open-loop control system:
- Option A: Uses feedback to adjust output
- Option B: Does not use feedback to adjust output
- Option C: Always provides more accurate control than closed-loop
- Option D: Is not used in embedded systems
Show answerHide answer
Answer: B. Does not use feedback to adjust output
457. Hard real-time systems:
- Option A: Are always faster than soft real-time systems
- Option B: Must meet deadlines or system fails
- Option C: Are always implemented in hardware
- Option D: Cannot use operating systems
Show answerHide answer
Answer: B. Must meet deadlines or system fails
458. Which scheduling algorithm is most appropriate for real-time systems?
- Option A: First-Come-First-Served
- Option B: Round Robin
- Option C: Rate Monotonic
- Option D: Shortest Job First
Show answerHide answer
Answer: C. Rate Monotonic
459. Which of the following is a characteristic of embedded operating systems?
- Option A: Large footprint
- Option B: Support for multiple users
- Option C: Real-time capabilities
- Option D: Graphical user interface
Show answerHide answer
Answer: C. Real-time capabilities
460. In a closed-loop control system:
- Option A: There is no feedback
- Option B: Output has no effect on control action
- Option C: Feedback is used to adjust the control action
- Option D: The system cannot be stabilized
Show answerHide answer
Answer: C. Feedback is used to adjust the control action
461. What is the purpose of an operating system in an embedded system?
- Option A: To provide high processing power
- Option B: To provide network connectivity
- Option C: To manage system resources
- Option D: To control the device's functions
Show answerHide answer
Answer: C. To manage system resources
462. What is the purpose of a real-time operating system (RTOS) in an embedded system?
- Option A: To provide a graphical user interface (GUI)
- Option B: To manage system resources and scheduling
- Option C: To provide internet connectivity
- Option D: To provide audio and video output
Show answerHide answer
Answer: B. To manage system resources and scheduling
463. Which of the following is not a benefit of using an RTOS (Real-Time Operating System) in an embedded system?
- Option A: Better task management
- Option B: Higher system reliability
- Option C: Lower cost
- Option D: Faster development time
Show answerHide answer
Answer: C. Lower cost
464. What is the purpose of a Real-Time Operating System (RTOS) in an embedded system?
- Option A: To schedule and manage tasks in real-time.
- Option B: To provide a graphical user interface for the user.
- Option C: To manage memory usage in the system.
- Option D: To provide network connectivity.
Show answerHide answer
Answer: A. To schedule and manage tasks in real-time.
465. Which of the following is a typical real-time operating system used in embedded systems?
- Option A: Windows
- Option B: Linux
- Option C: Android
- Option D: FreeRTOS
Show answerHide answer
Answer: D. FreeRTOS
466. Health monitoring systems, emergency braking systems, and airplane control systems are examples of which type of real-time system?
Recalled from Jan 2026 exam- Option A: Soft real-time systems
- Option B: Firm real-time systems
- Option C: Hard real-time systems
- Option D: Non-real-time systems
Show hintHide hint
These systems must respond within strict time limits or failures are catastrophic. What type?
Show answerHide answer
Answer: C. Hard real-time systems
Health monitoring systems, emergency braking systems, and airplane control systems are examples of hard real-time systems. Hard real-time systems have strict timing constraints where missing deadlines can cause catastrophic failures or loss of life. Hard real-time systems must guarantee response within specific time limits 100% of the time. Soft real-time systems (multimedia) have timing constraints but missing deadlines causes degraded performance, not failure. Firm real-time systems (video streaming) miss occasional deadlines but with limited consequences.
4.6 Hardware description language and IC technology
9 questions · ACtE0406
467. What is relationship between Signed integers and library?
Aasadh 2081 exam- Option A: std_1164
- Option B: std_arth
- Option C: cstdint
- Option D: iostream
Show hintHide hint
Standard integer types library.
Show answerHide answer
Answer: C. cstdint
cstdint is the C++ standard library for fixed-size integer types including signed integers.
468. Which of the following is NOT a VHDL modeling style?
NEC model set- Option A: Behavioral
- Option B: Structural
- Option C: Dataflow
- Option D: Algorithmic
Show hintHide hint
VHDL has Behavioral, Structural, and Dataflow styles. Which is NOT one?
Show answerHide answer
Answer: D. Algorithmic
Algorithmic is NOT a VHDL modeling style. The three main VHDL modeling styles are: (1) Behavioral - describes what the system does using processes, (2) Structural - describes how the system is built from components, (3) Dataflow - describes the flow of data through concurrent statements. 'Algorithmic' is not a distinct modeling style in VHDL, though algorithmic descriptions are often part of behavioral modeling.
469. In a 1:2 DMUX with input d, select line s, and output y, the correct way to write in VHDL is?
Past question- Option A: PROCESS(d0, d1)
- Option B: PROCESS(d0, d1, s)
- Option C: PROCESS(d, s)
- Option D: PROCESS(d, s, y)
Show hintHide hint
The PROCESS sensitivity list includes only signals that affect the behavior. Outputs don't go in the list.
Show answerHide answer
Answer: C. PROCESS(d, s)
In VHDL, the correct way to write a 1:2 DMUX process is PROCESS(d, s). Understanding VHDL PROCESS Sensitivity List: (1) Lists only INPUT signals that affect process behavior, (2) When any input in list changes, process executes, (3) Outputs are NOT included in sensitivity list. DMUX Behavior: (1) 1 input d, (2) 1 select line s, (3) 2 outputs (typically y0, y1 or y0, y1). How DMUX Works: (1) When s=0: d→output y0 (or first output), (2) When s=1: d→output y1 (or second output), (3) Only selected output gets input value. VHDL Process Example: process(d, s) is begin if s = '0' then y0 <= d; y1 <= '0'; else y0 <= '0'; y1 <= d; end if; end process; Why NOT y in list: (1) y (or y0, y1) are outputs, (2) Outputs are assigned values, not read, (3) Outputs don't trigger process execution, (4) Only inputs in sensitivity list. Sensitivity List Rules: (1) Include all read signals, (2) Exclude all written signals (outputs), (3) Include constants if they're part of logic. Why not other options: (1) d0, d1 - These are not separate inputs in 1:2 DMUX, (2) Includes y - Outputs shouldn't be in list, (3) d0, d1, s - Wrong input names. VHDL Syntax Comparison: (1) Behavioral VHDL - Uses sensitivity list, (2) Structural VHDL - Component instantiation, (3) Dataflow VHDL - Concurrent assignments. Common Mistakes: (1) Including outputs in sensitivity list - No error but unnecessary, (2) Missing inputs - Process won't execute when they change, (3) Extra signals - Slows simulation. This demonstrates VHDL coding practices.
470. VHDL is primarily used for:
- Option A: High-level software programming
- Option B: Database management
- Option C: Hardware description and modeling
- Option D: Network protocol design
Show answerHide answer
Answer: C. Hardware description and modeling
471. In VHDL, the purpose of an entity declaration is to:
- Option A: Define the behavior of a component
- Option B: Specify the interface of a component
- Option C: Implement the logic of a component
- Option D: Test the functionality of a component
Show answerHide answer
Answer: B. Specify the interface of a component
472. Pipelining in VHDL allows for:
- Option A: Reduced power consumption
- Option B: Increased throughput
- Option C: Simplified design
- Option D: Reduced chip area
Show answerHide answer
Answer: B. Increased throughput
473. In VHDL, a process statement is used to:
- Option A: Define entity interfaces
- Option B: Describe sequential behavior
- Option C: Connect components
- Option D: Declare data types
Show answerHide answer
Answer: B. Describe sequential behavior
474. The primary difference between combinational and sequential logic in VHDL is:
- Option A: Sequential logic includes memory elements
- Option B: Combinational logic is faster
- Option C: Sequential logic uses fewer resources
- Option D: Combinational logic is more complex
Show answerHide answer
Answer: A. Sequential logic includes memory elements
475. What is a signal in VHDL?
NEC model set- Option A: A variable used to store a value in a digital circuit
- Option B: A physical wire used to transmit data in a digital circuit
- Option C: A function used to perform a specific task in VHDL
- Option D: A file used to store a specific task
Show hintHide hint
Signals in VHDL represent the wires connecting components. What do wires do in circuits?
Show answerHide answer
Answer: B. A physical wire used to transmit data in a digital circuit
In VHDL (Very High Speed Integrated Circuit Hardware Description Language), a signal represents a physical wire used to transmit data between components in a digital circuit. Signals are fundamental building blocks in VHDL: (1) Carry values of specific types (bit, bit_vector, std_logic, etc.), (2) Connect different components of the design, (3) Have propagation delays in simulation, (4) Update at specific times determined by the simulator. Key differences from variables: (1) Variables are used within processes, updating immediately, (2) Signals are global to the design, updating at end of time step, (3) Signals model hardware wires, variables model software concepts. Signal declaration: signal wire_name : std_logic; signal bus : std_logic_vector(7 downto 0); Signal assignment: wire_name <= source_value; Bus signals can carry multiple bits (buses), similar to real circuit buses. Signals include: (1) Input ports - From external circuits, (2) Output ports - To external circuits, (3) Internal signals - Between internal components. This is why VHDL is suitable for hardware design - signals naturally model the wires in physical circuits.