Unit 1 - Practice Quiz

CSE211

1 In the basic computer instruction format, if the mode bit (I) is 1, what type of addressing is used?

A. Direct Addressing
B. Indirect Addressing
C. Immediate Addressing
D. Register Addressing

2 Which register holds the address of the next instruction to be read from memory after the current instruction is executed?

A. Instruction Register (IR)
B. Accumulator (AC)
C. Program Counter (PC)
D. Data Register (DR)

3 What is the size of the Accumulator (AC) in a basic computer with a 16-bit instruction code?

A. 8 bits
B. 12 bits
C. 16 bits
D. 32 bits

4 Which component is used to select one of the registers to transfer information onto the common bus?

A. Decoder
B. Multiplexer (MUX)
C. Encoder
D. Flip-Flop

5 In a common bus system with 8 registers, how many selection lines are required for the multiplexers?

A. 1
B. 2
C. 3
D. 8

6 What is the Effective Address (EA) in the context of instruction codes?

A. The address of the instruction itself
B. The address of the operand in a computation-type instruction
C. The content of the Accumulator
D. The address of the next instruction

7 Which logic gate is typically used to construct a three-state buffer?

A. AND gate
B. OR gate
C. NAND gate
D. Buffer gate with a control input

8 The operation represents:

A. Writing to memory
B. Reading from memory
C. Clearing the Data Register
D. Incrementing the Address Register

9 In the basic computer, an instruction is stored in the Instruction Register (IR). Which bits of the IR represent the Operation Code (Opcode)?

A. Bits 0 - 11
B. Bits 12 - 14
C. Bit 15
D. Bits 0 - 15

10 A Register Reference instruction is identified by which of the following conditions?

A.
B. and
C. and
D.

11 The Sequence Counter (SC) is used to:

A. Count the number of instructions executed
B. Generate timing signals
C. Store the address of the next instruction
D. Perform arithmetic operations

12 Which timing signal is active during the Fetch phase of the instruction cycle where ?

A.
B.
C.
D.

13 During the Decode phase (), which of the following operations occurs?

A.
B.
C. Decoding of Opcode and Address calculation
D. Execution of the ALU operation

14 The hexadecimal code 7800 in a basic computer corresponds to which instruction?

A. CLA (Clear Accumulator)
B. CMA (Complement Accumulator)
C. HLT (Halt)
D. INC (Increment Accumulator)

15 Which register is assumed to receive the result of an arithmetic operation in a One-Address instruction format?

A. Memory
B. Program Counter
C. Accumulator (AC)
D. Instruction Register

16 What is the function of the ISZ (Increment and Skip if Zero) instruction?

A. Increments PC if AC is zero
B. Increments memory word and skips next instruction if result is zero
C. Increments AC and branches
D. Skips the next instruction unconditionally

17 The BSA (Branch and Save Return Address) instruction is primarily used for:

A. Conditional branching
B. Implementing loops
C. Subroutine calls
D. Input/Output operations

18 Which micro-operation clears the Sequence Counter (SC) to 0?

A.
B. input of SC is activated
C.
D. All of the above depending on the instruction completion

19 In the Little Man Computer (LMC) model, the Mailbox represents which hardware component?

A. CPU
B. Memory (RAM)
C. Input Device
D. Output Device

20 In LMC, the mnemonic STA corresponds to:

A. Stop the program
B. Subtract from Accumulator
C. Store Accumulator contents to memory
D. Input to Accumulator

21 The Input Register (INPR) usually holds:

A. 8-bit alphanumeric input information
B. 16-bit address information
C. Control signals
D. Arithmetic results

22 Which flag is set to 1 when new information is available in the input device?

A. FGO (Output Flag)
B. FGI (Input Flag)
C. IEN (Interrupt Enable)
D. R (Interrupt Flip-flop)

23 What is the purpose of the IEN (Interrupt Enable) flip-flop?

A. To indicate an error has occurred
B. To store the return address
C. To allow or disallow the programmer to control interrupts
D. To signal the end of a program

24 Which condition triggers the Interrupt Cycle in a basic computer?

A.
B.
C.
D.

25 During an interrupt cycle, the return address (content of PC) is typically stored at:

A. Memory location 0
B. The top of the stack
C. A special register named TR
D. Memory location 100

26 Which register is NOT connected directly to the common bus system?

A. DR (Data Register)
B. AC (Accumulator)
C. INPR (Input Register)
D. OUTR (Output Register)

27 What happens during the micro-operation ?

A. The program counter is cleared.
B. The program counter is incremented to point to the next instruction.
C. The instruction is decoded.
D. The instruction is executed.

28 Which instruction typically implies ?

A. ADD
B. LDA
C. AND
D. BUN

29 In the instruction cycle state diagram, what determines the transition from the Decode phase to the Indirect phase?

A.
B. and
C.
D.

30 If the BUN (Branch Unconditionally) instruction is executed, what happens to the PC?

A.
B. Effective Address
C.
D. remains unchanged

31 What is the purpose of the Temporary Register (TR) in the basic computer?

A. To hold temporary data during processing
B. To store the instruction code
C. To interface with I/O devices
D. To count clock pulses

32 The Little Man Computer (LMC) uses which number system for its operation visible to the user?

A. Binary
B. Hexadecimal
C. Decimal
D. Octal

33 The control unit of a basic computer acts as the:

A. Memory storage
B. Nerve center handling timing and signals
C. Power supply
D. Arithmetic calculator

34 Hardwired control units are implemented using:

A. Control Memory (ROM)
B. Software micro-routines
C. Logic gates, flip-flops, and decoders
D. Cloud servers

35 Which signal controls the Read operation from Memory?

A. Write
B. Read
C. Load
D. Clear

36 In a Direct Addressing instruction (), the address part of the instruction equals:

A. The pointer to the address
B. The Effective Address (EA)
C. The operand itself
D. Zero

37 What does the LMC mnemonic BRP stand for?

A. Branch if Positive
B. Branch if Previous
C. Break Program
D. Branch Return Pointer

38 The ION instruction in the basic computer:

A. Turns the computer On
B. Sets the Interrupt Enable (IEN) flip-flop to 1
C. Inputs a Number
D. Initiates Output Node

39 If and , the instruction bits 0-11 specifying the I/O operation are executed when?

A.
B.
C.
D.

40 Which component stores the result of the ADD micro-operation ?

A. DR
B. AC
C. Memory
D. PC

41 The Cout (Carry Out) from the Adder-Logic circuit is usually transferred to:

A. The E (Extended Accumulator) flip-flop
B. The PC
C. The Memory
D. The INPR

42 Micro-operations are:

A. High-level language commands
B. Elementary operations performed on data in registers
C. Operating system calls
D. Complex mathematical algorithms

43 In the LMC, the INP instruction:

A. Prints the accumulator value
B. Takes user input and stores it in the Accumulator
C. Takes user input and stores it in Memory
D. Increments the pointer

44 The decoder outputs through are generated based on:

A. The Sequence Counter (SC)
B. The Opcode bits of IR (bits 12-14)
C. The Address bits of AR
D. The Mode bit

45 Which of the following is NOT a phase of the instruction cycle?

A. Fetch
B. Decode
C. Execute
D. Compile

46 A Bus Grant signal is part of:

A. The ALU
B. The Memory array
C. Arbitration logic in a bus system
D. The Instruction Register

47 The SKI (Skip on Input Flag) instruction checks:

A. If
B. If
C. If
D. If

48 To perform a subtraction in the basic computer using the Adder/Logic circuit, the computer usually performs:

A. Direct hardware subtraction
B. 2's complement addition
C. Multiplication by -1
D. Bitwise OR

49 If the load (LD) input of a register is 0, what happens when the clock pulse arrives?

A. The register is cleared
B. The register loads data from the bus
C. The register content remains unchanged
D. The register increments

50 What is the primary motivation for using a Common Bus System?

A. To increase the number of registers
B. To reduce the number of wires and connections between registers
C. To speed up the clock frequency
D. To eliminate the need for memory