WGU C952 PA 2 questions with verified answers
A program runs alone on a CPU. The CPU clock rate is 3e9 cycles per second, i.e., 3
GHz. It takes the CPU 15e9 clock cycles to complete the program. The CPU clock
cycle time is 500e-12 second, i.e., 500 picoseconds.
How many seconds is the CPU performance for the task? Ans✓✓✓ 7.5
Four processors (1, 2, 3, and 4) have clock frequencies of 200 Mhz, 300 Mhz, 500
Mhz, and 700 Mhz, respectively.
Suppose:
Processor 1 can execute an instruction with an average of 5 steps.
Processor 2 can execute an instruction with an average of 3 steps.
Processor 3 can execute an instruction with an average of 3 steps.
Processor 4 can execute an instruction with an average of 5 steps.
Which processor should be selected to improve performance for the execution of
the same instruction? Ans✓✓✓ Processor 3
Given four sets of ARM instructions that take the same amount of time and
processing power to execute.
How much faster would the instructions complete if executed 1,000 times using a
pipelining methodology? Ans✓✓✓ 4 times
, Given the following 8-bit integer binary variables:
X1 = 11000110
X2 = 11110111
What is the value in X3 after the following command?
ADD X3, X2, X1 Ans✓✓✓ overflow
Given this set of ARM instructions, where b is at offset 0, e is at offset 8, and a is
at offset 24:
LDUR X1, [X0,#0]
LDUR X2, [X0,#8]
ADD X3, X1, X2
STUR X3, [X0,#24]
What is the corresponding C language statement? Ans✓✓✓ a = b + e;
How can the CPU performance of a program be improved? Ans✓✓✓ By reducing
the number of clock cycles
How many minutes does it take to wash, dry, and fold four loads of laundry using
a pipelining approach, given the following information?
A program runs alone on a CPU. The CPU clock rate is 3e9 cycles per second, i.e., 3
GHz. It takes the CPU 15e9 clock cycles to complete the program. The CPU clock
cycle time is 500e-12 second, i.e., 500 picoseconds.
How many seconds is the CPU performance for the task? Ans✓✓✓ 7.5
Four processors (1, 2, 3, and 4) have clock frequencies of 200 Mhz, 300 Mhz, 500
Mhz, and 700 Mhz, respectively.
Suppose:
Processor 1 can execute an instruction with an average of 5 steps.
Processor 2 can execute an instruction with an average of 3 steps.
Processor 3 can execute an instruction with an average of 3 steps.
Processor 4 can execute an instruction with an average of 5 steps.
Which processor should be selected to improve performance for the execution of
the same instruction? Ans✓✓✓ Processor 3
Given four sets of ARM instructions that take the same amount of time and
processing power to execute.
How much faster would the instructions complete if executed 1,000 times using a
pipelining methodology? Ans✓✓✓ 4 times
, Given the following 8-bit integer binary variables:
X1 = 11000110
X2 = 11110111
What is the value in X3 after the following command?
ADD X3, X2, X1 Ans✓✓✓ overflow
Given this set of ARM instructions, where b is at offset 0, e is at offset 8, and a is
at offset 24:
LDUR X1, [X0,#0]
LDUR X2, [X0,#8]
ADD X3, X1, X2
STUR X3, [X0,#24]
What is the corresponding C language statement? Ans✓✓✓ a = b + e;
How can the CPU performance of a program be improved? Ans✓✓✓ By reducing
the number of clock cycles
How many minutes does it take to wash, dry, and fold four loads of laundry using
a pipelining approach, given the following information?