Computer Architecture Quiz 3

How many registers does MIPS machine has ?
4
8
16
32
The length of the registers in MIPS machine
4 bits
8 bits
16 bits
32 bits
Memory location in MIPS machine starts from 0 and each register takes 4 bytes
True
False
Instruction Length in Mips machine is :
4 bits
8 bits
12 bits
32 bits
Word Length in Mips machine is :
4 bits
8 bits
12 bits
32 bits
Register names in MIPS machine starts with :
#
%
$
( ͡° ͜ʖ ͡°)
_ಠ
(◕‿◕✿)
Constant register that stores zero value, it is used in comparison operations
$zero
$v0
$a0
$t0
$sp
Return value registers. They are used to return result from the called functions
$ra
$sp
$a0
$v0
Argument registers. They are used to pass values to callee functions
$a0,
$t0
$fp
$at
$k0
Temporary registers. They are used for intermediate operations
$fp
$k0
$at
$a0
$t0
Saved registers. They are used to store permanent data.
$s0
$t0
$a0
$fp
$at
Return address register. It stores address of next instruction(in caller) to return the execution from callee to caller.
$a0
$fp
$s0
$t0
$ra
A signle line comment in Mips using :
//
/
#
/*
*/
c. X= 4 ; Y= X-20; X- >$s0 , Y-> $s1
Addi $s0,$zero,4 Subi $s1, $s0,20
Addi $s0,4,$zero Subi $s1, $s0,20
Addi $s0,4,$zero Subi $s1, 20,$s1
Addi $s0,$zero,4 Subi $s1, 20,$s1
Convert the next high level code to MIPS a. X=Y+Z ; X-> $s0, Y-> $s1, Z->$t0
Addi $s0,$s0,20
Addi $s0,$zero,4
Add $s0, $s1,$t0
Add $t0, $s1,$s0
Transfers data from Main memory to CPU.
Store
Load
Get
Set
Transfers data from CPU to Main memory.
Store
Load
Get
Set
It fetches 4 bytes from main memory to CPU
Load half word
Save half word
Load word
Load Byte
Save word
It fetches 2 bytes from main memory to CPU
Load half word
Save half word
Load word
Load Byte
Save word
It fetches 1 bytes from main memory to CPU
Load half word
Load word
Save word
Load Byte
Save half word
It stores 4 bytes from CPU in main memory
Store byte
Store half Word
Store Word
Load half Word
Load Word
It stores 2 bytes from CPU in main memory
Store byte
Store Word
Load half Word
Load Word
Store half Word
It stores 1 bytes from CPU in main memory
Store byte
Store Word
Load half Word
Load Word
Store half Word
Store Byte
It stores 8 bytes from CPU in main memory
Store Word
Store 2 Word
Store half word
None
The Jump Instruction is :
Jr Lable
J Label
Jump
Je Label
To transfer the calling from callee to caller we will use Jr instruction
True
False
Index of half word array must multiply by 4 when converting it to MIPS
True
False
Load instruction moves data from CPU to main memory
True
False
To transfer the calling from caller to callee we will use JAL instruction
True
False
To transfer the calling from callee to caller we will use Jump instruction
True
False
No need to keep the values of ………………………….. In function calling
Saved registers
Temporary registers
Return value registers
Stack pointer register
The address of caller next instruction is stored in $sp
True
False
In the branch Equal function " beq $reg1,$reg2, Label" .. If reg1 equals reg 2 we will go to next Instruction
True
False
In the branch Equal function " beq $reg1,$reg2, Label" .. If reg1 equals reg 2 we will go to label
True
False
In the branch Not Equal function " beq $reg1,$reg2, Label" .. If reg1 equals reg 2 we will go to label
True
False
In the branch Not Equal function " beq $reg1,$reg2, Label" .. If reg1 doesn't equal reg 2 we will go to label
True
False
In The Set Less Than function "slt $reg1, $reg2, $reg3" .. If reg2 < reg3 we will set reg1 to 1
True
False
In The Set Less Than function "slt $reg1, $reg2, $reg3" .. If reg2 < reg3 we will set reg1 to 0
True
False
To add a new value to system stack, we will decrease the value of $sp
True
False
To remove a value from system stack , we will increase the value of $sp
True
False
$sp points to maximum value in system stack
True
False
{"name":"Computer Architecture Quiz 3", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"How many registers does MIPS machine has ?, The length of the registers in MIPS machine, Memory location in MIPS machine starts from 0 and each register takes 4 bytes","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker