Home / Study library / Programming in C / End Term · May 2025 Programming in C · End Term · May 2025 · AN
Programming in C · End Term · May 2025 AN
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 24 published solutions
Q124 Q125 Q126 Q127 Q128 Q129 Q130 Q131 Q132 Q133 Q134 Q135 Q136 Q137 Q138 Q139 Q140 Q141 Q142 Q143 Q144 Q145 Q146 Q147
Question 124 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q124
Question 125 MCQ · 4.0 marks A. To exit the loop entirely and continue with the program statement
immediately following the loop.
B. To restart the loop from the beginning.
C. To immediately proceed to the next iteration of the loop, skipping any
remaining statements in the current iteration.
D. To execute a block of code only a fixed number of times.
A published solution is not available for this question yet.
Report a correction for Q125
Question 126 MCQ · 4.0 marks What is a potential risk of a recursive function that is not properly terminated with a base case?
A. It will cause a compile-time error.
B. It will always return an incorrect value.
C. It can lead to a stack overflow, as the function calls consume all available stack
memory.
D. The program will terminate gracefully with a success message.
A published solution is not available for this question yet.
Report a correction for Q126
Question 127 MCQ · 4.0 marks What is the fundamental conceptual difference between "pass-by-value" and "pass-by-reference"
for function parameters in C?
A. Pass-by-value is used for primitive types, while pass-by-reference is used for
composite types.
B. In pass-by-value, a function works with a copy of the argument, whereas in
pass-by-reference, it works with the original variable via its memory address.
C. Pass-by-value allows a function to modify the original variable, while pass-by-
reference protects the original variable from modification.
D. The choice between pass-by-value and pass-by-reference is made
automatically by the compiler based on the variable's type.
A published solution is not available for this question yet.
Report a correction for Q127
Question 128 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q128
Question 129 MCQ · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q129
Question 130 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q130
Question 131 MCQ · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q131
Question 132 MCQ · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q132
Question 133 MCQ · 4.0 marks B. {100, 100, 100, 100, 100, 100}
A published solution is not available for this question yet.
Report a correction for Q133
Question 134 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q134
Question 135 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q135
Question 136 MCQ · 4.0 marks A. RED = 0, GREEN = 3, BLUE = 1
B. RED = 1, GREEN = 3, BLUE = 4
C. RED = 0, GREEN = 3, BLUE = 4
D. RED = 1, GREEN = 3, BLUE = 2
A published solution is not available for this question yet.
Report a correction for Q136
Question 137 MCQ · 4.0 marks In C programming, which memory region is typically used for dynamic memory allocation?
A published solution is not available for this question yet.
Report a correction for Q137
Question 138 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q138
Question 139 MCQ · 4.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q139
Question 140 MCQ · 4.0 marks When a macro is used in a C program, at what stage is its definition replaced into the code?
A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q140
Question 141 MCQ · 4.0 marks Consider the below C program:
What will be the output of the given C program?
A published solution is not available for this question yet.
Report a correction for Q141
Question 142 MCQ · 5.0 marks A. (0,0), (0,2), (1,1), (1,3), (2,2), (2,3)
B. (0,0), (0,2), (0,3), (1,1), (2,2)
C. (0,0), (0,2), (1,1), (1,3), (2,2)
D. (0,1), (0,3), (1,1), (1,3), (2,2), (2,3)
A published solution is not available for this question yet.
Report a correction for Q142
Question 143 MCQ · 5.0 marks Consider the following C code:
What is the output of the program?
A published solution is not available for this question yet.
Report a correction for Q143
Question 144 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q144
Question 145 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q145
Question 146 NAT · 5.0 marks Consider the following C code:
What will be the output of the given program?
A published solution is not available for this question yet.
Report a correction for Q146
Question 147 NAT · 5.0 marks A published solution is not available for this question yet.
Report a correction for Q147