Font size
WorksheetsBlockly-Kỳ Thi Olympic Tin Học Quốc Tế HKICO
Total questions: 79
Worksheet time: 57mins
Vòng thi Vòng loại quốc gia Vòng Chung kết quốc gia Vòng Chung kết quốc tế Dạng đề thi Trắc nghiệm Số câu hỏi 16 câu 20 câu 24 câu Thang điểm Làm đúng +2 điểm +4 điểm +5 điểm Không làm 0 điểm 0 điểm 0 điểm Làm sai -1 điểm -1 điểm -1 điểm Cách tính điểm Số câu đúng x 2 + Số câu sai x (-1) + 16 Số câu đúng x 4 + Số câu
Giải thưởng của Ban Tổ chức quốc tế cho phần thi viết có những gì?
Cúp Vô địch, Giấy chứng nhận và Huy chương
Cúp Á quân 1, Giấy chứng nhận và Huy chương
Cúp Á quân 2, Giấy chứng nhận và Huy chương
Huy chương và giấy chứng nhận
Điều kiện xét giải cho Giải Vô địch là gì?
Thí sinh cao điểm nhất mỗi khối thi
Thí sinh đạt điểm cao thứ hai mỗi khối thi
Thí sinh đạt TOP 8% điểm cao nhất mỗi khối thi
Thí sinh đạt mức điểm trên điểm sàn của BTC
Giải thưởng cho thí sinh đạt TOP 16% điểm cao nhất mỗi khối thi là gì?
Huy chương và Giấy chứng nhận
Cúp Giải Bạc và Giấy chứng nhận
Cúp Vô địch và Giấy chứng nhận
Giấy chứng nhận
Giải Khuyến khích được trao cho thí sinh đạt mức điểm nào?
Trên điểm sàn của BTC
Dưới điểm sàn của BTC
Bằng điểm sàn của BTC
Không có điều kiện
Vòng loại quốc gia có xếp giải không?
Không xếp giải
Có xếp giải
Chỉ xếp giải cho thí sinh cao điểm
Xếp giải cho tất cả thí sinh
Thí sinh đạt TOP 8% điểm cao nhất mỗi khối thi Cúp Giải Vàng và Giấy chứng nhận Giải Bạc.
Thí sinh đạt TOP 16% điểm cao nhất mỗi khối thi Cúp Giải Bạc và Giấy chứng nhận Giải Đồng.
Thí sinh đạt TOP 24% điểm cao nhất mỗi khối thi Cúp Giải Đồng và giấy chứng nhận Giải Khuyến khích.
Thí sinh cao điểm nhất Vòng Chung kết quốc gia được giải thưởng tiền mặt 5.000.000 đồng (năm triệu đồng).
Với mỗi khối có từ 100 thí sinh tham dự Vòng loại quốc gia, thí sinh cao điểm nhất mỗi khối thi Vòng Chung kết quốc gia được giải thưởng tiền mặt 2.000.000 đồng (hai triệu đồng).
Which of the following block categories does not exist in Blockly?
Lists
Loops
Games
Color
None of the above
What is Blockly maintained by?
Your school
Youtube
Netflix
None of the above
What is the expected output?
0
2
5
10
None of the above
What does the gap shown in the red circle below suggest?
More blocks can be filled in place
Blocky has an error
The two blocks don’t match
Meaningless
None of the above
What is “Count”?
Counting how many times the green loop repeats
A variable
0, it is always 0
Counting how many blocks in the code
None of the above
Is the following list the same as the above? If not, what is the difference?
Yes, they are the same
No, this list has only one element
No, this list contains more text blocks
No, this list does not have print
None of the above
What is the message in “window.alert”? (It is equivalent to the content of print)
Hey
2
3
19
None of the above
Which of the following code can print all of the values of the list in a single line?
None of the above
Continuing on question 8, what is the line of output if the following block is added before printing?
Hey Are you having fun with Blocky? YES!
Hey Are you having fun YES!
Hey Are you having fun with Blocky? YES!
Hey Are you having fun with Blocky? 3 YES
None of the above
What is the value of the block?
Hey
0
4
Are you having fun
None of the above
What would be printed? Why?
A. false, because nothing would equal to a random integer
B. false, because random integer from 3 to 3 would cause error
C. true, because length of abc is 3
D. true, because length of string equals to a number in every condition
E. None of the above
Refer to the following code, the first line of output is 2. What is the second line of output? Why?
Because random integer would not repeat
Undetermined because random integer cannot be predicted (easily)
2 because i is 2
2 because this is the second time the loop repeats
None of the above
Is the value of the following two blocks equivalent? Why?
Yes, they are both 3
Yes, they have the same content
No, length of a list would never equal to length of a text
No, length of list is 3 but length of text does not equal to 3
None of the above
The following code is executed but there is no output, why?
Picking random integer from a negative range causes error in Blocky
The content for printing is not defined
Repeat 1 time is never happening because “random integer from -3 to 1” is exclusive
Value smaller than 1 is picked
None of the above
What would be printed with the following code executed?
empty list
not empty list
Undetermined because value of list is unknown
Nothing would be printed
None of the above
Can be removed in the following code to get the same result? Why?
Yes, if the block can check list’s emptiness directly
Yes, list is empty anyway
The code produces error because list cannot contain random color
No, because print “a list” does not print the variable “list”
None of the above
Following is a block and the respective code. What is the output?
No output because color cannot be printed
100 50 0
#100500
#ff7f00
None of the above
What is expected output of the following block? (Assume the underlying language is Java script)
No output because the list contains elements of different types
No output because the list contains expressions
1, 2, 3
item 1, 2, 3
None of the above
the following is a correct description of the code below?
User would be prompted with “Hi, how are you?”, if the user replied with “I am fine”, “That’s great” would be printed.
User would be prompted with “That’s great”, if the user continues to ask “Hi, how are you?”, “I am fine” would be printed.
This code produces error because invalid code blocks are used, and the function name cannot contain non-alphabetical symbols too.
User would be prompted with “Hi, how are you?” and nothing more because ‘=’ cannot be used with string but only with numbers.
None of the above
What is the output of the following code?
13
18
21
153
None of the above
What would this script do?
Prints do 10 time.
Prints 10
Repeats the code in its body the specified number of times
Color
None of the above
What is the expected result?
2
3
8
11
None of the above
What’s is “item”?
A number
A variable
Counting how many blocks after “do...”
A constant
None of the above
Refer to the following block, and respective code for question 4 and 5 What’s the expected result if the user enters x = 5?
5 is a positive number
-5 is a negative number
x is a positive number
x is a negative number
None of the above
What’s the expected result if the user enters a = 0?
0 is a positive number
0 is a negative number
x is a positive number
x is a negative number
None of the above
Which of the following scripts gives the same final outcome?
None of the above
Refer to the following block, and respective code for question 7 and 8. What’s the expected result?
week
MondayTuesdayWednesdayFriday
Monday
Monday, Tuesday, Wednesday, Thursday,
None of the above
What’s the block we can use to add “Friday” text?
None of the above
What’s the expected result?
A. week
B. MondayTuesdayWednesdayFriday
C.Monday
D.Monday, Tuesday, Wednesday, Thursday,
E. None of the above
How many characters is the following “item” string?
A. 10
B. 12
C. 14
D. 16
E. None of the above
How many elements in this list?
A. 2
B. 50
C. 98
D. 100
E. None of the above
What is the expected result?
A. 123,99,345,450,256
B. A
C. Nothing
D. 99,123,256,345,450
E. None of the above
Refer to the following code, what is the final value of list “feel”?
A. [‘so’, ‘so’, ‘happy’, ‘I’m’]
B. [‘I’m’, ‘so’, ‘so’, ‘happy’]
C. [‘I’m’, ‘so’, ‘happy’]
D. [‘I’m’, ‘so’, ‘so’, ‘happy’, ‘happy’]
E. None of the above
How many elements in this list?
A. 1
B. 2
C. 666-888
D. 666-888,2000
E. 3
What would be printed with the following code executed?
A. x is not empty
B. x is empty
C. Undetermined because value of list is unknown
D. Nothing would be printed
E. None of the above
Following is a block and the respective code. What is the output?
A. 7
B. 9
C. 6
D. 4
E. None of the above
Following is a block and the respective code. What is the final value of x?
A. 2
B. -4
C. 0
D. -2
E. None of the above
Following is a block and the respective code. What is the output?
A. I love
B. programming
C. i love programming
D. I LOVE PROGRAMMING
E. None of the above
What’s the expected result? (Assume that x = 20)
A. Nothing happens
B. Game Over!
C. Keep Playing!
D. x = 0
E. None of the above
What’s the following scripts get the same result?
A.
B.
C. Both A and B are correct
D. Both A and B are incorrect
E. None of the above
What is the output of the following code?
A. 123
B. 3
C. 10
D. 110
E. None of the above
What would this script do?
A. Generates a random colour each time it is called
B. Picks a red colour
C. Clear a random colour
D. Print a random colour
E. None of the above
What would above script do?
2. What would above script do?
In ra 5 số nguyên ngẫu nhiên từ 1 đến 100
In ra một số nguyên ngẫu nhiên từ 1 đến 100
In ra một số nguyên từ 1 đến 100 và
In ra một số nguyên ngẫu nhiên từ 5 đến 100
Không có câu nào ở trên
3. What’s the output of the following scripts? Is it get the same result?
Có, chúng giống nhau
Không, script này in ra 5 lần một số nguyên ngẫu nhiên từ 1 đến 100
Script này không thể chạy
Không, script này tính tổng của 1 và 5
Không có câu nào ở trên
4. How many times is the “print” command executed?
0
1
2
3
Không có câu nào ở trên
5. What is “i”?
Đếm số lần vòng lặp xanh lặp lại
Một biến
0, nó luôn là 0
Đếm số khối trong mã
Không có câu nào ở trên
6. What’s the expected result of “x”?
10
6
-1
4
Không có câu nào ở trên
7. The first line of output is 5, 10, 15. What is the second line of output? Why?
i. Bởi vì số nguyên ngẫu nhiên sẽ không lặp lại
2. Bởi vì đây là lần thứ hai vòng lặp for
Không xác định vì số không thể dự đoán
3 vì độ dài của số là 3
Không có câu nào ở trên
8. What’s the length of “number”?
5
10
15
3
Không có câu nào ở trên
9. Refer to the following code What is the expected results?
Nó có thể từ 1 đến 10
1
3
8 vì đây là lần thứ ba vòng lặp lặp lại
Không có câu nào ở trên
10. The following code is executed but there is no output, why?
Lấy số nguyên ngẫu nhiên từ một khoảng âm gây ra lỗi trong Blockly
Nội dung để in không được xác định
Lặp lại 5 lần không bao giờ xảy ra vì “số nguyên ngẫu nhiên từ 1 đến 20” là loại trừ
k không được xác định
Không có câu nào ở trên
11. What would be printed?
Blockly
G
Blockly, Google
Không có câu nào ở trên
12. What would be printed with the following code executed?
Hello
2
Length = 2
Length # 2
Không có câu nào ở trên
13. How many times is the “print” command executed?
Bằng với độ dài của “text”
2
Bằng với độ dài của “i”
5
Không có câu nào ở trên
How many times is the “print” command executed?
Equal to length of “text”
2
Equal to length of “i”
5
None of the above
What would be printed with the following code executed?
45
50
5
100
None of the above
Following is a block and the respective code. What is the output?
Blockly?
?
The code generates error
Do you like Blockly?
None of the above
What would be printed?
3
5
7
8
None of the above
What is the final value of “item”?
Hello
New
New World!
Hello World!
None of the above
What’s the value of “x”?
5
25
125
Both A and B
None of the above
What’s the value of “y”?
5
25
125
Both A and B
None of the above
What would be printed?
3.1,250,1+1
3.1,250,1
3,250,1,1
3,250, 2
None of the above
Building blocks in Blockly are divided into many categories. Which category does the following block belong to?
Lists
Loops
Logic
Color
None of the above
What is the expected result?
-9
231
222
240
None of the above
What is the expected output? Why?
4 Because 4 * 4 = 16
- 4 Because -4 * 4 = -16
Both A and B are correct
NaN. Because -16 is a negative number. It doesn’t have square root.
None of the above
Student A wants to find average of 10 and 98. Which of the following script is correct?
None of the above
What would this command do?
"Repeat while" loops repeat their bodies while some condition is false
"Repeat while" loops repeat their bodies while some condition is true
"Repeat while" loops repeat their bodies until some condition is false
"Repeat while" loops repeat their bodies until some condition is true
None of the above
