Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 What are some possible ways to debug issues in MIPS Mars? Check all applicable Choose all that apply 5 points a . Error

QUESTION 1
What are some possible ways to debug issues in MIPS Mars? Check all applicable
Choose all that apply 5 points
a. Error Messages in Mars Message window
b. Executing instructions line by line by using the play all button
c. Setting break points to skip to the section with incorrect behavior
d. Using $a0 as return register to compartmentalize code sections
e. Look through the documentation/manual
QUESTION 2
After a student finishes their string length function, it is discovered that for each input, the counter adds 1 additional count. For example, if the user enters Hello, the counter outputs 6 instead of the expected 5. What is the possible cause of error?
Choose one 2 points
a. In the counting loop, the stop condition is not checking the new line value
b. In the counting loop, the stop condition is not checking for the delimiter value of 100
c. In the counting loop, the stop condition is not checking for the initializer
d. The initial read string input is set for accepting 2 characters
QUESTION 3
Why does the application exit syscall need to be placed before functions?
Choose one 2 points
a. So that the functions know how to exit
b. So that the functions are not called accidentally
c. So that the functions know how to return to the main portion of the program
d. To satisfy OOP requirements
QUESTION 4
What is JAL?
Choose one 1 point
a. Jump and link
b. Jump and loot
c. Lump and leet
d. Jump and let it go
QUESTION 5
When the function has finished its job, how does it know where to return to?
Choose one 2 points
a. The system knows automatically
b. A function call is always blocking so everything pauses while the function runs
c. The information of where to return to is saved in $ra. This information is in the form of an address value.
d. The information of where to return to is saved in $ra. This information is in the form of an instruction value.
QUESTION 6
What is JR stand for?
Choose one 1 point
a. Jump Register
b. Your Classmate
c. Jump Reminder
d. Jump Return
QUESTION 7
For this lab, if a function has a return value, where should it be placed in?
Choose one 2 points
a. Any of the $t registers
b. $ra
c. $pc
d. $v0 or $v1
e. $a0 or $a1
QUESTION 8
For this lab, if a function requires an argument value, where should it be placed in?
Choose one 2 points
a. $ra
b. Via FTP
c. $v0 or $v1
d. $a0 or $a1
e. Any of the $t registers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

Design a job advertisement.

Answered: 1 week ago