Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12. If 101 b = 10 10 , what is b (in base 10)? a. 8 b. 4 c. 3 d. 2 13. What is

12. If 101b= 1010, what is b (in base 10)?

a. 8

b. 4

c. 3

d. 2

13. What is 10.510 in Hex?

a. A.5

b. A.8

c. 10.8

d. 8.5

14. What is 11.12 in Hex?

a. 3.1

b. 3.8

c. C.1

d. C.8

15. Which of the following number will represent a number X, where -8 X

a. X + 7

b. ( X + 16 ) mod 16

c. X - 16

d. X + 16

16. Which of the following represents the 2s complement number 1010?

a. 0 * 2 0 + 1 * 2 1 + 0 * 2 2 + 1 * 2 3

b. 0 * 2 0 + 1 * 2 1 + 0 * 2 2 - 1 * 2 3

c. 1 * 2 0 + 0 * 2 1 + 1 * 2 2 - 0 * 2 3

d. 1 * 2 0 + 0 * 2 1 + 1 * 2 2 + 0 * 2 3

17. When adding two n-bit 2s complement numbers, overflow will not occur, if

a. Both operands have different sign bits

b. Both operands have same sign bits, and the sign bit of the result is also same

c. Carry-in bits to MSBs are same as the Carry-out bit from the MSB

d. All of the above

18. Consider the following snippet of a C program and the screen shot of the coutput. Which of the following is true?

float f4 = 16777217;

printf("The float numbers f4, f4 + 1 and f4+ 2 are: %f %f %f ", f4, f4 + 1, f4 + 2);

image text in transcribed

a. The integer 16777217 cannot be represented in float data type

b. 16777216 + 1 = 16777216 is always true

c. This is an example for syntax error

d. C compiler sometimes make mistakes- need to use C++ instead.

Consider the following code in order to answer the next two questions:

sw $8, 4($16)

addi $16, $16, 4

lw $9, 0($16)

beq $8, $9, -12

19. Which of the following statements is true?

a. After executing the second line of the above code, the contents of $16 will be incremented by 4

b. Only the first and third instructions will access the RAM.

c. All of the above instructions are I type instructions.

d. All of the above statement are true

20. Which of the following statements is NOT true?

a. After executing the third line of the above code the contents of $8 and $9 will be same.

b. The loop in the above code will not terminate

c. The above code is similar to a do-while loop in high-level languages

d.The RTL description of beq is: if (R[8] == R[9] ), R[8] R[9] -12 .

CAUsersimohanara\Documents\Visual Studio 2015\Projects\Consol... The float numbers f4. f4 1 and f4 2 are: 16777216.000G 16777216.0OGGG0 16777218.0G000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago