uiz Space

January 2025 term · Programming in C · BSCS3005

Programming in C End Term: 13 April 2025, Set 1-3 (January 2025 term)

The IIT Madras BS Programming in C (Programming in C) End Term paper sat on 13 Apr 2025, in the January 2025 term, set 1-3: 17 questions for 43 marks in 180 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
43
Duration
180 min
MCQ
10
MSQ
2
Numerical
5

Updated

Official paper: IIT M ES REATTEMPT AN EXAM QEQ1 13 Apr · No negative marking.

Question 1

+4 marksOne correct option
  1. A

    5 1 4

  2. B

    5 6 9

  3. C

    5 16 10

  4. D

    5 11 10

Show answer

Correct answer

  • D

    5 11 10

Question 2

+4 marksOne correct option
  1. A

    int *ptr = &var;

  2. B

    int *ptr = *var

  3. C

    int *ptr = $var;

  4. D

    int ptr = *var;

Show answer

Correct answer

  • A

    int *ptr = &var;

Question 3

+4 marksOne correct option

In C programming, which memory region is primarily used for storing local variables of functions and function call information?

  1. A

    Heap memory

  2. B

    Stack memory

  3. C

    Static memory

  4. D

    Code segment

Show answer

Correct answer

  • B

    Stack memory

Question 4

+4 marksOne correct option
  1. A

    Declares a global variable that can be used in multiple files.

  2. B

    Creates a macro that replaces text before compilation.

  3. C

    Defines a function which may have parameters.

  4. D

    Includes the content of another file during compilation.

Show answer

Correct answer

  • D

    Includes the content of another file during compilation.

Question 5

+5 marksOne correct option
  1. A

    22

  2. B

    21

  3. C

    28

  4. D

    24

Show answer

Correct answer

  • C

    28

Question 6

+5 marksOne correct option
  1. A

    20 -10

  2. B

    -10 10

  3. C

    -10 20

  4. D

    -20 10

Show answer

Correct answer

  • B

    -10 10

Question 7

+5 marksOne correct option
  1. A

    Systems

  2. B

    ystems

  3. C

    stems

  4. D

    tems

Show answer

Correct answer

  • B

    ystems

Question 8

+5 marksOne correct option
  1. A

    [3, 5, 4, -7, 6, 2]

  2. B

    [6, 5, 4, 3, 2, 1]

  3. C

    [-4, -3, -2, 5, 1, -6]

  4. D

    [-5, -3, -2, -6, -1, -4]

Show answer

Correct answer

  • D

    [-5, -3, -2, -6, -1, -4]

Question 9

+5 marksOne correct option
  1. A

    14

  2. B

    11

  3. C

    8

  4. D

    16

Show answer

Correct answer

  • B

    11

Question 10

+3 marksOne correct option

Which of the following is not a storage class specifier?

  1. A

    register

  2. B

    static

  3. C

    volatile

  4. D

    typedef

Show answer

Correct answer

  • C

    volatile

Question 11

+4 marksOne or more correct options

Which of the following statements is/are true about the if statement in C?

Select all that apply.

  1. A

    else if is compulsory to use with if statement.

  2. B

    else is compulsory to use with if statement.

  3. C

    else or else if is optional with if statement.

  4. D

    Multiple else if are allowed with if statement.

Show answer

Correct answers

  • C

    else or else if is optional with if statement.

  • D

    Multiple else if are allowed with if statement.

Question 12

+4 marksOne or more correct options

In C, which of the following is/are valid operation(s) on pointer variables?

Select all that apply.

  1. A

    Dividing one pointer variable by another pointer variable.

  2. B

    Comparing two pointers variables for equality.

  3. C

    Incrementing/Decrementing a pointer variable (e.g. ptr++/ ptr–).

  4. D

    Multiplying two pointer variables.

Show answer

Correct answers

  • B

    Comparing two pointers variables for equality.

  • C

    Incrementing/Decrementing a pointer variable (e.g. ptr++/ ptr–).

Question 13

+4 marksNumerical answer
Show answer

Correct answer: 7

Question 14

+4 marksNumerical answer
Show answer

Correct answer: 14

Question 15

+4 marksNumerical answer
Show answer

Correct answer: 100

Question 16

+5 marksNumerical answer
Show answer

Correct answer: 13

Question 17

+5 marksNumerical answer
Show answer

Correct answer: 28