You are on page 1of 4

X

gbhanuprakashreddy123@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Computer Architecture (course)

If already registered, click to check your payment


status

Course outline

How does an NPTEL online course work? ()

Week 1 ()

Week 2 ()

Week 3 ()

Week 4 ()

Week 5 ()

Week 6 ()

Week 7 ()

Week 8 ()

Week 9 ()

Week 10 ()

Week 11 ()

Week 12 ()

Text Transcripts ()

Download Videos ()

Books ()

Week 2 : Assignment 2
The due date for submitting this assignment has passed.
Due on 2023-08-09, 23:59 IST.

Assignment submitted on 2023-08-07, 19:15 IST


1) Consider the following representation of a number in normalized form: 1 point
A = (-1)s *P*2X
What does P signify?

Mantissa

Precision

Decimal

Significand

Yes, the answer is correct.


Score: 1
Accepted Answers:
Significand

2) Let 3.xxxxx... * 10n be the largest number that can be represented in the 32-bit IEEE 754 format. What is the value 1 point
of n?

10

24

38

20

Yes, the answer is correct.


Score: 1
Accepted Answers:
38

3) Which of the following combinations of the exponent, mantissa, and sign bit values represent positive infinity in 1 point
the 32-bit IEEE 754 format?

Sign bit=1, mantissa = 255, exponent = 255

Sign bit=1, mantissa = 255, exponent = 0

Sign bit=0, mantissa = 255, exponent = 255

Sign bit=0, mantissa = 0, exponent = 255

Yes, the answer is correct.


Score: 1
Accepted Answers:
Sign bit=0, mantissa = 0, exponent = 255

4) Which section of the assembly structure of the GNU assembler contains the instructions? 1 point

.data

.code

.text

.file

Yes, the answer is correct.


Score: 1
Accepted Answers:
.text

5) Let V be the value of the operand and r1 be a register value. Which of the following instructions in the register 1 point
transfer notation best describes the register direct addressing mode?

V<--r1

V <-- [r1]

V <-- [r1 + 20]

None of the options

Yes, the answer is correct.


Score: 1
Accepted Answers:
V<--r1

6) Let the value in register r1 be (1100)2 and the value in register r2 be (0101)2. What is the value in register r3 after 1 point
the execution of the following SimpleRISC instruction? (X)2 means X is a binary number.
and r3, r1, r2
The same value as the register r2

(0000)2

(1100)2

(0100)2

Yes, the answer is correct.


Score: 1
Accepted Answers:
(0100)2

7) Let ans = 12 << 3, where << means the left shift operation. What is the value of ans? 1 point

12

15

96

-12

Yes, the answer is correct.


Score: 1
Accepted Answers:
96

8) What are the values of the flags.E and flags.GT after the execution of the following set of SimpleRISC instructions? 1 point
mov r1,5
mov r2,10
cmp r1,r2

flags.E=0 and flags.GT=0

flags.E=1 and flags.GT=1

flags.E=0 and flags.GT=1

None of the options

Yes, the answer is correct.


Score: 1
Accepted Answers:
flags.E=0 and flags.GT=0

9) Consider the two SimpleRISC instructions below: 1 point

[1]: mov r3, 10


[2]: lsl r1, r3, 2
[3]: mul r2, r3, 4

Which of the following options is true about the above-mentioned instructions?

The value at r1 and r2 would be the same

The value at r1 is the negative of the value at r2

The value at r1 would be twice that of the value at r2

The value at r2 would be twice that of the value at r1

Yes, the answer is correct.


Score: 1
Accepted Answers:
The value at r1 and r2 would be the same

10) Which of the following is not a method of storing two-dimensional arrays? 1 point

Row major

Column major

Array major

All of the options

Yes, the answer is correct.


Score: 1
Accepted Answers:
Array major

You might also like