RISC-V: Instruction

RISC-V: Instruction

University

7 Qs

quiz-placeholder

Similar activities

ARQUITECTURA DE EQUIPOS INFORMÁTICO

ARQUITECTURA DE EQUIPOS INFORMÁTICO

University

11 Qs

Quiz week 5 Raid

Quiz week 5 Raid

University

10 Qs

Instruction Set Architecture

Instruction Set Architecture

University

10 Qs

Quiz by Mycomputerguide

Quiz by Mycomputerguide

3rd Grade - University

10 Qs

Arquitectura Interna del Procesador

Arquitectura Interna del Procesador

University

10 Qs

Списки в Прологе

Списки в Прологе

University

10 Qs

Basic C Knowledge Exercise

Basic C Knowledge Exercise

University

10 Qs

CO-Quiz1

CO-Quiz1

University

10 Qs

RISC-V: Instruction

RISC-V: Instruction

Assessment

Quiz

Computers

University

Medium

Created by

Adnan Maruf

Used 3+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many registers are there in RISC-V?

31

16

64

32

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In RISC-V what is the instruction for the addition operation (i.e., you want to calculate the summation)

sub

addw

ld

add

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what does the following instruction do?
add a, b, c

b=a+c

a=b+c

c=a+b

a=a+b

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If variables x, y, and z are mapped to register x2, x3, and x4, respectively, then what would be appropriate RISC-V instruction for the following?
y = x - z

add x2, x1, x3

sub x2, x1, x3

add x3, x2, x4

sub x3, x2, x4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the byte address of the 5th element of an array that stores words?

32

40

20

64

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Let's assume A[10] is an array (double word), and the address of A[0] is stored in register x5; then, how do we load the 10th element of the array into x6?

ld x5, 10(x6)

ld x6, 10(x5)

ld x6, x5[80]

ld x6, 80(x5)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which instruction to use to store a double word in RISC-V?

sd

lw

sw

ld