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
Which section of a microprocessor is primarily responsible for fetching instructions from program memory?
Question 2 of 40 Quiz ID: q2
A major concern for processor design in mobile phones, compared to laptops, is:
Question 3 of 40 Quiz ID: q3
The abstraction layer that defines the native data types, instructions, and registers available to a programmer is known as the:
Question 4 of 40 Quiz ID: q4
A processor with a large number of dedicated hardware co-processors and a complex set of instructions is characteristic of a:
Question 5 of 40 Quiz ID: q5
Which of the following is a key characteristic of a RISC architecture?
Question 6 of 40 Quiz ID: q6
The x86-64 ISA, widely used in modern desktops and laptops, originated from:
Question 7 of 40 Quiz ID: q7
What is a defining feature of the RISC-V ISA that differentiates it from many other ISAs?
Question 8 of 40 Quiz ID: q8
In the RISC-V modular scheme, what does the 'M' standard extension provide?
Question 9 of 40 Quiz ID: q9
An RV32IMAFD ISA is equivalent to:
Question 10 of 40 Quiz ID: q10
What is the primary purpose of the RISC-V 'C' extension?
Question 11 of 40 Quiz ID: q11
A fundamental challenge in encoding instructions for a 32-bit RISC architecture like RV32I is:
Question 12 of 40 Quiz ID: q12
Which RISC-V instruction format is used for register-register arithmetic operations like `add` and `xor`?
Question 13 of 40 Quiz ID: q13
How many different registers can be specified in a single RISC-V instruction using the 5-bit rs1, rs2, and rd fields?
Question 14 of 40 Quiz ID: q14
In the R-type instruction format, the 'funct7' and 'funct3' fields are primarily used to:
Question 15 of 40 Quiz ID: q15
What is the key difference between a logical right shift (srl) and an arithmetic right shift (sra)?
Question 16 of 40 Quiz ID: q16
For the instruction `add x5, x6, x7`, what is the value of the 'funct7' field in its machine code encoding?
Question 17 of 40 Quiz ID: q17
Which RISC-V instruction format is specifically designed for instructions that use a constant immediate value and one source register, such as `addi`?
Question 18 of 40 Quiz ID: q18
What is the range of the 12-bit immediate value in an I-type instruction like `addi` after it is sign-extended to 32 bits?
Question 19 of 40 Quiz ID: q19
The instruction `andi x5, x6, 4` performs a bitwise AND between the value in register x6 and the immediate value 4. How is the immediate value 4 represented in the 12-bit 'imm' field of this I-type instruction?
Question 20 of 40 Quiz ID: q20
For the instruction `andi x5, x6, -4`, what is the correct 12-bit two's complement encoding of the immediate value -4?
Question 21 of 40 Quiz ID: q21
In RISC-V, which register is hardwired to always contain the value zero?
Question 22 of 40 Quiz ID: q22
Which RISC-V register is conventionally used to hold the return address for a function call?
Question 23 of 40 Quiz ID: q23
Which set of registers (x12-x17) is conventionally used for what purpose in RISC-V?
Question 24 of 40 Quiz ID: q24
What is the operation performed by the instruction `srai s3, s4, 31`?
Question 25 of 40 Quiz ID: q25
The instruction `lw s7, 0x2C(t1)` will:
Question 26 of 40 Quiz ID: q26
Which instruction is used to transfer control to an instruction address stored in a register?
Question 27 of 40 Quiz ID: q27
The RISC-V instruction `li s1, 0xABCDEF12` is most likely:
Question 28 of 40 Quiz ID: q28
Which instruction format is used for store operations like `sw` (store word)?
Question 29 of 40 Quiz ID: q29
The U-type instruction format provides a 20-bit immediate value that is placed:
Question 30 of 40 Quiz ID: q30
Which instruction is crucial for building function calls, as it saves the return address to the `ra` register?
Question 31 of 40 Quiz ID: q31
A good ISA should last through many implementations. This promotes:
Question 32 of 40 Quiz ID: q32
The argument that a programmer only needs the assembly instructions and register map, not hardware details, assumes the ISA provides a complete:
Question 33 of 40 Quiz ID: q33
The 'A' standard extension in RISC-V provides instructions for:
Question 34 of 40 Quiz ID: q34
The RISC-V 'F' and 'D' extensions are related to:
Question 35 of 40 Quiz ID: q35
A processor designed for a low-power embedded system might use the RV32E variant because it:
Question 36 of 40 Quiz ID: q36
What is the primary functional difference between the I-type `slli` (shift left logical immediate) and the R-type `sll` (shift left logical) instruction?
Question 37 of 40 Quiz ID: q37
The `beq` (branch if equal) instruction in RISC-V uses which instruction format?
Question 38 of 40 Quiz ID: q38
The `lui` (load upper immediate) instruction is primarily used to:
Question 39 of 40 Quiz ID: q39
Which pseudoinstruction would likely be expanded into an `xori` instruction with all ones?
Question 40 of 40 Quiz ID: q40
The ability to discover available ISA extensions in a RISC-V core by reading the 'misa' CSR demonstrates the importance of:

Quiz Summary

Review your answers before submitting

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