cs3005_2024T2_Q1_NA.pdf
Programming in C · Quiz 1 · May 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 64 MSQ · 2.0 marks
Select all the correct statements from the below.
Registers are the memory closest to the CPU
Cache can be used to store data that is not frequently accessed.
Main memory is faster than cache memory.
Main memory is slower than the registers.
A published solution is not available for this question yet.
Question 65 MSQ · 2.0 marks
Select all the valid variable names in C.
test@3
test34
2nd_test
Test_3
A published solution is not available for this question yet.
Question 66 NAT · 3.0 marks
[[IMAGE:e78c145034d6e51c_3_1]]

A published solution is not available for this question yet.
Question 67 MCQ · 3.0 marks
[[IMAGE:e78c145034d6e51c_4_2]]

Case 1: M[2] = 3, Case 2: M[2] = 2
Case 1: M[2] = -3, Case 2: M[2] = -2
Case 1: M[2] = -2, Case 2: M[2] = 3
Case 1: M[2] = 2, Case 2: M[2] = -3
A published solution is not available for this question yet.
Question 68 MCQ · 3.0 marks
Find the Hexadecimal representation of the word "FAX” in ASCII.
Hint: A - 65(decimal), B - 66, … in ASCII.
0x46 0x41 0x58
0x45 0x41 0x57
0x46 0x31 0x58
0x44 0x31 0x57
A published solution is not available for this question yet.
Question 69 MCQ · 3.0 marks
[[IMAGE:e78c145034d6e51c_5_3]]

-9
-11
-8
-10
A published solution is not available for this question yet.
Question 70 MCQ · 3.0 marks
[[IMAGE:e78c145034d6e51c_5_4]]

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

3
2
1
0
A published solution is not available for this question yet.
Question 72 MCQ · 2.0 marks
Convert the hexadecimal number 0xAC73 to its equivalent binary representation.
1010 1100 1111 0101
1100 1100 1111 0101
1010 1100 0111 0011
1010 1001 0111 0011
A published solution is not available for this question yet.
Question 73 MCQ · 4.0 marks
Find the minimum number of bits required to represent an instruction set where there are 8
unique instructions and each instruction can take at most 2 operands.
Assume the first operand should be able to represent 64 registers and the second operand should
be able to represent -127 to 127 in signed magnitude form.
15
16
17
18
A published solution is not available for this question yet.
Question 74 MCQ · 4.0 marks
[[IMAGE:e78c145034d6e51c_7_6]]

G
f
D
e
A published solution is not available for this question yet.
Question 75 MCQ · 4.0 marks
[[IMAGE:e78c145034d6e51c_8_7]]

[[IMAGE:e78c145034d6e51c_8_8]]

[[IMAGE:e78c145034d6e51c_8_9]]

[[IMAGE:e78c145034d6e51c_8_10]]

[[IMAGE:e78c145034d6e51c_8_11]]

A published solution is not available for this question yet.
Question 76 MCQ · 4.0 marks
[[IMAGE:e78c145034d6e51c_9_12]]

231
221
120
241
A published solution is not available for this question yet.
Question 77 MCQ · 4.0 marks
[[IMAGE:e78c145034d6e51c_10_13]]

ac
c
bd
d
A published solution is not available for this question yet.
Question 78 NAT · 2.0 marks
[[IMAGE:e78c145034d6e51c_11_14]]

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

A published solution is not available for this question yet.