MauryaHub PYQ Practice

Programming in C · Quiz 1 · Jan 2026

Programming in C · Quiz 1 · Jan 2026

← 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 2 MCQ · 5.0 marks

What is the decimal equivalent of the following **8-bit signed binary number represented using** **the two’s complement convention**? (11100101)2
6406536956375.
-27
6406536956376.
-21
6406536956377.
-35
6406536956378.
229

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 5.0 marks

Source diagram or notation
6406536956384.
4
6406536956385.
5
6406536956386.
6
6406536956387.
7

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 5.0 marks

Source diagram or notation
6406536956392.
8
6406536956393.
4
6406536956394.
5
6406536956395.
6

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 5.0 marks

Consider the following C program:
Source diagram or notation
What will be the output?
6406536956396.
50
6406536956397.
10
6406536956398.
Garbage value
6406536956399.
Compilation error

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Consider the code:
Source diagram or notation
What will be the value of c?
6406536956379.
14
6406536956380.
12
6406536956381.
17
6406536956382.
19

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

What is the correct way to access a structure member using a pointer to a structure?
6406536956422.Source diagram or notation
6406536956423.Source diagram or notation
6406536956424.Source diagram or notation
6406536956425.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 3.0 marks

We want to dynamically allocate memory at runtime for **10 integer elements** and store the returned address in a pointer. Which of the following statements is correct?
6406536956435.Source diagram or notation
6406536956436.Source diagram or notation
6406536956437.Source diagram or notation
6406536956438.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 3.0 marks

In C preprocessor directives, what does the
Source diagram or notation
operator do when used in macro definitions?
6406536956448.
Concatenates two tokens
6406536956449.
Compares two tokens
6406536956450.
Excludes a token
6406536956451.
Multiplies two tokens

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 4.0 marks

Consider the following C program:
Source diagram or notation
What will be the output?
6406536956388.
15
6406536956389.
10
6406536956390.
5
6406536956391.
Garbage value

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 4.0 marks

A 4-byte integer
Source diagram or notation
is stored starting at memory address
Source diagram or notation
. What value will be stored at address
Source diagram or notation
in a **Little-Endian system**?
6406536956400.Source diagram or notation
6406536956401.Source diagram or notation
6406536956402.Source diagram or notation
6406536956403.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 4.0 marks

Consider the following code:
Source diagram or notation
What will be the output?
6406536956413.Source diagram or notation
6406536956414.Source diagram or notation
6406536956415.Source diagram or notation
6406536956416.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 4.0 marks

Source diagram or notation
What will be the output of the given code?
6406536956426.
1 3 4 5
6406536956427.
0 3 3 4
6406536956428.
0 1 2 3
6406536956429.
0 3 4 5

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 4.0 marks

Source diagram or notation
6406536956430.Source diagram or notation
6406536956431.Source diagram or notation
6406536956432.Source diagram or notation
6406536956433.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 4.0 marks

Assume
Source diagram or notation
contains:
Source diagram or notation
Consider the following C code snippet. What will be printed on the screen?
Source diagram or notation
6406536956443.Source diagram or notation
6406536956444.Source diagram or notation
6406536956445.Source diagram or notation
6406536956446.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 4.0 marks

Consider the C program below.
Source diagram or notation
What will be the output of the above C program?
6406536956452.
63
6406536956453.
45
6406536956454.
27
6406536956455.
14

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MSQ · 5.0 marks

Consider the following C program:
Source diagram or notation
Which of the following statements are correct?
6406536956404.Source diagram or notation
becomes 12
6406536956405.Source diagram or notation
becomes 12
6406536956406.Source diagram or notation
and
Source diagram or notation
both point to
Source diagram or notation
6406536956407.Source diagram or notation
and
Source diagram or notation
both point to
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MSQ · 4.0 marks

Which of the following statements about arrays in C are correct?
6406536956408.
Array elements are stored in contiguous memory locations.
6406536956409.
Array size can be changed after declaration.
6406536956410.
The array name acts like a pointer to the first element in most expressions.
6406536956411.
Arrays can store elements of different data types.
6406536956412.
Array indexing starts from 0.

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MSQ · 4.0 marks

Which of the following statements about
Source diagram or notation
in C are correct?
6406536956418.
Size of the
Source diagram or notation
is equal to the sum of all member sizes
6406536956419.
All members share the same memory location
6406536956420.
Each member has its own separate memory
6406536956421.
Only one member can hold a valid value at a time

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MSQ · 3.0 marks

Which of the following file modes **delete the existing content of a file when opened**?
6406536956439.
"w"
6406536956440.
"w+"
6406536956441.
"r+"
6406536956442.
"a"

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 NAT · 5.0 marks

Consider the following computation steps: 1. R[0] = 2 2. R[1] = 3 3. R[1] = R[1] + R[0] 4. R[0] = R[0] + 1 5. If R[0] ≤ 5 go to step-3, otherwise, go to step-6 6. R[2] = R[1] What is the final value of R[2] at the end of computation?

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 printed on the screen**?

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 NAT · 5.0 marks

Consider the following C code:
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 · 4.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q25