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
What is the role of a "page table" in virtual memory?
Correct answer: B) Maps virtual addresses to physical addresses
Explanation: The page table translates virtual addresses into physical addresses, enabling efficient use of virtual memory in computing systems.
Question 2 of 50
Which operation in floating-point arithmetic can lead to an underflow error?
Correct answer: B) Dividing a small number by a large number
Explanation: Underflow occurs when a floating-point result is too small to represent, often happening during division when results are near zero.
Question 3 of 50
What type of storage device typically consists of rotating magnetic disks?
Correct answer: C) Hard Disk Drive (HDD)
Explanation: HDDs use spinning magnetic disks to store data, enabling large-capacity, nonvolatile storage but with slower access times compared to SSDs.
Question 4 of 50
In Java, which access modifier restricts method access to classes within the same package?
Correct answer: C) Protected
Explanation: The protected modifier restricts method visibility to classes within the same package or subclasses, limiting access to internal use.
Question 5 of 50
Which memory component stores frequently accessed instructions or data close to the CPU to speed up processing?
Correct answer: C) Cache memory
Explanation: Cache memory holds frequently used data close to the CPU, reducing access times and improving system performance.
Question 6 of 50
What purpose does the "program counter" (PC) serve in a computer system?
Correct answer: B) Tracks the next instruction address
Explanation: The Program Counter holds the address of the next instruction, ensuring sequential execution within a program.
Question 7 of 50
What memory structure allows a computer to run larger programs than its physical memory capacity?
Correct answer: B) Virtual memory
Explanation: Virtual memory extends physical memory by using disk space to store portions of data temporarily, enabling larger program execution.
Question 8 of 50
What is the primary purpose of the stack pointer in assembly language programming?
Correct answer: C) Marks the top of the stack
Explanation: The stack pointer tracks the top position of the stack, essential for managing local variables and function calls.
Question 9 of 50
Which addressing mode involves using a direct value within the instruction to specify data?
Correct answer: A) Immediate addressing
Explanation: Immediate addressing includes the actual data or value within the instruction, enabling fast access to constants.
Question 10 of 50
In RAID storage, what does "mirroring" refer to?
Correct answer: B) Duplicating data on multiple disks
Explanation: Mirroring involves creating identical copies of data on separate disks, increasing data redundancy and reliability.
Question 11 of 50
Which term describes the maximum transfer rate between two parts of a multiprocessor system?
Correct answer: B) Bisection bandwidth
Explanation: Bisection bandwidth measures the rate at which data can be exchanged between two halves of a multiprocessor, crucial for performance.
Question 12 of 50
What does a "clock cycle" represent in CPU operations?
Correct answer: B) The time taken for one tick of the CPU clock
Explanation: A clock cycle is the basic time unit for synchronizing operations in the CPU, governing the rate of instruction processing.
Question 13 of 50
Which cache design allows for any memory block to be stored in any cache location?
Correct answer: A) Fully associative cache
Explanation: A fully associative cache provides flexibility by allowing a block to be placed in any available cache line.
Question 14 of 50
What type of data structure is typically used for managing last-in, first-out (LIFO) data access?
Correct answer: C) Stack
Explanation: A stack operates on the LIFO principle, where the last item added is the first to be removed, useful for nested operations.
Question 15 of 50
What is the purpose of a Translation Lookaside Buffer (TLB) in memory management?
Correct answer: B) Accelerates virtual address translation
Explanation: The TLB caches recent address translations, speeding up access to memory by reducing page table lookups.
Question 16 of 50
Which technique in assembly language uses repeated copies of loop bodies to improve performance?
Correct answer: B) Loop unrolling
Explanation: Loop unrolling duplicates loop bodies, reducing the overhead of loop control operations and enhancing performance.
Question 17 of 50
What does "speculation" involve in CPU instruction processing?
Correct answer: B) Predicting an instruction's outcome to reduce dependency
Explanation: Speculation involves guessing an outcome to eliminate dependencies, potentially speeding up processing in pipelined CPUs.
Question 18 of 50
What does the "issue packet" contain in a multiple-issue CPU design?
Correct answer: B) The set of instructions launched in one clock cycle
Explanation: The issue packet includes all instructions issued in a single cycle, helping achieve multiple-instruction execution.
Question 19 of 50
What is a "control hazard" in pipeline architecture?
Correct answer: C) Delay due to branch instructions
Explanation: Control hazards arise when the pipeline’s flow is disrupted by branch instructions, leading to potential delays.
Question 20 of 50
Which register tracks the address of the instruction currently being executed?
Correct answer: B) Program counter
Explanation: The program counter (PC) holds the address of the current instruction, ensuring correct instruction sequencing.
Question 21 of 50
What term describes a storage technique where data blocks are alternated across multiple disks?
Correct answer: B) Striping
Explanation: Striping distributes data across disks, enabling faster access by parallelizing read and write operations.
Question 22 of 50
In LEGv8, what register holds the return address after a function call?
Correct answer: C) Link register
Explanation: The link register (LR) in LEGv8 stores the return address for function calls, allowing the program to resume after execution.
Question 23 of 50
What is the purpose of "prefetching" in cache memory?
Correct answer: B) To load data before it is needed
Explanation: Prefetching anticipates data access patterns, loading data into cache in advance to reduce retrieval delays.
Question 24 of 50
What Java keyword makes a method accessible only to the same class and subclasses?
Correct answer: D) Protected
Explanation: Protected restricts access to the same package or subclasses, controlling method visibility within Java applications.
Question 25 of 50
What is the primary purpose of a "branch target buffer"?
Correct answer: D) Predicts destination addresses for branch instructions
Explanation: The branch target buffer stores likely destination addresses, enabling faster execution of branch instructions.
Question 26 of 50
In computer architecture, what is a "data race"?
Correct answer: A) Multiple threads accessing the same location with at least one write
Explanation: A data race occurs when threads access the same memory location simultaneously, potentially causing unpredictable results.
Question 27 of 50
Which Java component is responsible for interpreting Java bytecode?
Correct answer: C) JVM (Java Virtual Machine)
Explanation: The JVM interprets Java bytecode, allowing platform-independent execution of Java applications.
Question 28 of 50
What does a "guard bit" contribute to in floating-point arithmetic?
Correct answer: C) Improving rounding accuracy
Explanation: Guard bits improve rounding by holding extra precision during intermediate calculations in floating-point operations.
Question 29 of 50
What type of memory typically holds the operating system and applications in use?
Correct answer: A) DRAM
Explanation: DRAM, a form of main memory, stores active programs and the operating system, enabling fast access by the CPU.
Question 30 of 50
What term describes a branch that causes the program counter to move to a new address?
Correct answer: A) Branch taken
Explanation: When a branch is taken, the program counter (PC) jumps to a new address, altering the normal instruction flow.
Question 31 of 50
What does "pipelining" allow a CPU to do with instructions?
Correct answer: B) Overlap instruction execution stages
Explanation: Pipelining divides instruction execution into stages, allowing multiple instructions to be in different stages simultaneously.
Question 32 of 50
What operation does the logical OR perform in binary logic?
Correct answer: C) Outputs 1 if at least one input is 1
Explanation: The OR operation results in a 1 if any input is 1, making it useful in logical evaluations and conditions.
Question 33 of 50
In assembly language, what term refers to an instruction representation close to machine code?
Correct answer: C) Assembly language
Explanation: Assembly language provides a symbolic, human-readable version of machine code instructions, simplifying low-level programming.
Question 34 of 50
What does the term "multithreading" refer to in computing?
Correct answer: C) Running multiple threads within a single process
Explanation: Multithreading allows a process to handle multiple threads, increasing efficiency and responsiveness in applications.
Question 35 of 50
Which type of branch prediction uses runtime information for predictions?
Correct answer: B) Dynamic branch prediction
Explanation: Dynamic branch prediction leverages runtime data to make more accurate predictions about branch outcomes, improving pipeline efficiency.
Question 36 of 50
What term describes a block in memory hierarchy that holds data recently accessed by the processor?
Correct answer: C) Cache line
Explanation: A cache line is a block of memory stored in cache, optimized for storing data likely to be accessed in the near future.
Question 37 of 50
What does an "accumulator" refer to in early computing?
Correct answer: C) An archaic term for a register
Explanation: The term "accumulator" was used for registers in early computers, reflecting its role in accumulating results of operations.
Question 38 of 50
In a multiprocessor system, what does "weak scaling" measure?
Correct answer: A) Speed-up with increased problem size proportional to processors
Explanation: Weak scaling assesses performance when both problem size and processor count grow, maintaining a balanced workload.
Question 39 of 50
What is the primary role of "control" in a CPU?
Correct answer: B) Directs data flow according to program instructions
Explanation: The control unit sends signals to guide data flow, ensuring instructions are executed as directed by the program.
Question 40 of 50
Which memory type is volatile and requires periodic refreshing to retain data?
Correct answer: A) DRAM
Explanation: DRAM requires regular refresh cycles to maintain data, unlike nonvolatile memory types that retain data without power.
Question 41 of 50
What memory management technique uses portions of main memory to act as "caches" for disk data?
Correct answer: C) Virtual memory
Explanation: Virtual memory simulates additional memory by storing portions of data on disk, providing a flexible memory management solution.
Question 42 of 50
What Java keyword allows direct access to a method from the class itself rather than an instance?
Correct answer: B) Static
Explanation: Static methods belong to the class itself, not instances, allowing direct access without creating objects.
Question 43 of 50
Which RAID level combines both striping and mirroring for redundancy and speed?
Correct answer: D) RAID 10
Explanation: RAID 10 combines mirroring for redundancy with striping for speed, offering high performance and fault tolerance.
Question 44 of 50
What type of pipeline stall is commonly referred to as a "bubble"?
Correct answer: C) Pipeline stall
Explanation: A bubble is a delay in pipeline processing, typically inserted to resolve hazards, ensuring smooth instruction execution.
Question 45 of 50
What operation does an ALU perform when handling subtraction?
Correct answer: B) Inverts one operand and adds
Explanation: The ALU uses two’s complement to handle subtraction by inverting the second operand and adding it to the first.
Question 46 of 50
What is the role of a "pseudoinstruction" in assembly language?
Correct answer: C) Simplifies programming by representing complex instructions
Explanation: Pseudoinstructions are high-level representations of complex instructions, making assembly language easier to use.
Question 47 of 50
In floating-point notation, which component holds the value between 0 and 1?
Correct answer: B) Mantissa
Explanation: The mantissa, or fraction, holds the significant part of the floating-point number, typically a value between 0 and 1.
Question 48 of 50
What is a "branch and link" instruction designed to do in assembly programming?
Correct answer: C) Branch to an address and save the return address
Explanation: Branch and link instructions jump to a new address and store the return address, supporting function calls in programs.
Question 49 of 50
What is the main function of a "process" in computing?
Correct answer: C) Contains one or more threads, an address space, and system state
Explanation: A process encapsulates program execution, containing threads, memory space, and other system resources.
Question 50 of 50
Which component in virtual memory systems speeds up address translation by caching page mappings?
Correct answer: C) Translation Lookaside Buffer (TLB)
Explanation: The TLB caches page table entries, expediting virtual-to-physical address translation and improving memory access speed.
Set 4 complete
You scored 0%
0 correct out of 0 answered (50 questions in this set).