Home / Study library / Programming in C / Quiz 1 · Jan 2026 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
Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21 Q22 Q23 Q24 Q25
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
A published solution is not available for this question yet.
Report a correction for Q2
Question 3 MCQ · 5.0 marks A published solution is not available for this question yet.
Report a correction for Q3
Question 4 MCQ · 5.0 marks 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:
What will be the output?
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:
What will be the value of c?
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. 6406536956423. 6406536956424. 6406536956425. 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. 6406536956436. 6406536956437. 6406536956438. 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
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:
What will be the output?
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
is stored starting at memory address
. What value will be
stored at address
in a **Little-Endian system**?
6406536956400. 6406536956401. 6406536956402. 6406536956403. 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:
What will be the output?
6406536956413. 6406536956414. 6406536956415. 6406536956416. A published solution is not available for this question yet.
Report a correction for Q12
Question 13 MCQ · 4.0 marks
What will be the output of the given code?
A published solution is not available for this question yet.
Report a correction for Q13
Question 14 MCQ · 4.0 marks 6406536956430. 6406536956431. 6406536956432. 6406536956433. A published solution is not available for this question yet.
Report a correction for Q14
Question 15 MCQ · 4.0 marks Assume
contains:
Consider the following C code snippet. What will be printed on the screen?
6406536956443. 6406536956444. 6406536956445. 6406536956446. 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.
What will be the output of the above C program?
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:
Which of the following statements are correct?
6406536956404. becomes 12
6406536956405. becomes 12
6406536956406. and
both point to
6406536956407. and
both point to
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
in C are correct?
6406536956418. Size of the
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**?
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:
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:
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:
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?
A published solution is not available for this question yet.
Report a correction for Q25