cs3005_2024T3_Q1_NA.pdf
Programming in C · Quiz 1 · Sep 2024
← 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.
Question 56 MSQ · 2.0 marks
Select all the correct statements from the below.
RAM is volatile memory
ROM is faster than RAM
Hard drives provide non-volatile storage
CPU cache is slower than main memory
A published solution is not available for this question yet.
Question 57 MCQ · 2.0 marks
Convert the following hexadecimal number to its equivalent binary representation.
B5E9
1011 0101 1110 1000
1101 0101 1110 1001
1011 0101 1110 1001
1011 0111 1110 1001
A published solution is not available for this question yet.
Question 58 MCQ · 2.0 marks
[[IMAGE:b6b7694525bd034d_3_0]]

3
4
5
6
A published solution is not available for this question yet.
Question 59 MCQ · 3.0 marks
[[IMAGE:b6b7694525bd034d_3_1]]

[[IMAGE:b6b7694525bd034d_3_2]]

[[IMAGE:b6b7694525bd034d_3_3]]

[[IMAGE:b6b7694525bd034d_4_4]]

[[IMAGE:b6b7694525bd034d_4_5]]

A published solution is not available for this question yet.
Question 60 MCQ · 3.0 marks
Find the Hexadecimal representation of the word “CAT” in ASCII.
Hint: A - 65(decimal), B - 66, … in ASCII.
0x43 0x41 0x54
0x42 0x40 0x53
0x43 0x61 0x54
0x42 0x41 0x53
A published solution is not available for this question yet.
Question 61 MCQ · 3.0 marks
Which of the following expression represent the order in which the expression 8 - 2 * 3 + 4 / 2 is
evaluated in C?
(8 - 2) * (3 + (4 / 2))
8 - (2 * 3) + (4 / 2)
((8 - 2) * 3) + (4 / 2)
8 - (2 * (3 + 4) / 2)
A published solution is not available for this question yet.
Question 62 MCQ · 3.0 marks
[[IMAGE:b6b7694525bd034d_5_6]]

H
g
E
f
A published solution is not available for this question yet.
Question 63 MCQ · 3.0 marks
[[IMAGE:b6b7694525bd034d_5_7]]

121
131
120
231
A published solution is not available for this question yet.
Question 64 MCQ · 3.0 marks
[[IMAGE:b6b7694525bd034d_6_8]]

ac
c
bd
d
A published solution is not available for this question yet.
Question 65 MCQ · 4.0 marks
Find the minimum number of bits required to represent an instruction set where there are 16
unique instructions and each instruction can take at most 2 operands.
Assume the first operand should be able to represent 32 registers and the second operand should
be able to represent -63 to 63 in signed magnitude form.
16
17
18
19
A published solution is not available for this question yet.
Question 66 MCQ · 4.0 marks
[[IMAGE:b6b7694525bd034d_7_9]]

4
5
6
7
A published solution is not available for this question yet.
Question 67 NAT · 2.0 marks
[[IMAGE:b6b7694525bd034d_7_10]]

A published solution is not available for this question yet.
Question 68 NAT · 2.0 marks
What is the minimum number of bits needed to represent -6 to 7 using signed magnitude
representation?
A published solution is not available for this question yet.
Question 69 NAT · 2.0 marks
[[IMAGE:b6b7694525bd034d_8_11]]

A published solution is not available for this question yet.
Question 70 NAT · 2.0 marks
[[IMAGE:b6b7694525bd034d_9_12]]

A published solution is not available for this question yet.
Question 71 NAT · 3.0 marks
[[IMAGE:b6b7694525bd034d_9_13]]

A published solution is not available for this question yet.
Question 72 NAT · 3.0 marks
[[IMAGE:b6b7694525bd034d_10_14]]

A published solution is not available for this question yet.
Question 73 NAT · 4.0 marks
[[IMAGE:b6b7694525bd034d_11_15]]

A published solution is not available for this question yet.