uiz Space

September 2025 term · Programming in C · BSCS3005

Programming in C Quiz 1: 26 October 2025 (September 2025 term)

The IIT Madras BS Programming in C (Programming in C) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term: 17 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.

Questions
17
Marks
50
Duration
120 min
MCQ
10
MSQ
4
Numerical
3

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 26 Oct 2025 · No negative marking.

Question 1

+2 marksOne correct option

Which of the following correctly ranks the memory units from fastest to slowest access time?

  1. A

    Cache → Registers → RAM → Hard Disk → Optical Disk

  2. B

    Registers → Cache → RAM → SSD → Hard Disk

  3. C

    RAM → Registers → Cache → SSD → Hard Disk

  4. D

    Registers → RAM → Cache → HDD → SSD

Show answer

Correct answer

  • B

    Registers → Cache → RAM → SSD → Hard Disk

Question 2

+2 marksOne correct option

In an N-bit signed integer representation using 2’s complement, what is the range of values?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 3

+2 marksOne correct option

Which of the following statements about Boolean conditions in C is true?

  1. A

    In C, 0 represents true, and any non-zero value represents false.

  2. B

    In C, 0 represents false, and any non-zero value represents true.

  3. C

    C treats only positive integers as true.

  4. D

    In C, positive integers represent true, and negative integers represent false.

Show answer

Correct answer

  • B

    In C, 0 represents false, and any non-zero value represents true.

Question 4

+3 marksOne correct option

The decimal number 2748 is represented in hexadecimal as:

  1. A

    0xABC

  2. B

    0xABD

  3. C

    0xABE

  4. D

    0xABF

Show answer

Correct answer

  • A

    0xABC

Question 5

+3 marksOne correct option

What is the minimum number of bits required to represent all integer values from −120 to +120 in a signed binary representation?

  1. A

    5 Bits

  2. B

    6 bits

  3. C

    7 bits

  4. D

    8 bits

  5. E

    9 bits

Show answer

Correct answer

  • D

    8 bits

Question 6

+3 marksOne correct option
  1. A

    a = 13, b = -4, c = 12

  2. B

    a = 12, b = -3, c = 11

  3. C

    a = 14, b = -5, c = 13

  4. D

    a = 11, b = -2, c = 10

Show answer

Correct answer

  • A

    a = 13, b = -4, c = 12

Question 7

+3 marksOne correct option
  1. A

    100

  2. B

    200

  3. C

    300

  4. D

    400

Show answer

Correct answer

  • D

    400

Question 8

+3 marksOne correct option
  1. A

    6 5 4

  2. B

    6 4 5

  3. C

    6 3 5

  4. D

    6 5 3

Show answer

Correct answer

  • D

    6 5 3

Question 9

+4 marksOne correct option
  1. A

    Sum of first N natural numbers

  2. B

    Sum of squares of first N natural numbers

  3. C

    Sum of cubes of first N natural numbers

  4. D

    Factorial of N

Show answer

Correct answer

  • B

    Sum of squares of first N natural numbers

Question 10

+4 marksOne correct option
  1. A

    0 1 2 5 6

  2. B

    0 1 5 6

  3. C

    1 2 3 6

  4. D

    1 2 3 5 6

Show answer

Correct answer

  • C

    1 2 3 6

Question 11

+2 marksOne or more correct options

Which of the following are key functions of the Arithmetic Logic Unit (ALU)?

Select all that apply.

  1. A

    Addition and subtraction

  2. B

    Logical comparisons (>, <, =)

  3. C

    Memory storage management

  4. D

    Multiplication and division

  5. E

    Instruction decoding

Show answer

Correct answers

  • A

    Addition and subtraction

  • B

    Logical comparisons (>, <, =)

  • D

    Multiplication and division

Question 12

+2 marksOne or more correct options

Which statement is true about short-circuit evaluation in C?

Select all that apply.

  1. A

    In expr1 && expr2, if expr1 is false, expr2 is not evaluated.

  2. B

    In expr1 || expr2, if expr1 is true, expr2 is not evaluated.

  3. C

    In expr1 && expr2, if expr1 is true, expr2 is not evaluated.

  4. D

    In expr1 || expr2, if expr1 is false, expr2 is not evaluated.

Show answer

Correct answers

  • A

    In expr1 && expr2, if expr1 is false, expr2 is not evaluated.

  • B

    In expr1 || expr2, if expr1 is true, expr2 is not evaluated.

Question 13

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • B
  • C
  • E

Question 14

+3 marksOne or more correct options

Select all that apply.

  1. A

    a = 6, b = 4

  2. B

    a = 3, b = 5

  3. C

    a = 2, b = -3

  4. D

    a = 4, b = 6

Show answer

Correct answers

  • C

    a = 2, b = -3

  • D

    a = 4, b = 6

Question 15

+3 marksNumerical answer
Show answer

Correct answer: 13

Question 16

+4 marksNumerical answer
Show answer

Correct answer: 5

Question 17

+4 marksNumerical answer
Show answer

Correct answer: 21