Hcic 2021
Hcic 2021
Hcic 2021
X B
C
A D
Which of the following light sensor configurations is optimal for the robot to
follow a curve path?
Light Sensor
Wheel
(A) (C)
(B) (D)
Question (3)
Given that the Gear with 40 teeth (t) makes 1 complete revolution in 1 minute, what
is the number of revolution per minute (rpm) for each gear in the following gear
configuration?
Gear with 24t (rpm) Gear with 20t (rpm) Gear with 8t (rpm)
(A) 2.66 3 6
(B) 64 60 48
(C) 1.66 2 5
(D) 16 20 32
Question (4)
The following program is written to move the robot forward until a light sensor detects
the colour black on the ground. However, the program is not working as expected.
Assuming the robot is correctly built, identify which line(s) of the program you need
to alter for the program to function correctly.
(A) Line 2, 3, 4, 5
(B) Line 2, 6, 7
(C) Line 5
(D) Line 1, 3, 4
Question (5)
Pulse Width Modulation (PWM) is a method used to reduce the average power
delivered by an electrical signal, by effectively chopping the signal into discrete parts.
In the following diagram that shows the duty cycle of an electrical signal, what will
happen if a digital signal of 75% duty cycle is connected to a light bulb?
(A) The lower the duty cycle, the shorter the light bulb is on, the brighter the
light and it also corresponds to high power.
(B) The lower the duty cycle, the longer the light bulb is on, the dimmer the
light and it also corresponds to low power.
(C) The higher the duty cycle, the shorter the light bulb is on, the dimmer the
Light and it also corresponds to low power.
(D) The higher the duty cycle, the longer the light bulb is on, the brighter the
light and it also corresponds to high power.
Question (6)
(A)
(B)
(C)
(D)
Question (7)
The flowchart below shows the movement of an automatic car, what is the program
trying to achieve?
Artificial Intelligence allow a robot to perform complex tasks. Which of the following
statements is/are FALSE of either Artificial Intelligence (AI), Machine Learning (ML) and
Deep Learning (DL)?
Which of the following statements correctly describe the more stable bot?
Bot B
(A) i and ii
(B) iii and iv
(C) Both are equally stable
(D) Both are equally unstable
Question (10)
The diagram below shows a 2-wheeled motor robot with 2 light sensors. The robot is
required to move forward by following the black line. Which logic will allow the robot
to follow the line?
X=5
Y=6
X += Y
print(X)
(A) 5
(B) 6
(C) 11
(D) 1
Question (12)
Method 1:
She would replace each letter in the message with the letter which comes 4 places
later in the alphabet. For example, “AFTERNOON” will be send as “EJXIVRSSR”.
Method 2:
She would send across her message + key. Then she would replace each letter with
key places later in the alphabet. For example, “AFTERNOON” with Key=2 will be send
as “CHVGTPQQP”.
Method 1:
She would replace each letter in the message with the letter which comes 4 places
later in the alphabet. For example, “AFTERNOON” will be send as “EJXIVRSSR”.
Method 2:
She would send across her message + key. The she would replace each letter with key
places later in the alphabet. For example, “AFTERNOON” with Key = 2 will be send as
“CHVGTPQQP”.
Using Method 2, a message NKRRU with key = 6 is sent. What is the original
message?
(A) TQXX[
(B) HELLO
(C) CHVGT
(D) PIZZA
Question (14)
Input A, B and C
if A≥B and A≥C
M=A
elif B≥A and B≥C
M=B
else
M=C
Output M
Input D
T=0
for each index in D
if D[index] = = ‘A’
add 1 to T
Output T
Given
(a) Create an instance of the above Cat class named A with attribute name=’missy’
and age=3.
(b) B is an object created from Cat class. What is the output for B.sound()?
Q16 (c) c: 1 d: 1
Q17 (a) A=Cat(“missy”,3)
Q17(b) Meow…
Q17 (c) __init__()
sound()