Question 1
What is the value of x, y and z at the end of computation of the following code snippet.
int x = 1, y = 2, z = 3;
x = y + z;z = x - y;z = z + x;
z = y + z;y = y + z;1 2 3
4 6 8
5 12 10
8 6 10
What is the value of x, y and z at the end of computation of the following code snippet.
int x = 1, y = 2, z = 3;
x = y + z;z = x - y;z = z + x;
z = y + z;y = y + z;1 2 3
4 6 8
5 12 10
8 6 10
Which of the following is true about recursion?
Reduces the execution time significantly in comparison to using loops
Reduces the Memory requirement significantly in comparison to using loops
Reduces the Amount of lines of codes needed for performing tasks with repeating sub-structure
All of these
A 32-bit integer 0x12345678 is stored in memory starting at address 0x3000 on a little-endian system. Which of the following correctly represents the memory layout (address and stored values)?
0x3000: 12
0x3001: 34
0x3002: 56
0x3003: 78
0x3000: 78
0x3001: 56
0x3002: 34
0x3003: 12
0x3000: 56
0x3001: 78
0x3002: 12
0x3003: 34
0x3000: 12
0x3004: 34
0x3008: 56
0x300C: 78
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 Introduction to C Programming (Intro to C Programming) End Term paper sat on 13 Apr 2025, in the January 2025 term, set QEF1: 24 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 | Intro to C Programming End Term 13 Apr 2025 Set QEF1 at a glance |
|---|---|
| Term | January 2025 term |
| Subject | Introduction to C Programming |
| Course code | CS1101 |
| Questions | 24 |
| Marks | 100 |
| Duration | 180 min |
| MCQ | 17 |
| MSQ | 2 |
| Numerical | 5 |
| Official paper | IIT M ES FOUNDATION AN EXAM QEF3 13 Apr 2025 |
| Negative marking | No negative marking. |
| Updated |