Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computation and Computer Fundamentals, CSI 2334 Full Set

Rating
-
Sold
-
Pages
40
Grade
A+
Uploaded on
17-12-2024
Written in
2024/2025

Computation and Computer Fundamentals, CSI 2334 Full Set

Institution
Course

Content preview

Computation and Computer Fundamentals, CSI 2334 Full Set



1. What is the two's complement representation of -4?: 1100
2. For 1010.112, normalizing yields 1.01011. Identify the biased exponent of the given example.: 130
3. Identify the decimal equivalent of the binary value of 0.011: .375
4. Which is true?
A single 0 or 1 is called a bit Eight bytes are
called a nibble A single 0 or 1 is called a byte
Eight bits are called a nibble: A single 0 or 1 is called a bit

5. Determine the result of the following binary floating-point multiplication: 1.1x25x1.1x23: 1.0010x29
6. Which addition will result in an overflow? 1111 +0111
0101 + 0010
1001 +0100
0011 +0001: 1111 +0111

7. What is the decimal equivalent of the hexadecimal number 2A: 42
8. Determine the number of pixels per square inch if there are 600 pixels per inch in an image: 360000
9. Given the following register file contents, which instruction sequence writes
$t1 with the result of 25 - 4 * 5? St1 $12 $13 Register file 4 5 25
mul $t0, 4, 5 sub $t1, 25, $t0
mul $t0, $t1, $t2 sub $t1, $t3, $t0 sub $t0, $t3,
St1 mul $t1, $t1, St2
sub $t0, 25, 2 mul $t1, 4, 5: mul $t0, $t1, $t2 sub $t1, $t3, $t0

10. Given the register file below, what is the value in register $t4 after executing the following instructions?
0 Add $t2 = $t2 + $t6 Add $t6= $t5 + $t2 Add $t4 =
$t6 + $t1 $zero $t0 St1 $12 $13 $14 $15 $16 26 22 16 11 Register file 8 6 7 5 3 0
O k: 22

11.Given the following data memory (DM) contents and assuming $t2 holds 2208, what is the value of $t3 after
executing the instruction sequence? lw $t1, 0($t2) lw $t3, 0($t1) Data memory (DM) 2200 80 I 2204 60 2208 2204
2212 40 80
2204 60 40: 60


, Computation and Computer Fundamentals, CSI 2334 Full Set
12.Which of the instruction sequences is equivalent to the following expres- sion? if ($te > 0) $t1= $t + 1 $t1= $t1
- 1 else 0) slt $t2, $t0, Szero beq $t2, $zero, True addi $t1, $t1, -1 j End True: addi $t1, $t1, 1 End: slt $t2, $zero,
$t0 beq $t2,
$zero, True addi $t1, $t1, -1 j End True: addi $t1, $t1, 1 End: slt $t2, $t0, $zero bne
$t2, Szero, True addi $t1, St1, -1 j End True: addi $t1, $t1, 1 End: slt $t2, Szero,






, Computation and Computer Fundamentals, CSI 2334 Full Set


$te bne St2, Szero, True addi $t1, $t1, -1 j End True: addi $t1, $t1, 1 End:: slt $t2, Szero, $te bne St2, Szero, True ad
$t1, $t1, -1 j End True: addi $t1, $t1, 1 End:

13.Given the following data memory (DM) and register file contents, determine the value of $t2 after executing
the instruction Load $t2 DM[1002] 1000 1001 1002 -$zero $t1 $12 $13 880 42 1002 37 Data memory DM 88 42 37
Register file
0 37 1002 880: 37

14.Given the following register file contents, what is the instruction sequence that writes $t1 with the sum of 5,
10, and 15? $t1 $12 $13 Register file 20 15 10 addi $t1, $t1, 5 add $t1, $t2, $t3 add $t1, $t1, 5 add $t1, $t2, $t3 add
$t1, $t2, $t3 add $t1, $t1, 5 add $t1, $t2, $t3 addi $t1, $t1, 5: add $t1, $t2, $t3 addi $t1, $t1, 5

15.Which of the following instruction sequences is equivalent to the instruc- tion ble $te, $t1, BLabel slt $t2, $t1,
$te bne $t2, $zero, BLabel slt $t2, $t1, $te beq $t2, $zero, BLabel slt $t2, $t0, $t1 beq $t2, $zero, Blabel slt $t2, $te,
$t1 bne
$t2, Szero, BLabel: slt $t2, $t1, $te beq $t2, $zero, BLabel

16.The instruction, Load $t5 with DM[5150], falls into which instruction cate- gory? data transfer arithmetic
logic unit branch data memory: Data transfer

17.Given $t1 = 8, $t2 = 5, $t3 = 7, and $t4 = 3, what is the instruction sequence that stores the values of 3 + 7 in
both register $t5 and the memory location DM[1005]? Add $t5= $t2+ $t3 Store DM[1005] to $t5 Add $t5= $t2 +
$t3 Store
$t5 to DM[1005] Add $t5 $t4 + $t3 Store $t5 to DM[1005] Add $t5 $t4 + $t3 Store DM[1005] to $t5: Add $t5 $t4 + $
Store $t5 to DM[1005]

18.Given a system with memory alignment, which value of $t5 results in successful execution of the
instruction sw $t0, 0($t5)? 5234 5214 5213 5224
W: 5224

19.Given the following register file contents, what will be the value of $t3 after executing the instruction
sequence? 0 slt $t2, $t3, $t1 addi $t3, $t2, 2 $t1 $12
$13 3 2 0 1 Register file 2 4 6: 2

20.Which of the instruction sequences is equivalent to the following expres- sion? if ($t1 - $t2) $t3 $t3 1 bne $t1,
$t2, L1 L1: beq $t1, $t2, L1 L1: addi $t3, $t3,
-1 L1:beq $t1, St2, L1 sub $t3, $t3, 1 addi $t3, $t3, -1 11: bne $t1, $t2, L1 sub
$t3, $t3, 1: beq $t1, $t2, L1 L1: addi $t3, $t3, -1 L1:


, Computation and Computer Fundamentals, CSI 2334 Full Set
21.Given the following register file contents, which instruction sequence writes $t1 with the result of 25 - 4* 5?
$t1 $12 $13 [0] Register file 4 5 25 sub
$t0, 25, 2 mul $t1, 4, 5 sub $t0, $t3, $t1 mul $t1, $t1, $t2 mul $t0, $t1, $t2 sub $t1,
$t3, $te mul $te, 4, 5 sub $t1, 25, $te: mul $t0, $t1, $t2 sub $t1, $t3, $te

22.Given the following register file contents, what will be the value of $t2 after executing the instruction
sequence? add $t2, $t2, $t1 addi $t3, $t2, 5 addi $t2,
$t2, -3 $t1 $12 $13 O 5 17 15 12 Register file 10 5 8: 12

Written for

Course

Document information

Uploaded on
December 17, 2024
Number of pages
40
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions