Question 1
Which of the following typically provides the fastest access of data to a CPU?
Registers
Main Memory
Secondary Storage
Floppy Disk

The IIT Madras BS Programming in C (Programming in C) Qualifier paper sat on 6 Aug 2023, in the May 2023 term: 18 questions for 89 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.
Which of the following typically provides the fastest access of data to a CPU?
Registers
Main Memory
Secondary Storage
Floppy Disk
Correct answer
Registers
Correct answer: 55
How many characters can be encoded using 4 bits?
8 characters
4 characters
16 characters
24 characters
Correct answer
16 characters
Which of the following terms describe the process of starting a computer system and initializing its hardware and software components?
Bootstrapping
Reconciliation
Synchronization
Booting
Correct answers
Bootstrapping
Booting
What is the 2's complement representation of the decimal number -7 in an 8-bit system?
00000111
11110001
11111001
11111101
Correct answer
11111001
_________ is a program used to translate the human-readable code into machine interpretable code.
Memory
CPU
Compiler
Operating system
Correct answer
Compiler
Value of y = 5
Value of y = 6
Error
None of these
Correct answer
Value of y = 5
First x = 5
Second x = 5
First x = 6
Second x = 6
Correct answer
Second x = 6
Which of the following are assignment operators in C?
=
+=
&&
/
-=
Correct answers
=
+=
-=
x = 15, y = 5
x = 10, y = 5
x = 5, y = 10
x = 10, y = 10
x = 10, y = 20
Correct answers
x = 5, y = 10
x = 10, y = 20
Correct answer: 11
Correct answer: -1
Which of the following loops guarantees the execution of the loop body at least once?
For Loop
While Loop
Do While Loop
All of these
Correct answer
Do While Loop
111
222
123
333
Correct answer
111
E3 is 1 if and only if E1 and E2 have different values
E3 is 0 if and only if E1 and E2 have the same value
E3 is always 1
E3 is always 0
Correct answer
E3 is always 1
Result: 2
Result: 2.6
Error!
Result: 3
Correct answer
Result: 2
Correct answer: 9
Consider a decimal number 98. What is the 8-bit binary representation of it?
01100011
01100010
01100110
11100010
Correct answer
01100010