0% found this document useful (0 votes)
186 views24 pages

Hcic 2022

The document contains 15 multiple choice questions about robotics, programming, and computational thinking concepts. The questions cover topics like gear ratios, robot movement directions, line-following algorithms, LED setup code functions, Arduino code behavior, stability of car designs, computational thinking parts, ultrasonic sensor robot behaviors, 2D image arrays, robot movement functions, code output values, string manipulation, and conditionals. The document also includes 5 additional short answer questions testing code output and conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views24 pages

Hcic 2022

The document contains 15 multiple choice questions about robotics, programming, and computational thinking concepts. The questions cover topics like gear ratios, robot movement directions, line-following algorithms, LED setup code functions, Arduino code behavior, stability of car designs, computational thinking parts, ultrasonic sensor robot behaviors, 2D image arrays, robot movement functions, code output values, string manipulation, and conditionals. The document also includes 5 additional short answer questions testing code output and conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Question A1

The figure below shows a gear train of THREE GEARS, which of the following
statements is true?

(A) The gear ratio of A : B is 2 : 1


(B) Gear B and C has more torque than speed.
(C) If the input Gear A moves clockwise, the output Gear C will move counter-
clockwise.
(D) If Gear B moves counter-clockwise, Gear A and Gear C will move clockwise
Question A2

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) if the car is right above the line:


go straight
else if the car is to the right of the line:
turn a little bit to the right
else if the car is to the left of the line:
turn a little bit to the left
else
stop

(B) if the car is right above the line:


stop
else if the car is to the right of the line:
turn a little bit to the left
else if the car is to the left of the line:
turn a little bit to the right
else
go straight
(C) if the car is right above the line:
go straight
else if the car is to the right of the line:
turn a little bit to the left
else if the car is to the left of the line:
turn a little bit to the right
else
stop

(D) if the car is right above the line:


go straight
else if the car is to the right of the line:
stop
else if the car is to the left of the line:
stop
else
turn a little bit to either left or right
Question A4

In a basic microcontroller set-up to light up an LED, the following code is used.


What is the function of the program below?

(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?

(A) It starts with the variable “a” setting to 0.


(B) It adds 1 to the value of “a” and waits 1 second.
(C) It repeats the process until “a” has a value of 10.
(D) Once “a” is equal to 10, the comparison in the while statement is true.
Question A6

In the figure below, which car is unstable and why?

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

What are the key parts of computational thinking?

(A) Programming, flowcharts and pseudo code


(B) Abstraction, decomposition and algorithm
(C) Input, processing and output
(D) Patterns, shapes and numbers
Question A8

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

What is the output after executing the following segment of code?

(A) error
(B) 4
(C) 5
(D) none of the above
Question A12

What is the output after executing the following segment of code?

(A) error
(B) 7
(C) 115
(D) none of the above
Question A13

What is the output after executing the following segment of code?

(A) aiAOeAai
(B) aieai
(C) aeio
(D) none of the above
Question A14

What is the output after executing the following segment of code?

(A) 5
(B) 4
(C) 1
(D) 0
Question A15

What is the output after executing the following segment of code?

(A) error
(B) (‘H’,’C’)
(C) (‘H’,’C’,’I’)
(D) (‘H’,’C’,’I’,‘C’)
Section B

Question B1

What is the output for the following segment of code?

Answer: _____________________________
Question B2

If '101' is printed, what should be inside range( )?

Answer: _________________________________
Question B3

If the output is True, what is b?

Answer: _________________
Question B4

Write down the output for print(ans) if ans = 70/5.

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

You might also like