Mock Quiz Hub

Mock Quiz Hub

Recent Updates
Added: OS Mid 1 Quiz
Added: OS Mid 2 Quiz
Added: OS Lab 1 Quiz
Time: 00:00

Quiz

Navigate through questions using the controls below

0%
Question 1 of 40 Quiz ID: q1
In RV32, why is it a challenge to load a 32-bit immediate value into a register with a single instruction?
Question 2 of 40 Quiz ID: q2
Which RISC-V instruction format is primarily used for arithmetic operations that involve three registers?
Question 3 of 40 Quiz ID: q3
What is the purpose of the 'funct3' and 'funct7' fields in RISC-V instruction encoding?
Question 4 of 40 Quiz ID: q4
An instruction with the opcode '0010011' likely belongs to which format and type of instruction?
Question 5 of 40 Quiz ID: q5
What is the key difference between the 'lw' and 'lb' instructions regarding the loaded data?
Question 6 of 40 Quiz ID: q6
The 'lui' (Load Upper Immediate) instruction is crucial for building large constants. What does it do?
Question 7 of 40 Quiz ID: q7
Which pseudo-instruction sequence would correctly implement 'mv s1, s2' (copy register s2 to s1)?
Question 8 of 40 Quiz ID: q8
What is the fundamental architectural difference between Von Neumann and Harvard architectures?
Question 9 of 40 Quiz ID: q9
In the context of memory addressing, what is placed on the address bus during a read operation?
Question 10 of 40 Quiz ID: q10
What is the primary purpose of the 'auipc' (Add Upper Immediate to PC) instruction?
Question 11 of 40 Quiz ID: q11
How is the 'la' (Load Address) pseudo-instruction typically expanded by the assembler?
Question 12 of 40 Quiz ID: q12
A B-type instruction like 'beq' changes the program flow based on a register comparison. How does it calculate the target address?
Question 13 of 40 Quiz ID: q13
Why is the immediate value in a B-type instruction encoded in the seemingly scrambled order [12|10:5|4:1|11]?
Question 14 of 40 Quiz ID: q14
What is the range of addresses a B-type branch instruction can reach from the current PC?
Question 15 of 40 Quiz ID: q15
What is the key functional difference between the 'jal' and 'jalr' instructions?
Question 16 of 40 Quiz ID: q16
How is the 'ret' (return from function) pseudo-instruction implemented?
Question 17 of 40 Quiz ID: q17
What is the purpose of the 'linking' aspect in the 'jal' and 'jalr' instructions?
Question 18 of 40 Quiz ID: q18
Which two instructions are combined to jump to an arbitrary 32-bit absolute address?
Question 19 of 40 Quiz ID: q19
What is the effective range of a jump using the J-type 'jal' instruction?
Question 20 of 40 Quiz ID: q20
The Stored Program Concept is a fundamental principle of most modern computers. What does it mean?
Question 21 of 40 Quiz ID: q21
Which bitwise operation and immediate value would flip the case of an ASCII letter (e.g., 'A' to 'a')?
Question 22 of 40 Quiz ID: q22
What is the purpose of the 'sext.w' (Sign Extend Word) pseudo-instruction?
Question 23 of 40 Quiz ID: q23
Which instruction sequence would set register 't0' to 1 if register 'a0' is equal to zero?
Question 24 of 40 Quiz ID: q24
What is the valid range for the 12-bit immediate operand in an 'addi' instruction?
Question 25 of 40 Quiz ID: q25
Which addressing mode is used by the 'lw rd, offset(rs1)' instruction?
Question 26 of 40 Quiz ID: q26
What is the primary hazard of allowing data and instructions to share the same memory (Von Neumann architecture)?
Question 27 of 40 Quiz ID: q27
The 'bge' (Branch if Greater Than or Equal) instruction interprets its operands as:
Question 28 of 40 Quiz ID: q28
What is the role of the 'opcode' field in a RISC-V instruction?
Question 29 of 40 Quiz ID: q29
Which instruction would be most efficient for setting register 'a0' to the constant value 0x12345000?
Question 30 of 40 Quiz ID: q30
In the instruction 'sw rs2, offset(rs1)', which fields in the S-type format hold the components of the 12-bit 'offset'?
Question 31 of 40 Quiz ID: q31
What does the 'neg' (Negate) pseudo-instruction do, and how is it implemented?
Question 32 of 40 Quiz ID: q32
Why must instructions be aligned on specific address boundaries (e.g., 4-byte for 32-bit instructions)?
Question 33 of 40 Quiz ID: q33
Which of these is NOT a valid reason for RISC-V's choice of variable immediate encoding across formats?
Question 34 of 40 Quiz ID: q34
What is the function of the 'funct7' field in an R-type instruction like 'sub'?
Question 35 of 40 Quiz ID: q35
The 'jalr' instruction's target address calculation has one important constraint. What is it?
Question 36 of 40 Quiz ID: q36
Which pair of instructions is crucial for implementing position-independent code (PIC) in RISC-V?
Question 37 of 40 Quiz ID: q37
What is the purpose of the 'nop' (No Operation) instruction, and what is its canonical encoding in RISC-V?
Question 38 of 40 Quiz ID: q38
In the context of the lecture's loop example ('bne t0, t1, repeat'), what is the role of the 'ret' instruction?
Question 39 of 40 Quiz ID: q39
Which mask and operation would set bits 2 and 4 (0-indexed from LSB) of a register to 1, regardless of their previous state?
Question 40 of 40 Quiz ID: q40
What is the core trade-off expressed in the RISC-V ISA design regarding instruction encoding?

Quiz Summary

Review your answers before submitting

40
Total Questions
0
Answered
40
Remaining
00:00
Time Spent