50 multiple-choice questions with answers and detailed explanations. Untimed — choose an answer to check it instantly.
0/50 answered0 correct
Question 1 of 50
Which type of computer is commonly embedded within other devices to perform dedicated tasks?
Correct answer: C) Embedded computer
Explanation: Embedded computers are designed for specific applications within other devices, like cars or appliances, providing dedicated functionality.
Question 2 of 50
What term describes the measurement of tasks completed per unit of time in a computer system?
Correct answer: C) Throughput
Explanation: Throughput measures how many tasks are completed within a specific timeframe, indicating system efficiency.
Question 3 of 50
What Java keyword allows any class to invoke a method, regardless of package or subclass?
Correct answer: C) Public
Explanation: The public keyword makes a method accessible from any class, ensuring broad visibility across packages.
Question 4 of 50
Which method of error checking allows detection of an error without pinpointing its exact location?
Correct answer: C) Error detection code
Explanation: Error detection codes identify errors in data without correcting them, flagging the need for further handling.
Question 5 of 50
What process is used to allocate data blocks to separate disks to improve performance?
Correct answer: B) Striping
Explanation: Striping divides data across multiple disks, enhancing access speed by allowing parallel reads and writes.
Question 6 of 50
Which system component retains data even when the computer is turned off?
Correct answer: D) Nonvolatile memory
Explanation: Nonvolatile memory, such as flash or hard drives, holds data without requiring power, making it suitable for long-term storage.
Question 7 of 50
What is the function of a linker in the program compilation process?
Correct answer: D) Combines program modules into an executable file
Explanation: A linker combines independently compiled modules and resolves references, creating a complete executable file.
Question 8 of 50
What addressing technique uses an address relative to the Program Counter (PC)?
Correct answer: D) PC-relative addressing
Explanation: PC-relative addressing calculates an address by adding an offset to the current value in the Program Counter, useful in branch instructions.
Question 9 of 50
In which type of memory does data retention rely on periodic refreshing?
Correct answer: C) DRAM
Explanation: DRAM requires regular refresh cycles to retain data, unlike SRAM, which holds data as long as power is applied.
Question 10 of 50
Which Java component compiles bytecode at runtime to enhance performance?
Correct answer: B) Just-In-Time (JIT) compiler
Explanation: The JIT compiler translates Java bytecode into native machine code at runtime, optimizing performance on the host platform.
Question 11 of 50
What operation does an ALU perform in a CPU?
Correct answer: C) Conducts arithmetic and logical operations
Explanation: The ALU (Arithmetic Logic Unit) executes arithmetic and logical operations, which are crucial for data processing in the CPU.
Question 12 of 50
What is the smallest storage unit typically managed within a cache?
Correct answer: B) Block
Explanation: Cache memory organizes data in blocks or lines, representing the smallest unit that can be present or absent from the cache.
Question 13 of 50
What type of memory retains data without power and is commonly used for firmware?
Correct answer: C) Nonvolatile memory
Explanation: Nonvolatile memory stores data permanently, making it ideal for firmware that must persist even after power is off.
Question 14 of 50
What term describes a storage area in memory that caches recently used address mappings?
Correct answer: C) Translation Lookaside Buffer (TLB)
Explanation: The TLB is a specialized cache for address mappings, reducing the need to access the page table frequently.
Question 15 of 50
What does the term "aliasing" mean in virtual memory?
Correct answer: A) Multiple virtual addresses point to the same physical address
Explanation: Aliasing occurs when different virtual addresses access the same physical memory, often managed carefully to avoid conflicts.
Question 16 of 50
What does a branch prediction buffer store?
Correct answer: B) Recent branch instruction outcomes
Explanation: A branch prediction buffer keeps track of recent branch results, aiding the CPU in predicting future branch behaviors to optimize performance.
Question 17 of 50
In assembly language, what term refers to a common version of an instruction treated as if it were a separate instruction?
Correct answer: D) Pseudoinstruction
Explanation: Pseudoinstructions are convenient shortcuts for more complex instructions and are often expanded by assemblers.
Question 18 of 50
Which Java feature allows class methods to be accessed without creating an instance?
Correct answer: A) Static method
Explanation: Static methods are associated with the class itself rather than any specific instance, allowing direct access without object instantiation.
Question 19 of 50
What is the purpose of a stack pointer in assembly programming?
Correct answer: B) Points to the most recent stack frame
Explanation: The stack pointer indicates the last allocated address in the stack, essential for function calls and local data storage.
Question 20 of 50
Which term describes a set of instructions that complete without any branches except at the start or end?
Correct answer: C) Basic block
Explanation: Basic blocks are sequences of instructions without branches, providing a continuous path of execution, aiding code optimization.
Question 21 of 50
What type of arithmetic does "floating-point" representation handle in a computer system?
Correct answer: C) Numbers with variable binary points
Explanation: Floating-point arithmetic allows representation of very large and very small numbers, as it uses variable positions for the binary point.
Question 22 of 50
Which hardware technique allows one thread to continue processing while another waits for data?
Correct answer: B) Multithreading
Explanation: Multithreading enables the processor to switch to another thread during stalls, improving overall resource utilization.
Question 23 of 50
What is the primary purpose of a clock cycle in CPU operations?
Correct answer: C) Measures the interval for executing instructions
Explanation: A clock cycle defines the time for one tick of the CPU clock, regulating instruction execution timing and CPU synchronization.
Question 24 of 50
Which part of a CPU holds operands and operations in dynamic scheduling?
Correct answer: B) Reservation station
Explanation: Reservation stations temporarily store instructions and data needed for execution, enabling efficient out-of-order processing.
Question 25 of 50
What is a "word" in computer architecture?
Correct answer: C) A natural unit of access, typically 32 or 64 bits
Explanation: Words are groups of bits, often 32 or 64, that represent a natural unit for data access and processing in computer systems.
Question 26 of 50
Which type of pipeline hazard occurs when required data is not yet available?
Correct answer: B) Data hazard
Explanation: Data hazards occur when an instruction depends on data not yet available, often resolved with techniques like forwarding.
Question 27 of 50
What role does the Application Binary Interface (ABI) play?
Correct answer: C) Defines OS and application program interactions
Explanation: ABI provides a standard for binary portability across systems, defining how applications interface with the operating system.
Question 28 of 50
Which floating-point issue occurs when a positive exponent exceeds the representable range?
Correct answer: A) Overflow
Explanation: Overflow happens when a floating-point number’s exponent is too large to represent, often resulting in an error.
Question 29 of 50
What type of memory technique uses small, fast memory to store recently used data for faster access?
Correct answer: A) Cache memory
Explanation: Cache memory stores frequently accessed data near the CPU, speeding up access times compared to main memory.
Question 30 of 50
In LEGv8, which register is used to manage local variables and saved registers for a function?
Correct answer: C) Frame pointer
Explanation: The frame pointer points to the stack area containing local variables and saved registers, supporting function calls.
Question 31 of 50
Which type of miss is classified as a cold-start or compulsory miss in cache memory?
Correct answer: C) Compulsory miss
Explanation: Compulsory misses occur when data is accessed for the first time and is not yet in the cache.
Question 32 of 50
What is the purpose of a finite-state machine in computing?