# Multiple Choice, nine part question involving memory

Use the following to answer questions 1-1 and 1-2.

Given the following memory values and a one-address machine with an accumulator, what values do the following instructions load into the accumulator?

Word 20 contains 40.

Word 30 contains 50.

Word 40 contains 60.

Word 60 contains 20.

Register 1 contains 10.

Register 2 contains 30.

1-1 LOAD INDIRECT 40

A. 70

B. 50

C. 40

D. 60

E. 20

F. None of the above is correct.

1-2 LOAD INDEXED 1 20 (assume: the instruction format is LOAD INDEXED R A)

A. 40

B. 50

C. 60

D. 70

E. 20

F. None of the above is correct.

1-3 Vector computation machines use

A. vector superscalar.

B. vector directing registers.

C. vector registers.

D. vector cache memory to handle the math. operations.

E. none of the above is correct.

1-4 A typical overlay structure contains

A. overlay bit for running each phase.

B. overlay cache memory to increase the CPU performance.

C. overlay registers to store scalars to increase the CPU performance.

D. overlay control memory for storing instructions.

E. overlay area for running each phase.

1-5 Choose the best one:

A. MMU means memory mixed unit which mixes the virtual addresses with the physical memory addresses.

B. MMU is disposed inside main memory for efficiently addressing a word to be fetched.

C. MMU maps the virtual addresses onto the physical memory addresses.

D. MMU is disposed inside I/O module for efficiently addressing a word to be fetched.

E. MMU maps the physical memory addresses onto the virtual addresses.

1-6 To execute programs n, o, p, q, r, s, system A needs 300, 400, 500, 600, 700, 800 seconds respectively; system B needs 500, 600, 700, 800, 900, 1000 seconds respectively; system C needs 300, 400, 500, 1000, 1500, 800 seconds respectively; and system D needs 600, 400, 500, 900, 1500, 800 seconds respectively. What is the geometric means for system B normalized to A:

A. 0.815751

B. 0.714754

C. 1.376521

D. 0.715753

E. None of the above is correct.

1-7 Choose the best one:

A. If a positive integer is right rotated K bits, the result is the original number divided by 2k.

B. If a positive integer is left shifted K bits, the result, barring overflow, is the original number divided by 2k.

C. If a positive integer is right shifted K bits, the result is the original number divided by 2k-1.

D. If a positive integer is right shifted (K-1) bits, the result is the original number divided by 2k.

E. None of the above is correct.

1-8 A machine has a 32-bit byte-addressable virtual address space. The page size is 8KB. How many pages of virtual address space exist?

A. 724,288

B. 399,288

C. 624,288

D. 499,288

E. 524,288

1-9 Superscalar and Superpipelined questions:

Compare the time (in base cycles) needed for executing 180 instructions in three approaches (Base Machine; Superscalar; and Superpipelined). The Superscalar and Superpipelined approaches are of degree 9 and use the pipeline having 5 stages: instruction fetch, operation decode, operand calculation, operation execution, and result write back. Choose the best one:

A. Base Machine requires: 180 cycles

B. Superscalar requires: 28 cycles

C. Superscalar requires: 26 cycles

D. Superpipelined requires: 24 + 8/9 cycles

E. None of the above is correct.