uiz Space

May 2023 term · Programming in C · BSCS3005

Programming in C Qualifier: 6 August 2023 (May 2023 term)

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.

Questions
18
Marks
89
Duration
120 min
MCQ
11
Numerical
4
MSQ
3

Updated

Official paper: IIT M ES QUALIFIER EXAM QPQ1 06 Aug 2023 · No negative marking.

Question 1

+4 marksOne correct option

Which of the following typically provides the fastest access of data to a CPU?

  1. A

    Registers

  2. B

    Main Memory

  3. C

    Secondary Storage

  4. D

    Floppy Disk

Show answer

Correct answer

  • A

    Registers

Question 2

+6 marksNumerical answer
Show answer

Correct answer: 55

Question 3

+5 marksOne correct option

How many characters can be encoded using 4 bits?

  1. A

    8 characters

  2. B

    4 characters

  3. C

    16 characters

  4. D

    24 characters

Show answer

Correct answer

  • C

    16 characters

Question 4

+4 marksOne or more correct options

Which of the following terms describe the process of starting a computer system and initializing its hardware and software components?

Select all that apply.

  1. A

    Bootstrapping

  2. B

    Reconciliation

  3. C

    Synchronization

  4. D

    Booting

Show answer

Correct answers

  • A

    Bootstrapping

  • D

    Booting

Question 5

+5 marksOne correct option

What is the 2's complement representation of the decimal number -7 in an 8-bit system?

  1. A

    00000111

  2. B

    11110001

  3. C

    11111001

  4. D

    11111101

Show answer

Correct answer

  • C

    11111001

Question 6

+4 marksOne correct option

_________ is a program used to translate the human-readable code into machine interpretable code.

  1. A

    Memory

  2. B

    CPU

  3. C

    Compiler

  4. D

    Operating system

Show answer

Correct answer

  • C

    Compiler

Question 7

+5 marksOne correct option
  1. A

    Value of y = 5

  2. B

    Value of y = 6

  3. C

    Error

  4. D

    None of these

Show answer

Correct answer

  • A

    Value of y = 5

Question 8

+5 marksOne correct option
  1. A

    First x = 5

  2. B

    Second x = 5

  3. C

    First x = 6

  4. D

    Second x = 6

Show answer

Correct answer

  • D

    Second x = 6

Question 9

+4 marksOne or more correct options

Which of the following are assignment operators in C?

Select all that apply.

  1. A

    =

  2. B

    +=

  3. C

    &&

  4. D

    /

  5. E

    -=

Show answer

Correct answers

  • A

    =

  • B

    +=

  • E

    -=

Question 10

+5 marksOne or more correct options

Select all that apply.

  1. A

    x = 15, y = 5

  2. B

    x = 10, y = 5

  3. C

    x = 5, y = 10

  4. D

    x = 10, y = 10

  5. E

    x = 10, y = 20

Show answer

Correct answers

  • C

    x = 5, y = 10

  • E

    x = 10, y = 20

Question 11

+5 marksNumerical answer
Show answer

Correct answer: 11

Question 12

+5 marksNumerical answer
Show answer

Correct answer: -1

Question 13

+4 marksOne correct option

Which of the following loops guarantees the execution of the loop body at least once?

  1. A

    For Loop

  2. B

    While Loop

  3. C

    Do While Loop

  4. D

    All of these

Show answer

Correct answer

  • C

    Do While Loop

Question 14

+5 marksOne correct option
  1. A

    111

  2. B

    222

  3. C

    123

  4. D

    333

Show answer

Correct answer

  • A

    111

Question 15

+6 marksOne correct option
  1. A

    E3 is 1 if and only if E1 and E2 have different values

  2. B

    E3 is 0 if and only if E1 and E2 have the same value

  3. C

    E3 is always 1

  4. D

    E3 is always 0

Show answer

Correct answer

  • C

    E3 is always 1

Question 16

+5 marksOne correct option
  1. A

    Result: 2

  2. B

    Result: 2.6

  3. C

    Error!

  4. D

    Result: 3

Show answer

Correct answer

  • A

    Result: 2

Question 17

+6 marksNumerical answer
Show answer

Correct answer: 9

Question 18

+6 marksOne correct option

Consider a decimal number 98. What is the 8-bit binary representation of it?

  1. A

    01100011

  2. B

    01100010

  3. C

    01100110

  4. D

    11100010

Show answer

Correct answer

  • B

    01100010