Home / Study library / Programming in C / Quiz 1 · May 2025 Programming in C · Quiz 1 · May 2025
Programming in C · Quiz 1 · May 2025
← 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 / 17 published solutions
Q77 Q78 Q79 Q80 Q81 Q82 Q83 Q84 Q85 Q86 Q87 Q88 Q89 Q90 Q91 Q92 Q93
Question 77 MCQ · 2.0 marks Select the correct statement about peripherals in a computer.
6406534313603. CPU reads the values from the peripherals by reading the value at the memory
address mapped to them.
6406534313604. CPU has separate instructions for performing read and write from a
peripheral.
6406534313605. CPU cannot read the values from the peripherals
6406534313606. There is a standard and fixed memory mappings for each input device.
A published solution is not available for this question yet.
Report a correction for Q77
Question 78 MCQ · 2.0 marks Identify the option that arranges the following memory types in **typical** descending order of size
(from largest to smallest).
6406534313607. Main Memory (RAM), Secondary Memory (Hard Drive), Cache Memory,
Registers
6406534313608. Main Memory (RAM), Secondary Memory (Hard Drive), Registers, Cache
Memory
6406534313609. Secondary Memory (Hard Drive), Main Memory (RAM), Cache Memory,
Registers
6406534313610. Secondary Memory (Hard Drive), Registers, Main Memory (RAM), Cache
Memory
A published solution is not available for this question yet.
Report a correction for Q78
Question 79 MCQ · 2.0 marks Which of the following best describes the C programming language?
6406534313615. High-level, object-oriented, interpreted
6406534313616. High-level, unstructured, compiled
6406534313617. Mid-level, structured, compiled
6406534313618. Low-level, procedural, interpreted
A published solution is not available for this question yet.
Report a correction for Q79
Question 80 MCQ · 2.0 marks A published solution is not available for this question yet.
Report a correction for Q80
Question 81 MCQ · 4.0 marks Consider the computations given below using the generalized memory model.
1. M[0] ← x
2. M[1] ← y
3. M[2] ← M[0] * M[0]
4. M[3] ← M[1] * M[1]
5. M[4] ← 2 * M[0] * M[1]
6. M[5] ← M[2] + M[4]
7. M[6] ← M[3] - M[4]
8. M[6] ← M[5] + M[6]
What is the value of M[6] at the end of the execution?
6406534313611. 6406534313612. 6406534313613. 6406534313614. A published solution is not available for this question yet.
Report a correction for Q81
Question 82 MCQ · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q82
Question 83 MCQ · 3.0 marks A CPU architecture features an instruction set with **30 unique instructions.** Each instruction
consistently uses **three operands.** Every operand needs to address any of **256 distinct general-**
**purpose registers.** What is the minimum number of bits necessary to encode one such
instruction?
A published solution is not available for this question yet.
Report a correction for Q83
Question 84 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q84
Question 85 MCQ · 3.0 marks 6406534313631. a = 10, b = 14, c = 25, d = 35
6406534313632. a = 11, b = 14, c = 23, d = 34
6406534313633. a = 10, b = 14, c = 23, d = 34
6406534313634. a = 10, b = 14, c = 24, d = 35
A published solution is not available for this question yet.
Report a correction for Q85
Question 86 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q86
Question 87 MSQ · 3.0 marks 6406534313643. 128 in unsigned representation
6406534313644. -128 in 2’s complement representation
6406534313645. 128 in 2’s complement representation
6406534313646. -1 in 1’s complement representation
A published solution is not available for this question yet.
Report a correction for Q87
Question 88 MSQ · 3.0 marks 6406534313652. a=12, b=10, c=5
6406534313653. a=15, b=9, c=10
6406534313654. a=8, b=6, c=10
6406534313655. a=10, b=5, c=7
A published solution is not available for this question yet.
Report a correction for Q88
Question 89 MSQ · 2.0 marks Which of the following is/are valid C variable names?
6406534313647. 6406534313648. 6406534313649. 6406534313650. 6406534313651. A published solution is not available for this question yet.
Report a correction for Q89
Question 90 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q90
Question 91 NAT · 4.0 marks A published solution is not available for this question yet.
Report a correction for Q91
Question 92 NAT · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q92
Question 93 NAT · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q93