Question 1
Select all the correct statements from the below.
RAM is volatile memory
ROM is faster than RAM
Hard drives provide non-volatile storage
CPU cache is slower than main memory

The IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term: 18 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Select all the correct statements from the below.
RAM is volatile memory
ROM is faster than RAM
Hard drives provide non-volatile storage
CPU cache is slower than main memory
Correct answers
RAM is volatile memory
Hard drives provide non-volatile storage
Convert the following hexadecimal number to its equivalent binary representation.
B5E9
1011 0101 1110 1000
1101 0101 1110 1001
1011 0101 1110 1001
1011 0111 1110 1001
Correct answer
1011 0101 1110 1001
3
4
5
6
Correct answer
4
Correct answer
Find the Hexadecimal representation of the word “CAT” in ASCII.
Hint: A - 65(decimal), B - 66, … in ASCII.
0x43 0x41 0x54
0x42 0x40 0x53
0x43 0x61 0x54
0x42 0x41 0x53
Correct answer
0x43 0x41 0x54
Which of the following expression represent the order in which the expression 8 - 2 * 3 + 4 / 2 is evaluated in C?
(8 - 2) * (3 + (4 / 2))
8 - (2 * 3) + (4 / 2)
((8 - 2) * 3) + (4 / 2)
8 - (2 * (3 + 4) / 2)
Correct answer
8 - (2 * 3) + (4 / 2)
H
g
E
f
Correct answer
H
121
131
120
231
Correct answer
131
ac
c
bd
d
Correct answer
c
Find the minimum number of bits required to represent an instruction set where there are 16 unique instructions and each instruction can take at most 2 operands.
Assume the first operand should be able to represent 32 registers and the second operand should be able to represent -63 to 63 in signed magnitude form.
16
17
18
19
Correct answer
16
4
5
6
7
Correct answer
6
Correct answer: -1
What is the minimum number of bits needed to represent -6 to 7 using signed magnitude representation?
Correct answer: 4
Correct answer: 20
Correct answer: 2
Correct answer: 38
Correct answer: 40
Correct answer: 9