Question: 1. Using a stack architecture, the following sequence of operations shown solves which of the following programming expressions? Push X Push Y Mult Push W

1.

Using a stack architecture, the following sequence of operations shown solves which of the following programming expressions?

Push X

Push Y

Mult

Push W

Push U

Mult

Add

Pop Z

A. Z = X+Y+W+U

B. X = XY + WZ

C. Z = (X+Y) (W+U)

D. Z = XY + WU

2. In a system implementing virtual memory , given a virtual address space of 32K bytes, physical memory of 4K, and a page size of 2K,what is the total number of pages in the system?

A. 32 B. 4 C. 16 D. 8

3. In virtual memory systems, when a needed page is not found in main memory (physical memory), a condition known as a _________ _______ is generated.

A. page fault B. virtual mishit C. page miss D. RAM miss

4.

Given that Register 1 (R1) contains the value 800, and memory looks as follows:

Location Content(value)

800 900

900 1000

1000 500

1100 600

1600 700

Assuming an indexed addressing scheme, what is the value loaded into the accumulator when the instruction LOAD 800 is executed?

[Note: All values are decimal]

A. 700 B. 800 C. 900 D. Zero

5.

Given that Register 1 (R1) contains the value 900, and memory looks as follows:

Location Content(value)

800 123

900 1000

1000 600

1100 600

1600 800

Assuming an immediate addressing scheme, what is the value loaded into the accumulator when the instruction LOAD 800 is executed?

[Note: All values are decimal]

A.

800

B.

1000

C.

900

D.

600

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!