Quiz Space

Programming in C End Term: 1 September 2024, Set QDB1 (May 2024 term)

Question 1

+3 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.

Also asked in End Term 1 Sept 2024, End Term 13 Apr 2025, End Term 13 Apr 2025, End Term 13 Apr 2025 and 2 more

Question 2

+3 marksOne correct option

Which of the following statements accurately describes the base case in a recursive function in C?

  1. A

    The base case is the first statement executed within the function.

  2. B

    The base case is a condition that triggers an infinite call within the function.

  3. C

    The base case is the condition that ensures the recursive function terminates.

  4. D

    The base case is the condition when the function calls itself.

Also asked in End Term 1 Sept 2024

Question 3

+3 marksOne correct option

Which of the following statements correctly initializes a pointer variable ptr to hold the address of another integer variable var in C?

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

22 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Programming in C End Term 1 Sept 2024 Set QDB1 paper

The IIT Madras BS Programming in C (Programming in C) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDB1: 25 questions for 100 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureProgramming in C End Term 1 Sept 2024 Set QDB1 at a glance
TermMay 2024 term
SubjectProgramming in C
Course codeBSCS3005
Questions25
Marks100
Duration180 min
MSQ3
MCQ20
Numerical2
Official paperIIT M DEGREE AN EXAM QDB3 01 Sep 2024
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More Programming in C