






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







In a certain state automotive tags are assigned a uniqueID composed of eight characters as follows: the firstthree characters are letters (A-Z), followed by a dash (-),and 4 decimal digits (0-9).Q1) How many bits of information are in a tag asdescribed above?(A)^
(^3) log(26 2
log(256^2
none of the above
Consider the following 5 MIPS instructions:A:^
lui^ $t1, B:^
la^ $t0,4096($t1) C:^
lw^ $t0,4096($t1) D:^
addi^ $t0,$t1, E:^
sw^ $t0,4096($t0) Q7)^ When executed in sequence, at what memory address (inhexadecimal) will the contents of $t0 be stored by theinstruction labeled E?^ (A) 0x00001000(B) 0x10001000(C) 0x10002000(D) 0x40964096(E) The address cannot be determined from the instruction sequence alone
Consider the following 5 MIPS instructions:A:^
lui^ $t1, B:^
la^ $t0,4096($t1) C:^
lw^ $t0,4096($t1) D:^
addi^ $t0,$t1, E:^
sw^ $t0,4096($t0) Q9) Which maximal set of instructions could be removed fromthe given sequence and have no effect on the results of theinstruction labeled E?^ (A)^ The instructions labeled A and B(B)^ The instructions labeled B and C(C)^ The instructions labeled B, C, and D(D)^ The instructions labeled A, B, C, and D(E)^ None can be removed.
Consider the following “C” languagecode fragment:^ if (a == 0) {a = 1;} else {a = 0;} Q10)^ Which of the following MIPSinstruction sequences performs thesame operation as the given codefragment? (A)^ lw^
$t0,abne $t0,$0,L1addi $t0,$0,1b L2L1: add $t0,$0,$0L2: sw $t0,a
(B)^ lw^
$t0,abeq $t0,$0,L1sw $0,ab L L1:^ addi^
$t0,$0,1sw $t0,a L2: (C)^ lw^
$t0,asltiu $t0,$t0,1sw $t0,a (D)^ lw
$t0,aaddi^ $t1,$0,1beq^ $t0,$0,L1addi^ $t1,$0,0L1: sw $t1,a (E)^ All of the above