NPTEL Computer Architecture Week 2 Assignment Answers 2024

admin
By admin

NPTEL Computer Architecture Week 2 Assignment Answers 2024

1. What is the smallest positive denormal number in the IEEE 754 standard?

  • 2-126
  • 2-127
  • 2-149
  • 2-150
Answer :- Click Here

2. Consider the following assembly code in the SimpleRISC ISA.
movh r0, 0xFB12
addu r0, r0, 0xCDEF
What is the final value of r0 after executing this code?

  • 0xCDEFFB12
  • 0xFB12CDEF
  • 0x0001C901
  • 0xFBCD12EF
Answer :- Click Here

3. Consider the following SimpleRISC assembly code.

    mov r1, 10
    mov r3, 5
    st r1, [sp]
    add r4, r1, r3
    ld r2, [sp]

What are the contents of r2 and r4 after executing these instructions?

  • r2 = 10, r4 = 15
  • r2 = 15, r4 = 10
  • r2 = 10, r4 = 10
  • r2 = 15, r4 = 15
Answer :- 

4. Consider the following SimpleRISC instructions:

    mov r1, 20
    lsl r2, r1, 2

What is the content of r2 after executing these instructions?

  • 80
  • 10
  • 40
  • 5
Answer :- Click Here

5. The SimpleRISC ISA has ________ registers.

  • 15
  • 16
  • 17
  • None of the options
Answer :- 

6. Which of the following is not a shift instruction in the SimpleRisc ISA?

  • lsl
  • asr
  • asl
  • lsr
Answer :- 

7. The bgt instruction bases its outcome on the value of ____________ flag(s).

  • Both E and GT
  • GT
  • E
  • None of the options
Answer :- 

8. A fixed-point number has a fixed number of digits ___________.

  • After the decimal point.
  • Before the decimal point.
  • Both before and after the decimal point.
  • None of the options
Answer :- Click Here

9. UTF-32 uses __ bytes for every character.

  • 2
  • 4
  • 6
  • 8
Answer :- 

10. How many bits are used for the exponent in the IEEE 754 standard for double precision numbers?

  • 11
  • 8
  • 52
  • 10
Answer :- Click Here
Share This Article
Leave a comment