Question 1
Which of the following data types will result in the largest memory allocation?
int
char
double
float
Which of the following data types will result in the largest memory allocation?
int
char
double
float
What is the primary difference between a function declaration and a function definition in C?
A function declaration specifies the name, return type, and parameters of a function, while a function definition provides the implementation of the function.
A function declaration provides the implementation of the function, while a function definition specifies only the function signature.
Both are the same, they can be used interchangeably.
Function declarations are only required for recursive functions.
Which of the following is not a valid memory segment in C?
Code segment
Heap segment
Register segment
Data segment
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.
The IIT Madras BS Programming in C (Programming in C) End Term paper sat on 22 Dec 2024, in the September 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.
| Feature | Programming in C End Term 22 Dec 2024 Set QDB1 at a glance |
|---|---|
| Term | September 2024 term |
| Subject | Programming in C |
| Course code | BSCS3005 |
| Questions | 25 |
| Marks | 100 |
| Duration | 180 min |
| MCQ | 18 |
| MSQ | 3 |
| Numerical | 4 |
| Official paper | IIT M DEGREE AN EXAM QDB3 22 Dec 2024 |
| Negative marking | No negative marking. |
| Updated |