You are on page 1of 7

HONG KONG INTERNATIONAL

COMPUTATIONAL OLYMPIAD
PRELIMINARY ROUND 2021- 2022

Blockly
Question Paper
Phiếu câu hỏi
Time allowed: 45 minutes
Thời gian thi: 45 phút

Instructions to Contestants: (Hướng dẫn thi)


1. Each contestant should have ONE Question-Answer Book which CANNOT be taken away.
Mỗi thí sinh được cấp MỘT bộ Phiếu câu hỏi - Phiếu trả lời. Thí sinh KHÔNG ĐƯỢC mang tài liệu ra
ngoài phòng thi.

2. There are a total of 16 questions in this Question-Answer Book. Two points for a correct answer.
No points for blank answers. ONE penalty point will be deducted for an incorrect answer.
Đề thi gồm 16 câu hỏi. Mỗi câu trả lời đúng được 2 điểm. Câu không trả lời không bị trừ điểm. Mỗi câu
trả lời sai sẽ bị trừ MỘT điểm.

3. All answers should be written on ANSWER SHEET.


Tất cả đáp án phải được điền vào PHIẾU TRẢ LỜI.

4. During the contest, NO calculators can be used for Scratch and Blockly but calculators can be
used for Python.
Thí sinh thi ngôn ngữ Scratch và Blockly KHÔNG được dùng máy tính cầm tay. Thí sinh thi ngôn ngữ
Python được dùng máy tính cầm tay.

5. This Question-Answer Book will be collected at the end of the contest.


Bộ Phiếu câu hỏi – Phiếu trả lời sẽ được thu lại sau khi thí sinh hoàn thành bài thi.

6. DO NOT turn over this Question-Answer Book without approval of the examiner.
Thí sinh KHÔNG tự ý xem đề khi chưa có hiệu lệnh của giám thị.

Otherwise, contestant may be DISQUALIFIED.


Nếu thí sinh vi phạm một trong các điều trên, BTC có quyền hủy kết quả thi của thí sinh đó.

1
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

1. Which is a drag and drop text-based programming language used to learn the basics of
coding?
A. Algorithm B. Blockly C. Loop D. Sprite E. Block

2. Which of these would create a loop?

A.

B.

C.
D. All of the above
E. None of the above

3. Which block would change the color of the outline of a shape?

A.

B.

C.

D.
E. None of the above

4. What is this a definition of: repeating steps, or instructions , over and over again? This is
often called a 'loop'.
A. Sequence B. Variable C. Iteration D. Selection E. Logic

2
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

5. Here is a program that draws a square.

Which of the following would make exactly the same square in the same position?

A. B.

C. D.

E. None of the above


6. Which of these blocks do you use to make a variable called side?

A. B.

C. D.
E. None of the above
7. Which is a placeholder for a piece of information that can change?
A. Sequencing B. Variable C. Command D. Logical E. Event

3
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

8. Look at the following code. This traffic lights program should draw a green square if it is
safe to go and if not a red square. It is not working - what is happening?

A. It doesn't draw squares


B. It draws a red square instead of a green square
C. The user cannot enter yes
D. The red square never works
E. None of the above

9. What is the main purpose of a variable?


A. To help you find sprites.
B. So you can draw circles and change colors.
C. To have to enter code into the variable and then it will be throughout your program
wherever you put the variable.
D. All of the above
E. None of the above

10. What is this a definition of: the program makes decisions to take different paths
depending on if a condition is true or false?
A. Sequence B. Variable C. Iteration D. Selection E. Logic

11. What is a binary decision?


A. Something that only has two possible answers
B. An answer that is only Yes or No
C. Something that uses a linear approach to solve problems
4
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

D. Following steps to reach a single solution


E. None of the above

12. Referring the following script below. What’s the result of “Count”?

A. 1
B. 2
C. 3
D. 4
E. None of the above
13. Which blocks are missing in this maze?

A. Left B. Right C. Left-Left D. Right-Right E. Left-Right

14. Choose the correct coding for the given picture.

5
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

A.

B.

C.
D. All of the above
E. None of the above

15. Which of the following statements about Blockly are FALSE?


A. Blockly is a programming language which makes use visual blocks of code.
B. Blockly is used by business programmers to create code.
C. When you use Blockly, although you are coding in blocks you are still using code that
underlies the blocks.
D. The blocks in Blockly can be dragged and dropped into the programming area.
E. None of the above

16. What are the three main parts of a Blockly screen on Code.org?
A. a television, a video game and worksheets
B. toolbox, game space and workspace
C. tires, fires and wires
D. breakfast, lunch and dinner
E. block, script, sprite

6
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội
All answers should be written on the ANSWER SHEET.
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

KEY
1) B 9) C
2 2 2 2

2) A 10) D
2 2 2 2

3) D 11) A
2 2 2 2

4) C 12) D
2 2 2 2

5) B 13) E
2 2 2 2

6) A 14) C
2 2 2 2

7) B 15) B
2 2 2 2

8) B 16) B
2 2 2 2

7
KỲ THI OLYMPIC TIN HỌC QUỐC TẾ HKICO (HongKong International Computational Olympiad)
FERMAT Education: Số 6A1 tiểu khu Ngọc Khánh, Ba Đình, Hà Nội

You might also like