wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Blockly-Kỳ Thi Olympic Tin Học Quốc Tế HKICO

Total questions: 79

Worksheet time: 57mins

Name
Class
Date
1.

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

4 lines
2.

Giải thưởng của Ban Tổ chức quốc tế cho phần thi viết có những gì?

a)

Cúp Vô địch, Giấy chứng nhận và Huy chương

b)

Cúp Á quân 1, Giấy chứng nhận và Huy chương

c)

Cúp Á quân 2, Giấy chứng nhận và Huy chương

d)

Huy chương và giấy chứng nhận

3.

Điều kiện xét giải cho Giải Vô địch là gì?

a)

Thí sinh cao điểm nhất mỗi khối thi

b)

Thí sinh đạt điểm cao thứ hai mỗi khối thi

c)

Thí sinh đạt TOP 8% điểm cao nhất mỗi khối thi

d)

Thí sinh đạt mức điểm trên điểm sàn của BTC

4.

Giải thưởng cho thí sinh đạt TOP 16% điểm cao nhất mỗi khối thi là gì?

a)

Huy chương và Giấy chứng nhận

b)

Cúp Giải Bạc và Giấy chứng nhận

c)

Cúp Vô địch và Giấy chứng nhận

d)

Giấy chứng nhận

5.

Giải Khuyến khích được trao cho thí sinh đạt mức điểm nào?

a)

Trên điểm sàn của BTC

b)

Dưới điểm sàn của BTC

c)

Bằng điểm sàn của BTC

d)

Không có điều kiện

6.

Vòng loại quốc gia có xếp giải không?

a)

Không xếp giải

b)

Có xếp giải

c)

Chỉ xếp giải cho thí sinh cao điểm

d)

Xếp giải cho tất cả thí sinh

7.

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.

4 lines
8.

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.

4 lines
9.

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.

4 lines
10.

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).

4 lines
11.

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).

4 lines
12.

Which of the following block categories does not exist in Blockly?

a)

Lists

b)

Loops

c)

Games

d)

Color

e)

None of the above

13.

What is Blockly maintained by?

a)

Your school

b)

Youtube

c)

Netflix

d)

Google

e)

None of the above

14.

What is the expected output?

a)

0

b)

2

c)

5

d)

10

e)

None of the above

15.

What does the gap shown in the red circle below suggest?

a)

More blocks can be filled in place

b)

Blocky has an error

c)

The two blocks don’t match

d)

Meaningless

e)

None of the above

16.

What is “Count”?

a)

Counting how many times the green loop repeats

b)

A variable

c)

0, it is always 0

d)

Counting how many blocks in the code

e)

None of the above

17.

Is the following list the same as the above? If not, what is the difference?

a)

Yes, they are the same

b)

No, this list has only one element

c)

No, this list contains more text blocks

d)

No, this list does not have print

e)

None of the above

18.

What is the message in “window.alert”? (It is equivalent to the content of print)

a)

Hey

b)

2

c)

3

d)

19

e)

None of the above

19.

Which of the following code can print all of the values of the list in a single line?

a)

b)

c)

d)

e)

None of the above

20.

Continuing on question 8, what is the line of output if the following block is added before printing?

a)

Hey Are you having fun with Blocky? YES!

b)

Hey Are you having fun YES!

c)

Hey Are you having fun with Blocky? YES!

d)

Hey Are you having fun with Blocky? 3 YES

e)

None of the above

21.

What is the value of the block?

a)

Hey

b)

0

c)

4

d)

Are you having fun

e)

None of the above

22.

What would be printed? Why?

a)

A. false, because nothing would equal to a random integer

b)

B. false, because random integer from 3 to 3 would cause error

c)

C. true, because length of abc is 3

d)

D. true, because length of string equals to a number in every condition

e)

E. None of the above

23.

Refer to the following code, the first line of output is 2. What is the second line of output? Why?

a)

Because random integer would not repeat

b)

Undetermined because random integer cannot be predicted (easily)

c)

2 because i is 2

d)

2 because this is the second time the loop repeats

e)

None of the above

24.

Is the value of the following two blocks equivalent? Why?

a)

Yes, they are both 3

b)

Yes, they have the same content

c)

No, length of a list would never equal to length of a text

d)

No, length of list is 3 but length of text does not equal to 3

e)

None of the above

25.

The following code is executed but there is no output, why?

a)

Picking random integer from a negative range causes error in Blocky

b)

The content for printing is not defined

c)

Repeat 1 time is never happening because “random integer from -3 to 1” is exclusive

d)

Value smaller than 1 is picked

e)

None of the above

26.

What would be printed with the following code executed?

a)

empty list

b)

not empty list

c)

Undetermined because value of list is unknown

d)

Nothing would be printed

e)

None of the above

27.

Can be removed in the following code to get the same result? Why?

a)

Yes, if the block can check list’s emptiness directly

b)

Yes, list is empty anyway

c)

The code produces error because list cannot contain random color

d)

No, because print “a list” does not print the variable “list”

e)

None of the above

28.

Following is a block and the respective code. What is the output?

a)

No output because color cannot be printed

b)

100 50 0

c)

#100500

d)

#ff7f00

e)

None of the above

29.

What is expected output of the following block? (Assume the underlying language is Java script)

a)

No output because the list contains elements of different types

b)

No output because the list contains expressions

c)

1, 2, 3

d)

item 1, 2, 3

e)

None of the above

30.

the following is a correct description of the code below?

a)

User would be prompted with “Hi, how are you?”, if the user replied with “I am fine”, “That’s great” would be printed.

b)

User would be prompted with “That’s great”, if the user continues to ask “Hi, how are you?”, “I am fine” would be printed.

c)

This code produces error because invalid code blocks are used, and the function name cannot contain non-alphabetical symbols too.

d)

User would be prompted with “Hi, how are you?” and nothing more because ‘=’ cannot be used with string but only with numbers.

e)

None of the above

31.

What is the output of the following code?

a)

13

b)

18

c)

21

d)

153

e)

None of the above

32.

What would this script do?

a)

Prints do 10 time.

b)

Prints 10

c)

Repeats the code in its body the specified number of times

d)

Color

e)

None of the above

33.

What is the expected result?

a)

2

b)

3

c)

8

d)

11

e)

None of the above

34.

What’s is “item”?

a)

A number

b)

A variable

c)

Counting how many blocks after “do...”

d)

A constant

e)

None of the above

35.

Refer to the following block, and respective code for question 4 and 5 What’s the expected result if the user enters x = 5?

a)

5 is a positive number

b)

-5 is a negative number

c)

x is a positive number

d)

x is a negative number

e)

None of the above

36.

What’s the expected result if the user enters a = 0?

a)

0 is a positive number

b)

0 is a negative number

c)

x is a positive number

d)

x is a negative number

e)

None of the above

37.

Which of the following scripts gives the same final outcome?

a)

b)

c)

d)

e)

None of the above

38.

Refer to the following block, and respective code for question 7 and 8. What’s the expected result?

a)

week

b)

MondayTuesdayWednesdayFriday

c)

Monday

d)

Monday, Tuesday, Wednesday, Thursday,

e)

None of the above

39.

What’s the block we can use to add “Friday” text?

a)

b)

c)

d)

e)

None of the above

40.

What’s the expected result?

a)

A. week

b)

B. MondayTuesdayWednesdayFriday

c)

C.Monday

d)

D.Monday, Tuesday, Wednesday, Thursday,

e)

E. None of the above

41.

How many characters is the following “item” string?

a)

A. 10

b)

B. 12

c)

C. 14

d)

D. 16

e)

E. None of the above

42.

How many elements in this list?

a)

A. 2

b)

B. 50

c)

C. 98

d)

D. 100

e)

E. None of the above

43.

What is the expected result?

a)

A. 123,99,345,450,256

b)

B. A

c)

C. Nothing

d)

D. 99,123,256,345,450

e)

E. None of the above

44.

Refer to the following code, what is the final value of list “feel”?

a)

A. [‘so’, ‘so’, ‘happy’, ‘I’m’]

b)

B. [‘I’m’, ‘so’, ‘so’, ‘happy’]

c)

C. [‘I’m’, ‘so’, ‘happy’]

d)

D. [‘I’m’, ‘so’, ‘so’, ‘happy’, ‘happy’]

e)

E. None of the above

45.

How many elements in this list?

a)

A. 1

b)

B. 2

c)

C. 666-888

d)

D. 666-888,2000

e)

E. 3

46.

What would be printed with the following code executed?

a)

A. x is not empty

b)

B. x is empty

c)

C. Undetermined because value of list is unknown

d)

D. Nothing would be printed

e)

E. None of the above

47.

Following is a block and the respective code. What is the output?

a)

A. 7

b)

B. 9

c)

C. 6

d)

D. 4

e)

E. None of the above

48.

Following is a block and the respective code. What is the final value of x?

a)

A. 2

b)

B. -4

c)

C. 0

d)

D. -2

e)

E. None of the above

49.

Following is a block and the respective code. What is the output?

a)

A. I love

b)

B. programming

c)

C. i love programming

d)

D. I LOVE PROGRAMMING

e)

E. None of the above

50.

What’s the expected result? (Assume that x = 20)

a)

A. Nothing happens

b)

B. Game Over!

c)

C. Keep Playing!

d)

D. x = 0

e)

E. None of the above

51.

What’s the following scripts get the same result?

a)

A.

b)

B.

c)

C. Both A and B are correct

d)

D. Both A and B are incorrect

e)

E. None of the above

52.

What is the output of the following code?

a)

A. 123

b)

B. 3

c)

C. 10

d)

D. 110

e)

E. None of the above

53.

What would this script do?

a)

A. Generates a random colour each time it is called

b)

B. Picks a red colour

c)

C. Clear a random colour

d)

D. Print a random colour

e)

E. None of the above

54.

What would above script do?

4 lines
55.

2. What would above script do?

a)

In ra 5 số nguyên ngẫu nhiên từ 1 đến 100

b)

In ra một số nguyên ngẫu nhiên từ 1 đến 100

c)

In ra một số nguyên từ 1 đến 100 và

d)

In ra một số nguyên ngẫu nhiên từ 5 đến 100

e)

Không có câu nào ở trên

56.

3. What’s the output of the following scripts? Is it get the same result?

a)

Có, chúng giống nhau

b)

Không, script này in ra 5 lần một số nguyên ngẫu nhiên từ 1 đến 100

c)

Script này không thể chạy

d)

Không, script này tính tổng của 1 và 5

e)

Không có câu nào ở trên

57.

4. How many times is the “print” command executed?

a)

0

b)

1

c)

2

d)

3

e)

Không có câu nào ở trên

58.

5. What is “i”?

a)

Đếm số lần vòng lặp xanh lặp lại

b)

Một biến

c)

0, nó luôn là 0

d)

Đếm số khối trong mã

e)

Không có câu nào ở trên

59.

6. What’s the expected result of “x”?

a)

10

b)

6

c)

-1

d)

4

e)

Không có câu nào ở trên

60.

7. The first line of output is 5, 10, 15. What is the second line of output? Why?

a)

i. Bởi vì số nguyên ngẫu nhiên sẽ không lặp lại

b)

2. Bởi vì đây là lần thứ hai vòng lặp for

c)

Không xác định vì số không thể dự đoán

d)

3 vì độ dài của số là 3

e)

Không có câu nào ở trên

61.

8. What’s the length of “number”?

a)

5

b)

10

c)

15

d)

3

e)

Không có câu nào ở trên

62.

9. Refer to the following code What is the expected results?

a)

Nó có thể từ 1 đến 10

b)

1

c)

3

d)

8 vì đây là lần thứ ba vòng lặp lặp lại

e)

Không có câu nào ở trên

63.

10. The following code is executed but there is no output, why?

a)

Lấy số nguyên ngẫu nhiên từ một khoảng âm gây ra lỗi trong Blockly

b)

Nội dung để in không được xác định

c)

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ừ

d)

k không được xác định

e)

Không có câu nào ở trên

64.

11. What would be printed?

a)

Blockly

b)

G

c)

Google

d)

Blockly, Google

e)

Không có câu nào ở trên

65.

12. What would be printed with the following code executed?

a)

Hello

b)

2

c)

Length = 2

d)

Length # 2

e)

Không có câu nào ở trên

66.

13. How many times is the “print” command executed?

a)

Bằng với độ dài của “text”

b)

2

c)

Bằng với độ dài của “i”

d)

5

e)

Không có câu nào ở trên

67.

How many times is the “print” command executed?

a)

Equal to length of “text”

b)

2

c)

Equal to length of “i”

d)

5

e)

None of the above

68.

What would be printed with the following code executed?

a)

45

b)

50

c)

5

d)

100

e)

None of the above

69.

Following is a block and the respective code. What is the output?

a)

Blockly?

b)

?

c)

The code generates error

d)

Do you like Blockly?

e)

None of the above

70.

What would be printed?

a)

3

b)

5

c)

7

d)

8

e)

None of the above

71.

What is the final value of “item”?

a)

Hello

b)

New

c)

New World!

d)

Hello World!

e)

None of the above

72.

What’s the value of “x”?

a)

5

b)

25

c)

125

d)

Both A and B

e)

None of the above

73.

What’s the value of “y”?

a)

5

b)

25

c)

125

d)

Both A and B

e)

None of the above

74.

What would be printed?

a)

3.1,250,1+1

b)

3.1,250,1

c)

3,250,1,1

d)

3,250, 2

e)

None of the above

75.

Building blocks in Blockly are divided into many categories. Which category does the following block belong to?

a)

Lists

b)

Loops

c)

Logic

d)

Color

e)

None of the above

76.

What is the expected result?

a)

-9

b)

231

c)

222

d)

240

e)

None of the above

77.

What is the expected output? Why?

a)

4 Because 4 * 4 = 16

b)

- 4 Because -4 * 4 = -16

c)

Both A and B are correct

d)

NaN. Because -16 is a negative number. It doesn’t have square root.

e)

None of the above

78.

Student A wants to find average of 10 and 98. Which of the following script is correct?

a)
b)
c)
d)
e)

None of the above

79.

What would this command do?

a)

"Repeat while" loops repeat their bodies while some condition is false

b)

"Repeat while" loops repeat their bodies while some condition is true

c)

"Repeat while" loops repeat their bodies until some condition is false

d)

"Repeat while" loops repeat their bodies until some condition is true

e)

None of the above