MauryaHub PYQ Practice

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

Question 124 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q124

Question 125 MCQ · 4.0 marks

Source diagram or notation
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

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q128

Question 129 MCQ · 4.0 marks

Source diagram or notation
A.
10 10
B.
5 10
C.
5 5
D.
10 5

A published solution is not available for this question yet.

Report a correction for Q129

Question 130 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q130

Question 131 MCQ · 4.0 marks

Source diagram or notation
A.
1
B.
2
C.
3
D.
4

A published solution is not available for this question yet.

Report a correction for Q131

Question 132 MCQ · 4.0 marks

Source diagram or notation
A.
11 bytes.
B.
12 bytes.
C.
13 bytes.
D.
14 bytes.

A published solution is not available for this question yet.

Report a correction for Q132

Question 133 MCQ · 4.0 marks

Source diagram or notation
A.
{0, 0, 100, 0, 0, 0}
B.
{100, 100, 100, 100, 100, 100}
C.
{100, 0, 0, 0, 0, 0}
D.
{0, 100, 0, 0, 0, 0}

A published solution is not available for this question yet.

Report a correction for Q133

Question 134 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q134

Question 135 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q135

Question 136 MCQ · 4.0 marks

Source diagram or notation
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.
Heap memory
B.
Stack memory
C.
Static memory
D.
Code segment

A published solution is not available for this question yet.

Report a correction for Q137

Question 138 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q138

Question 139 MCQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

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.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

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:
Source diagram or notation
What will be the output of the given C program?
A.
16
B.
10
C.
7
D.
12

A published solution is not available for this question yet.

Report a correction for Q141

Question 142 MCQ · 5.0 marks

Source diagram or notation
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:
Source diagram or notation
What is the output of the program?
A.
5
B.
101
C.
10
D.
111

A published solution is not available for this question yet.

Report a correction for Q143

Question 144 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q144

Question 145 NAT · 4.0 marks

Source diagram or notation

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:
Source diagram or notation
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

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q147