
Lab Review 2
Quiz
•
Mathematics
•
University
•
Practice Problem
•
Hard
Navin Senthil
Used 93+ times
FREE Resource
Student preview

22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of pseudo-operations (pseudo-ops) in assembly language?
They are instructions executed by the CPU.
They are assembler directives that tell the assembler where to put a program or allocate space.
They act as comments for the programmer.
They perform calculations when the program executes.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the symbol table for the following program?
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a reason we’d use the stack?
To save and restore registers
To allow for recursive subroutine calls
To allocate space for local variables
To dynamically allocate memory
4.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following are the responsibilities of the callee? Select all that apply.
JSR to the subroutine
Save and restore registers
Pushes and pops arguments
Stores return value on stack
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the problem with this callee buildup?
We should be saving space for the return value after the local variables
The registers are being saved in the incorrect order
The frame pointer is set incorrectly
Nothing, it’s perfect.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct order of stack teardown?
Callee: save return value, restore RS & R7, restore registers, RET; Caller: pop arguments, pop return value
Callee: restore registers, restore R5 & R7, save return value; Caller: RET, pop arguments, pop return value
Callee: save return value, restore R5 & R7, RET; Caller: restore registers, pop return value, pop arguments
Callee: save return value, restore registers, restore R5 & R7, RET; Caller: pop return value, pop arguments
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does R6 point to when we finish callee teardown and call RET?
Return value
Old frame pointer
First argument
Last argument
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade