Take Test: Midterm Test
Take Test: Midterm Test
Test Information
Description
Instructions The test must be done completely individually. The only sources you are allowed to access
are: Blackboard for this course, the lecture notes in the Syllabus, the lecture recordings, and
the textbook. You may not use any other online tools or sources during the test. Use of any
other source or any form of collaboration during the test will constitute Academic Misconduct
per CCSU Academic Integrity policy and will be met with a zero for the exam and an
Academic Misconduct Report will be filed with the university.
Timed Test This test has a time limit of 3 hours.This test will save and submit automatically when the time
expires.
Warnings appear when half the time, 5 minutes, 1 minute, and 30 seconds remain.
Multiple Not allowed. This test can only be taken once.
Attempts
Force This test can be saved and resumed at any point until time has expired. The timer will continue
Completion to run if you leave the test.
Your
Remaining answers
Time: 59 minutes,
are saved
2 hours, 51 seconds.
automatically.
How many cycles does it take to execute the code if the branch is not taken?
Check all instructions that set the value of the MemtoReg control signal to 1 when
executed on a single cycle datapath.
add $t0, $t0, $t1
lw $t0, 4($a0)
lw $t0, X
The decimal number 1.024 can be represented in the floating point IEEE 754
format exactly (without an error).
True Time: 2 hours, 59 minutes, 51 seconds.
Remaining
False
Question Completion Status:
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
The address of the skip label is computed during cycle number (start counting from 1):
https://ccsu.blackboard.com/webapps/assessment/take/launch.jsp?course_assessment_id=_93917_1&course_id=_52123_1&content_id=_1833224_1… 2/6
3/21/2021 Take Test: Midterm Test – CS-385-01 Spring 2021
Assuming that ALUOut holds a byte address, which definition of the data
memory is consistent with the following definition of the MemtoReg multiplexer:
assign WD = (MemtoReg) ? DMemory[ALUOut>>1]: ALUOut;
reg[31:0] DMemory[0:1023];
reg[7:0] DMemory[0:1023];
reg[15:0] DMemory[0:1023];
reg[0:7] DMemory[0:1023];
reg[0:31] DMemory[0:1023];
Compare
Question A and B and
Completion check the correct result.
Status:
A<B
A=B
A>B
0+A
0-A
A+B
0-B
B-A
Click Save
A-B and Submit to save and submit. Click Save All Answers to save all answers.
https://ccsu.blackboard.com/webapps/assessment/take/launch.jsp?course_assessment_id=_93917_1&course_id=_52123_1&content_id=_1833224_1… 3/6
3/21/2021 Take Test: Midterm Test – CS-385-01 Spring 2021
QUESTION 10 1 points Save Answer
lw $t0, 4($a0)
D latch
D flip-flop
2x1 multiplexor
Check all instructions that set the value of the ALUSrc control signal to 0 when
executed on a single cycle datapath.
lw $t0, 4($a0)
addi $t0,
Remaining $t1, 20 hours, 59 minutes, 51 seconds.
Time:
beq $t0, $t1, Label
Question Completion Status:
The value of a memory word is assigned to register $17 during cycle number
https://ccsu.blackboard.com/webapps/assessment/take/launch.jsp?course_assessment_id=_93917_1&course_id=_52123_1&content_id=_1833224_1… 5/6
3/21/2021 Take Test: Midterm Test – CS-385-01 Spring 2021
The value of a memory word is assigned to register $17 during cycle number
(start counting from 1):
Assume that variables A, B and C are stored in three consecutive 4-byte words in
the memory (A is at the lowest address). The address of C is stored in register
$a0. Check the instruction which loads the value of A in register $t0.
Remaining -8($a0)2 hours, 59 minutes, 51 seconds.
la $t0,Time:
lw $t0, -8($a0)
Question Completion Status:
move $t0, $a0
lw $t0, 8($a0)
The bit string 1111010101 represents an 10-bit two's complement binary number.
Its decimal equivalent is:
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
https://ccsu.blackboard.com/webapps/assessment/take/launch.jsp?course_assessment_id=_93917_1&course_id=_52123_1&content_id=_1833224_1… 6/6