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
What is the fundamental challenge that necessitates the use of different instruction formats in RISC-V?
Question 2 of 40 Quiz ID: q2
Which RISC-V instruction format is used for arithmetic operations that utilize three registers?
Question 3 of 40 Quiz ID: q3
An I-type instruction's immediate field is how many bits wide?
Question 4 of 40 Quiz ID: q4
What is the primary purpose of the U-type instruction format?
Question 5 of 40 Quiz ID: q5
How is the `lui t1, 0x70070` instruction correctly described?
Question 6 of 40 Quiz ID: q6
Why can't a single RISC-V instruction load an arbitrary 32-bit immediate value (e.g., 0x700707FF) into a register?
Question 7 of 40 Quiz ID: q7
What two instructions are typically used to load the 32-bit value 0x000707FF into register t0?
Question 8 of 40 Quiz ID: q8
How can the value 0x0000FFFF be loaded into a register using `lui` and `addi`?
Question 9 of 40 Quiz ID: q9
What is a primary real-world consideration that leads to the design of a more complex ISA like RISC-V instead of a simpler one?
Question 10 of 40 Quiz ID: q10
What is the purpose of a pseudo-instruction in assembly language?
Question 11 of 40 Quiz ID: q11
Which base instruction is the `nop` (No Operation) pseudo-instruction typically equivalent to?
Question 12 of 40 Quiz ID: q12
What is a key difference between registers and main memory from a programmer's perspective?
Question 13 of 40 Quiz ID: q13
In the instruction `lw x5, 4(x10)`, what is the role of register x10?
Question 14 of 40 Quiz ID: q14
Which instruction format is used for the `sw` (Store Word) instruction?
Question 15 of 40 Quiz ID: q15
In the S-type format, why is the 12-bit immediate value split into two non-adjacent fields (imm[11:5] and imm[4:0])?
Question 16 of 40 Quiz ID: q16
What is the advantage of using the `auipc` (Add Upper Immediate to PC) instruction?
Question 17 of 40 Quiz ID: q17
How is the `la a0, A` (Load Address) pseudo-instruction typically expanded?
Question 18 of 40 Quiz ID: q18
If `auipc a0, 0x2` is executed at PC = 0x000000d8, what value will be placed in register a0?
Question 19 of 40 Quiz ID: q19
Which RISC-V instruction type is used for conditional branch instructions like `beq`?
Question 20 of 40 Quiz ID: q20
In the B-type format, how is the 13-bit immediate offset encoded?
Question 21 of 40 Quiz ID: q21
What does the instruction `beq rs1, rs2, imm` do?
Question 22 of 40 Quiz ID: q22
What is the size of the opcode field in all RISC-V base instructions?
Question 23 of 40 Quiz ID: q23
The `funct3` field in RISC-V instructions is primarily used for:
Question 24 of 40 Quiz ID: q24
Which field is common to both R-type and I-type instructions?
Question 25 of 40 Quiz ID: q25
What is the maximum positive value that can be represented in the 12-bit immediate field of an I-type instruction before sign-extension?
Question 26 of 40 Quiz ID: q26
The `jal` (Jump and Link) instruction uses which format?
Question 27 of 40 Quiz ID: q27
What problem does the U-type instruction format directly help solve?
Question 28 of 40 Quiz ID: q28
In the context of memory access, what does the term 'byte addressable' mean?
Question 29 of 40 Quiz ID: q29
What is the key difference between `lh` (Load Halfword) and `lhu` (Load Halfword Unsigned)?
Question 30 of 40 Quiz ID: q30
Why might an assembler generate different immediate values for two identical `la a0, A` pseudo-instructions in the same program?
Question 31 of 40 Quiz ID: q31
What is the effective address calculated by the instruction `sw x5, 4(x10)`?
Question 32 of 40 Quiz ID: q32
Which of the following is NOT a reason for the complexity of RISC-V's instruction encoding?
Question 33 of 40 Quiz ID: q33
What is the purpose of the `funct7` field in the R-type instruction format?
Question 34 of 40 Quiz ID: q34
What is the maximum branch offset range achievable with the 13-bit immediate in a B-type instruction?
Question 35 of 40 Quiz ID: q35
The `ret` (Return) pseudo-instruction is equivalent to:
Question 36 of 40 Quiz ID: q36
Which instruction would you use to load a byte from memory and ensure the upper 24 bits of the destination register are cleared?
Question 37 of 40 Quiz ID: q37
What is the role of the `rd` field in most RISC-V instruction formats?
Question 38 of 40 Quiz ID: q38
The immediate value in a U-type instruction is positioned in the instruction word:
Question 39 of 40 Quiz ID: q39
What is the fundamental trade-off illustrated by the need for pseudo-instructions like `li`?
Question 40 of 40 Quiz ID: q40
Which characteristic is common to all instruction formats in the RISC-V base ISA?

Quiz Summary

Review your answers before submitting

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