Unit 2: Computer Organization - Practice Quiz

CSE211 — Computer Organization And Design 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 An instruction code is a group of bits that instruct the computer to perform a specific operation. Which part of the instruction code specifies the operation to be performed?

Instruction codes Easy
A. Operation code
B. Accumulator
C. Address field
D. Program counter

2 In a basic computer, an instruction code is generally divided into how many main parts?

Instruction codes Easy
A. Five parts
B. One part
C. Two parts
D. Four parts

3 The number of bits required for the operation code depends on the total number of what?

Instruction codes Easy
A. Memory words
B. Registers present
C. Input devices
D. Operations available

4 Which register holds the address of the next instruction to be executed?

Computer registers Easy
A. Accumulator (AC)
B. Program Counter (PC)
C. Data Register (DR)
D. Input Register (INPR)

5 In the basic computer, which register is used to hold an operand read from memory?

Computer registers Easy
A. Temporary Register (TR)
B. Address Register (AR)
C. Program Counter (PC)
D. Data Register (DR)

6 Which register in the basic computer holds the address of a memory location being accessed?

Computer registers Easy
A. Address Register (AR)
B. Output Register (OUTR)
C. Accumulator (AC)
D. Instruction Register (IR)

7 Which register holds the instruction that is currently being executed?

Computer registers Easy
A. Address Register (AR)
B. Data Register (DR)
C. Instruction Register (IR)
D. Program Counter (PC)

8 What is the main purpose of a common bus system in a computer?

Common bus system Easy
A. To transfer data among registers and memory
B. To perform arithmetic operations
C. To store instructions permanently
D. To decode operation codes

9 In a common bus system, only one register can place its data on the bus at a time. This is controlled by what?

Common bus system Easy
A. Selection lines
B. Clock frequency
C. Memory size
D. Interrupt flag

10 If a common bus has selection lines , how many registers or units can be selected?

Common bus system Easy
A. 4
B. 8
C. 3
D. 16

11 The basic computer instructions are generally classified into how many categories?

Computer instructions Easy
A. Four categories
B. Five categories
C. Two categories
D. Three categories

12 Which type of instruction does not require a memory address to operate?

Computer instructions Easy
A. Register-reference instruction
B. Store instruction
C. Load instruction
D. Memory-reference instruction

13 A memory-reference instruction uses one bit to indicate what?

Computer instructions Easy
A. Direct or indirect addressing
B. Signed or unsigned data
C. Interrupt enable status
D. Read or write mode

14 The timing signals in a basic computer are generated by which component?

Timing and control Easy
A. Input register
B. Sequence counter and decoder
C. Memory unit
D. Accumulator

15 Which of the following is a type of control unit organization?

Timing and control Easy
A. Microprogrammed control
B. Bus arbitration
C. Register buffering
D. Sequential addressing

16 In timing and control, the master clock generator produces what?

Timing and control Easy
A. Data words
B. Instruction codes
C. Clock pulses
D. Memory addresses

17 The first phase of an instruction cycle is to do what?

Instruction cycle Easy
A. Fetch the instruction from memory
B. Execute the instruction
C. Handle an interrupt
D. Store the result

18 After an instruction is fetched, what is the next step in the instruction cycle?

Instruction cycle Easy
A. Decode the instruction
B. Reset the accumulator
C. Increment memory size
D. Clear the interrupt flag

19 What is the main purpose of an interrupt in a computer system?

Input-output and interrupt Easy
A. To decode operation codes
B. To store program instructions
C. To signal the CPU that a device needs attention
D. To increase clock speed

20 In the Little Man Computer (LMC) model, which component is used to perform arithmetic operations?

LMC (simulation software) Easy
A. Outbox
B. Inbox
C. Mailbox
D. Calculator (accumulator)

21 In a basic computer with a memory of 4096 words, each instruction uses a 12-bit address field and a 3-bit opcode with 1 addressing-mode bit. How many bits are unused for the memory-reference instruction format if the word size is 16 bits?

Instruction codes Medium
A. 3 bits
B. 0 bits
C. 1 bit
D. 4 bits

22 In the basic computer, the operation code (opcode) field is 3 bits wide. How many distinct memory-reference operations can be directly encoded before requiring register-reference or I/O instruction formats?

Instruction codes Medium
A. 8
B. 3
C. 16
D. 7

23 In the basic computer, the Program Counter (PC) and Address Register (AR) are both which width?

Computer registers Medium
A. 15 bits
B. 16 bits
C. 12 bits
D. 8 bits

24 Which register in the basic computer holds the instruction currently being executed?

Computer registers Medium
A. IR (Instruction Register)
B. TR (Temporary Register)
C. AC (Accumulator)
D. DR (Data Register)

25 The INPR and OUTR registers in the basic computer are how many bits wide, matching a single character?

Computer registers Medium
A. 8 bits
B. 16 bits
C. 4 bits
D. 12 bits

26 In the basic computer's common bus system with 8 registers plus memory selected by 3 bits (), which selection value places memory contents onto the bus?

Common bus system Medium
A.
B.
C.
D.

27 How many selection lines are needed to choose one of the sources connected to a common bus that links 7 registers and memory (8 sources)?

Common bus system Medium
A. 4 lines
B. 3 lines
C. 8 lines
D. 2 lines

28 In a common bus system built from multiplexers, what is the main advantage over a system with dedicated point-to-point connections between all registers?

Common bus system Medium
A. Fewer wires and reduced hardware cost
B. Higher clock frequency
C. Faster simultaneous transfers
D. Larger memory capacity

29 The instruction (clear accumulator) in the basic computer is an example of which instruction type?

Computer instructions Medium
A. Register-reference instruction
B. Branch instruction
C. Input-output instruction
D. Memory-reference instruction

30 For a memory-reference instruction, if the addressing mode bit , what type of addressing is used?

Computer instructions Medium
A. Register addressing
B. Immediate addressing
C. Direct addressing
D. Indirect addressing

31 In the basic computer, the instruction that stores the content of the accumulator into memory is:

Computer instructions Medium
A. ADD
B. STA
C. LDA
D. BSA

32 In a hardwired control unit using a decoder driven by a sequence counter (SC), how many distinct timing signals through are available?

Timing and control Medium
A. 32
B. 4
C. 8
D. 16

33 When the sequence counter (SC) is cleared with the control signal , which timing signal becomes active on the next clock?

Timing and control Medium
A.
B. the last used
C.
D.

34 What is the fundamental difference between a hardwired control unit and a microprogrammed control unit?

Timing and control Medium
A. Hardwired uses fixed logic gates while microprogrammed stores control words in memory
B. Hardwired is slower than microprogrammed
C. Microprogrammed has no sequence counter
D. Hardwired cannot execute branch instructions

35 During the fetch phase, which micro-operation occurs at timing signal ?

Instruction cycle Medium
A.
B.
C.
D.

36 At timing signal of the fetch cycle, which two micro-operations occur simultaneously?

Instruction cycle Medium
A. and
B. and
C. and
D. and

37 After decoding at , if the instruction is a memory-reference type with , what happens at ?

Instruction cycle Medium
A.
B. (fetch effective address)
C.
D.

38 In the basic computer, the interrupt enable flip-flop IEN is set and cleared by which pair of instructions?

Input-output and interrupt Medium
A. INP and OUT
B. ION and IOF
C. SKI and SKO
D. STA and LDA

39 When an interrupt occurs in the basic computer, the return address (contents of PC) is stored in memory location:

Input-output and interrupt Medium
A. The address in AR
B. Address
C. The top of a hardware stack
D. Address

40 In the Little Man Computer (LMC), the instruction with opcode performs which operation?

LMC (simulation software) Medium
A. BRANCH always to mailbox
B. STORE the accumulator into mailbox
C. LOAD the value from mailbox into the accumulator
D. ADD mailbox to the accumulator

41 In the basic computer, an instruction code has a 3-bit opcode field, allowing combinations. Yet the machine supports far more than 8 operations. How is this achieved without expanding the opcode field?

Instruction codes Hard
A. Memory-reference instructions borrow unused bits from the program counter
B. Opcode is decoded together with the mode bit and the remaining address bits to specify register-reference and I/O instructions
C. The accumulator is time-multiplexed to store an extended 6-bit opcode during fetch
D. The sequence counter appends 3 extra bits to every opcode automatically

42 In Mano's basic computer, the memory has words of bits each. What are the required bit-widths of the Address Register () and the Data Register (), respectively?

Computer registers Hard
A. bits and bits
B. bits and bits
C. bits and bits
D. bits and bits

43 The basic computer's common bus is controlled by three selection lines . If places contents on the bus and places memory contents on the bus, how many distinct sources can the bus select in total?

Common bus system Hard
A. Exactly sources, one per bus line
B. sources matching the address width
C. Only sources, one per selection line
D. registers/memory sources plus one idle state, i.e. combinations

44 During the fetch phase, the microoperation occurs at and at . Why can't be moved to ?

Timing and control Hard
A. The bus is reserved for output devices during
B. must first receive the address from before it can be used to read memory
C. can only be loaded on odd-numbered timing signals
D. The program counter cannot increment during

45 An indirect memory-reference instruction adds one extra timing state () compared to a direct one. If the effective-address phase for a direct instruction completes decoding at , at which timing signal does execution of an indirect memory-reference instruction typically begin?

Instruction cycle Hard
A.
B.
C.
D.

46 Consider the register-reference instruction (clear ) with hexadecimal code and (complement ) with code . What does the bit pattern reveal about how register-reference operations are encoded?

Computer instructions Hard
A. The high nibble selects the operation and the rest is ignored
B. Each of the low-order 12 bits acts as a one-hot control selecting a distinct micro-operation
C. The 12 bits form a binary-coded index into a jump table of 4096 operations
D. The operation is selected by the sum of all set bits modulo 12

47 In the interrupt cycle, the return address is stored at memory location and control branches to location . Given the microoperations and followed by , what is the purpose of setting first?

Input-output and interrupt Hard
A. So the saved return address is written into memory word before jumping to the service routine at word
B. To force the stack pointer to the top of memory
C. To disable further interrupts by clearing the address register
D. To reset the accumulator before the interrupt handler runs

48 The interrupt flip-flop is set only after both an I/O flag ( or ) and the interrupt-enable are , and additionally the current instruction cycle completes. Why is checked at the end of the execute phase rather than during fetch?

Input-output and interrupt Hard
A. To ensure the currently executing instruction finishes before the CPU services the interrupt
B. Because the flag registers are cleared automatically during fetch
C. Because can only be read during the fetch of the next instruction
D. To guarantee the interrupt overwrites before the instruction begins

49 In the Little Man Computer, the instruction with opcode is LDA and opcode is STA. A program executes LDA 90 then ADD 91 then STA 92. If mailbox holds and mailbox holds , what value ends up in mailbox ?

LMC (simulation software) Hard
A.
B.
C.
D.

50 The LMC accumulator can hold values from to . A program executes an ADD that would produce . What best describes the defined behavior in most LMC implementations?

LMC (simulation software) Hard
A. The result wraps/overflows and a flag is set, producing an undefined or truncated value beyond the 3-digit range
B. The program halts immediately with no value stored
C. The accumulator silently stores using a 4th digit
D. The value is automatically divided by 10 to fit

51 The sequence counter is cleared to at the end of each instruction. If a memory-reference execute phase for a particular instruction ends at with the microoperation containing , what timing signal will be active at the start of the very next fetch?

Timing and control Hard
A.
B.
C.
D.

52 A memory-reference instruction is encoded as in a 16-bit word. If an instruction has hexadecimal value , what are its addressing mode and opcode?

Computer instructions Hard
A. Indirect mode (), opcode
B. Direct mode (), opcode
C. Indirect mode (), opcode
D. Direct mode (), opcode

53 Suppose an operation requires transferring to over the common bus in a single clock. Which combination is required?

Common bus system Hard
A. Enable load of both and simultaneously with source
B. Select as the bus source () and enable the load input of
C. Select as the source and load
D. Place memory on the bus and load

54 For the branch instruction BUN (branch unconditionally, direct mode), execution consists solely of . Considering fetch, decode, and effective address phases, how many timing states does a direct BUN consume in total from to completion?

Instruction cycle Hard
A. states ( through )
B. states ( through )
C. states ( through )
D. states ( through )

55 A stored-program computer distinguishes data from instructions only by the phase in which a word is fetched. What consequence follows if the program counter accidentally points into a data region?

Instruction codes Hard
A. The processor raises a hardware type-mismatch exception automatically
B. The data words are interpreted as instructions and executed, likely causing erroneous or unpredictable behavior
C. Memory returns zeros because data cannot be read during fetch
D. The control unit skips the data and resumes at the next instruction region

56 The 8-bit register (input) and (output) are narrower than the 16-bit . When executing INP, the transfer is . What happens to bits during this microoperation?

Computer registers Hard
A. They are sign-extended from bit 7
B. They are left unchanged unless the microoperation explicitly clears them
C. They receive the previous contents of
D. They are automatically zero-filled every INP

57 Under programmed I/O, the CPU polls the flag in a tight loop before reading each character. Compared with interrupt-driven I/O, what is the fundamental drawback of this approach?

Input-output and interrupt Hard
A. Polling permanently disables so no interrupts can occur
B. Interrupts require more memory words than polling loops
C. The CPU wastes cycles busy-waiting on the flag instead of performing useful work
D. Programmed I/O cannot detect the flag being set at all

58 A hardwired control unit derives each control signal as a Boolean function of the decoded opcode , timing signals , and status bits. Adding a new complex instruction to such a design is difficult primarily because:

Timing and control Hard
A. The sequence counter must be widened to 16 bits
B. The combinational logic equations for many control signals must be re-derived and the circuit redesigned
C. Each new instruction requires an additional common bus
D. The instruction register can no longer decode the opcode

59 An LMC program uses opcode for I/O: is INPUT and is OUTPUT. A loop reads a number, and branches back if the accumulator is not zero using (BRZ) and (BRA). Which construct correctly implements 'keep reading numbers until a zero is entered, then halt'?

LMC (simulation software) Hard
A. LOOP: INP; HLT; BRZ LOOP
B. LOOP: INP; BRA END; BRZ LOOP; END: HLT
C. LOOP: INP; BRZ END; BRA LOOP; END: HLT
D. LOOP: OUT; BRZ LOOP; HLT

60 Consider a memory-reference AND instruction with indirect addressing. Order the following phases correctly: (1) , (2) (indirect), (3) (fetch), (4) .

Instruction cycle Hard
A.
B.
C.
D.