Quiz Space

Programming in C End Term: 28 April 2024 (January 2024 term)

Question 1

+3 marksOne correct option

Which of the following statements about recursion in C programming is not true?

  1. A

    A recursive function calls itself.

  2. B

    Recursive functions must have a base case to prevent infinite calls.

  3. C

    The base case is optional for a recursive function.

  4. D

    Recursive functions are used to implement functions like factorial of a number.

Question 2

+3 marksOne correct option

Let a pointer variable ptr hold the address of another integer variable var. Which of the following statements will correctly print the value of var?

  1. A

    printf("%d", ptr);

  2. B

    printf("%d", *ptr);

  3. C

    printf("%d", ptr*);

  4. D

    printf("%d", &ptr);

Question 3

+3 marksOne correct option

Which of the following statements is not true about arrays in C?

  1. A

    An array stores a collection of elements of the same data type.

  2. B

    Array index always starts with 1.

  3. C

    Elements of an array are stored in contiguous memory locations.

  4. D

    Array name acts like a constant pointer that always points to the first element of the array.

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 28 Apr 2024 paper

The IIT Madras BS Programming in C (Programming in C) End Term paper sat on 28 Apr 2024, in the January 2024 term: 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 28 Apr 2024 at a glance
TermJanuary 2024 term
SubjectProgramming in C
Course codeBSCS3005
Questions25
Marks100
Duration180 min
MCQ19
MSQ3
Numerical3
Official paperIIT M DEGREE AN EXAM QDB3 28 Apr 2024
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Programming in C