Hcic 2022
Hcic 2022
The figure below shows a gear train of THREE GEARS, which of the following
statements is true?
The following robot is built such that the omni-wheels are placed at the corners of
the robot. Which direction should wheels A, B, C and D spin such that the robot
moves in the direction indicated below?
B D
(A)
(B)
(C)
(D)
Question A3
The diagram below shows a car that follows a thick dark shaded line on the
ground. The front of the car is equipped with photoelectric sensors on the left and
right. Both sensors face the ground so that they are able to detect the intensity of
the reflected light. Which of the following algorithm best describes how the car
should move?
(A) This sets up the pin that the LED is connected to as an OUTPUT pin.
(B) This sets up the pin that the LED is connected to as an INPUT pin.
(C) This sets up the LED to turn off.
(D) This sets up the LED to turn on.
Question A5
Based on the following sketch from an Arduino IDE, which statement is False?
Center of
gravity
(A) Car on the right is unstable because its center of mass is low; it has a
wider base; it has more height.
(B) Car on the left is unstable because its center of mass is high; it has a
narrow base; it has a high height.
(C) Car on the right is likely to topple over due to its bulkiness.
(D) Car on the left is unlikely to topple over as its narrow body could cut
through the wind.
Question A7
The figure below shows a scratch-block program that involves the use of
ultrasonic sensor. The program is being downloaded to a robot. Which statement
below does not describe how the robot would behave?
(A) Robot will always move forward until it is 20cm away from the wall
(B) Robot will always move backward at 20cm away from the wall
(C) Robot will move backward at 15cm away from the wall
(D) Robot will stop at 15 – 20cm away from the wall
Question A9
The figure below shows a two-dimensional array used to process digital images. If
you use img to represent a digital image, then img[i, j] means the pixel is in the
i+1 row from the top to the bottom and the j+1 column from the left to the right.
During programming, we can store the acquired pixel in the variable pix through
the assignment statement pix = img[i, j]. What one of the following options show
img[2,1]?
(A)
(B)
(C)
(D)
Question A10
Given that a function go() could move a robot a fixed distance forward and a
function turn_right() could made a right turn at 90 degree. Assuming all
parameters within the functions are accurate for each function to do what it
needs to do, which of the following shows the correct movement of the robot?
def turn_right():
go(50,-50,1.31)
for i in range(4):
go(50,50,2)
turn_right()
(A)
(B)
(C)
(D)
Question A11
(A) error
(B) 4
(C) 5
(D) none of the above
Question A12
(A) error
(B) 7
(C) 115
(D) none of the above
Question A13
(A) aiAOeAai
(B) aieai
(C) aeio
(D) none of the above
Question A14
(A) 5
(B) 4
(C) 1
(D) 0
Question A15
(A) error
(B) (‘H’,’C’)
(C) (‘H’,’C’,’I’)
(D) (‘H’,’C’,’I’,‘C’)
Section B
Question B1
Answer: _____________________________
Question B2
Answer: _________________________________
Question B3
Answer: _________________
Question B4
Answer: _________________
Question B5
What should be the condition for the if statement in the following segment of
code?
Answer: _________________
Answers for HCIC 2022
Section A Answer
1 D
2 D
3 C
4 A
5 D
6 B
7 B
8 B
9 C
10 D
11 C
12 C
13 B
14 B
15 D
Section B Answer
1 Car
2 0,3 or 3
3 ‘False’
4 14.0
5 num%2==0