MauryaHub PYQ Practice

Programming in C · End Term · May 2026 · FN

Programming in C · End Term · May 2026 FN

← 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 / 25 published solutions

Question 2 MCQ · 3.0 marks

Which of the following components is primarily responsible for performing arithmetic and logical operations in a computer?
6406537372331.
Arithmetic Logic Unit (ALU)
6406537372332.
Control Unit
6406537372333.
Memory Unit
6406537372334.
Input Unit

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 3.0 marks

A 4-byte integer **0x89ABCDEF** is stored beginning at memory address **4000** in a **Little-Endian** system. Which value will be stored at address **4002**?
6406537372366.
0x89
6406537372367.
0xAB
6406537372368.
0xCD
6406537372369.
0xEF

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372374.
16
6406537372375.
24
6406537372376.
32
6406537372377.
Garbage value

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Which of the following statements about **typedef** in C is correct?
6406537372383.
It creates a new data type.
6406537372384.
It creates an alias (another name) for an existing data type.
6406537372385.
It allocates memory for a variable.
6406537372386.
It is used only with structures.

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Which of the following file opening modes allows **reading and writing** while **preserving the** **existing file contents**?
6406537372389.Source diagram or notation
6406537372390.Source diagram or notation
6406537372391.Source diagram or notation
6406537372392.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372406.
24
6406537372407.
14
6406537372408.
16
6406537372409.
12

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 NAT · 4.0 marks

Consider the following computation steps.
Source diagram or notation
What is the final value stored in **R[3]**?

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 NAT · 4.0 marks

Consider the following C program.
Source diagram or notation
(ASCII value of **'B'** is **66**.) What will be the output?

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 NAT · 4.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 5.0 marks

Consider the following generalized memory computations.
Source diagram or notation
What is the final value stored in **M[3]**?
6406537372336.
12
6406537372337.
18
6406537372338.
14
6406537372339.
21

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 5.0 marks

The decimal equivalent of the following **8-bit signed two's complement** number is
Source diagram or notation
6406537372340.
-14
6406537372341.
-16
6406537372342.
-18
6406537372343.
242

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 5.0 marks

Consider the following C code.
Source diagram or notation
What will be the output?
6406537372352.
4
6406537372353.
5
6406537372354.
6
6406537372355.
7

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 5.0 marks

Consider the following recursive function.
Source diagram or notation
What will be the output?
6406537372361.
12
6406537372362.
16
6406537372363.
20
6406537372364.
28

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 5.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372378.
A
6406537372379.
G
6406537372380.
U
6406537372381.
E

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 5.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372393.
6
6406537372394.
8
6406537372395.
10
6406537372396.
14

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 4.0 marks

Which stage of the C compilation process is responsible for expanding macros and processing header files?
6406537372344.
Linking
6406537372345.
Loading
6406537372346.
Preprocessing
6406537372347.
Execution

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 4.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372357.
10 15
6406537372358.
15 20
6406537372359.
15 15
6406537372360.
20 20

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 4.0 marks

Which preprocessor directive is used to include the contents of another source or header file into the current program?
6406537372398.Source diagram or notation
6406537372399.Source diagram or notation
6406537372400.Source diagram or notation
6406537372401.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 4.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?
6406537372402.
5
6406537372403.
8
6406537372404.
13
6406537372405.
Compilation Error

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MSQ · 3.0 marks

Which of the following statements are correct regarding **character encoding**?
6406537372348.
ASCII uses 7 bits.
6406537372349.
UTF-8 is backward compatible with ASCII.
6406537372350.
Every UTF-8 character occupies exactly 8 bits.
6406537372351.
Unicode supports a much larger character set than ASCII.

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 NAT · 5.0 marks

Consider the following C program.
Source diagram or notation
What will be the output printed on the screen?

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 NAT · 5.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 NAT · 3.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?

A published solution is not available for this question yet.

Report a correction for Q24

Question 25 NAT · 3.0 marks

Consider the following C program.
Source diagram or notation
What will be the output?

A published solution is not available for this question yet.

Report a correction for Q25

Question 26 MSQ · 5.0 marks

Which of the following statements about pointers are correct?
6406537372370.
A pointer variable stores the address of another variable.
6406537372371.
Pointer arithmetic depends on the data type of the pointer.
6406537372372.
Dereferencing a NULL pointer is safe.
6406537372373.
Two pointers can point to the same memory location.

A published solution is not available for this question yet.

Report a correction for Q26