Question: Systems Question 7 Question 7 options: Consider the code fragment below. What value is pushed onto the stack by the call instruction? 0x400627 callq 0x4004a0

Systems

Question 7

Question 7 options:

Consider the code fragment below. What value is pushed onto the stack by the callinstruction?

0x400627 
callq 0x4004a0 x 0x40062c
mov $0x400745,%edi

Question 4 (2 points)

Given the array declaration below, which one of the following is equivalent to a[4]?

int a[10];

Question 4 options:

*( a + 4 )

*( a + 1 )

*a + 1

*(a + 16)

none of these

Question 5 (2 points)

Suppose we have declared an array: short a[10], and that a is stored in %rax and i is stored in %rdx.

Which one of the following instructions would set a[i] to be 8?

Question 5 options:

movw $8, 2(%rax, %rdx,2)

movw $8, (%rax, %rdx, 2)

movw $8, 2(%rax, %rdx)

movw $8, (%rax, %rdx, 4)

none of these

Systems Question 7 Question 7 options: Consider the code fragment below. WhatHide hint for Question 7

think hexadecimal

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!