Question: Suppose R2 = 00a2, mem[00a2] = 23 , and mem[00a3] = 59. What is the value in R1 after executing lea R1,1[R2]? Select one: a.

Suppose R2 = 00a2, mem[00a2] = 23 , and mem[00a3] = 59. What is the value in R1 after executing lea R1,1[R2]? Select one: a. 23 b. 59 c. 00a2

What is the correct translation of p := &x? Select one: a. load R1,x[R0] store R1,p[x] b. load R1,x[R0] store R1,p[R0] c. lea R1,x[R0] store R1,p[R0] d. 00a3

We need a container type that will contain n values, where n may be any positive integer. Which data structure is more appropriate? Select one: a. record

b. array

After executing R4 := &x, which instruction implements R5 := *R4? Select one: a. lea R5,x[R4] b. load R5,x[R4] c. load R5,0[R4] d. lea R5,0[R4]

b. array

Suppose p is a pointer to a record with three fields: record { fieldA : int; fieldB : int; fieldC : int; } Which of the following is a correct translation of R5 := (*p).fieldc? Select one: a. load R6,p[R0] load R5,2[R6] b. load R6,p[R0] lea R5,2[R6] c. lea R6,p[R0] load R5,2[R6] d. load R5,fieldc[p]

A procedure "myproc" was called using jal R13,myproc[R0]. Assume myproc never called any other procedure. Which of the following will return to the caller? Select one: a. jal myproc[R13] b. jump myproc[R0] c. jump 0[R13] d. jal 0[R13] e. jal myproc[R0] f. jump myproc[R13]

Which is NOT a correct statement about the call stack? Select one: a. The reason return addresses are saved on a stack is that we only need access to the return address of the most recent call b. The call stack allows access to any return address on the stack c. The call stack can be used to save registers that a procedure needs to use d. The call stack holds return addresses e. The call stack allows access only to the top return address on the stack

Which statement about the trap instruction is NOT true? Select one: a. A user program can use trap to request the operating system to do something b. trap can be used to request input/output c. trap can be used to request that the program should be terminated d. Whenever trap is executed, it always halts the program e. When a trap is executed, the three register parameters contain codes telling the operating system what the user wants to do

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!