WorksheetsHKICO Test
Total questions: 80
Worksheet time: 48mins
What would be the output?
(a)
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's the expected result? (Assume that x = 20)
Nothing happens
Game Over!
Keep Playing!
x = 0
None of the above
Following is a block and the respective code. What is the output?
I love
programming
i love programming
I LOVE PROGRAMMING
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. 7
B. 9
C. 6
D. 4
E. None of the above
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
How many elements in this list?
1
2
666-888
666-888,2000
3
What is the expected result when sorting the list numerically in ascending order?
A. 99, 123, 256, 345, 450
B. 123, 99, 345, 450, 256
C. 256, 450, 345, 123, 99
D. 450, 345, 256, 123, 99
E. None of the above
Refer to the following code, what is the final value of list 'feel'?
['so', 'so', 'happy', 'I'm']
['I'm', 'so', 'so', 'happy']
['I'm', 'so', 'happy']
['I'm', 'so', 'so', 'happy', 'happy']
None of the above
How many elements in this list?
2
50
98
100
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
What's the block we can use to add 'Friday' text?
to week append text 'Friday'
to UPPER CASE 'Friday'
trim spaces from both sides of 'Friday'
'Friday' is empty
None of the above
What’s the expected result?
week
MondayTuesdayWednesdayFriday
Monday
None of the above
Monday, Tuesday, Wednesday, Thursday,
Which of the following scripts gives the same final outcome?
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
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 is "item"?
A. A number
B. A variable
C. Counting how many blocks after "do..."
D. A constant
E. None of the above
What is the expected result?
2
3
8
11
None of the above
sprite.y == sprite.x
What does the sign mean?
equals
greater than
less than
gets the value of
sprite1.x > sprite2.x
Which of the option would make the console log print true?
sprite1.x is 100
sprite2.x is 100
sprite1.x is 200
sprite2.x is 100
sprite1.x is 100
sprite2.x is 200
sprite1.x is 100
sprite2.y is 100
Define: Boolean Expression
A question that can be answered either:
True OR False.
A question that can only be answered:
True.
A question that can only be answered:
False.
A question that can only be answered with a number.
What would the Sprite say if the Test is set to 10?
My name is Bob
I like Chocolate
Hello
I do not know
What is this a definition of: To carry out each instruction in the order they appear?
A. Selection
B. Iteration
C. Sequencing
D. Variable
What is this a definition of: The program makes decisions to take different paths depending on if a condition is True or False?
A. Selection
B. Iteration
C. Sequencing
D. Variable
What is this type of code known as?
A. Text based code
B. English code
C. Block Based code
D. Program language code
A
B
C
D
E
What is the output of the blockly program:
A. Multiplication of a, b, c
Number of items in the List.
Error in the program
Value of a, b, c
The index of character found in string S:
As the index of character stored in list count2
Greater than index of character stored in list count2
Greater or equal to the index of character stored in list count2
None of the above
What is the output of blockly program:
2
4
6
8
What is the output of blockly program:
2
4
6
8
What is the output of blockly program:
1
2
3
4
What is the output of blockly program:
List of position of the character appear in string S:
Display all characters that not appear in string S
Number of characters in string S
Number of the character appear in string S
Which information is true to tell about the Function?
It has two arguments
After of all, it returns the output result
Calculate multiplication x times value of y
Calculate multiplication y times value of x
What is the output of the following program?
38.5
101.3
1.8
32
The code doesn’t output anything, why?
Actually ‘0’ is printed but it’s 0 so we cannot see
There is an error because number does not have function ‘charAt’
“Hello World” is too long
Variable “text” is spelled wrong and the code cannot interpret variable with wrong names
What is the difference between the two blocks?
No difference
One would print another would not print
One would print twice another would only print once
Both code do nothing because 2 never equals to 1 nor 3
What is the output of the following program?
2
3
4
8
What’s the expected result of x?
24.8
1
The is no solution
77
What’s the output of the following code?
No output because colour cannot be printed
100 50 0
#rrggbb
A random color is represented as text of the form "#rrggbb
What is the expected output?
#0000
#000000
#0000000
#000
An error in a program that prevents the program from running as expected.
bug
debugging
workplane
code
What degree of turn needs to be added to the 'turn right' block to draw a triangle?
60
90
100
120
Which of the following block categories does not exist in Blockly?
Math
Logic
Loops
None of the above
What is the expected output of the following code?
3
9
150
170
If the user types in 'yellow' what does this program draw?
a yellow rectangle
a red rectangle
a green rectangle
a grey rectangle
Which of the following programs would make the turtle draw these steps. The turtle starts at the bottom left facing to the right (same as it is now).
What is this a definition of:
repeating steps, or instructions , over and over again. This is often called a 'loop'
Sequence
Selection
Variable
Iteration
Which of these blocks do you use to make a variable called side?
What is the output of the following code?
100
81
45
1
None of the above
What is the expected output?
123, 99, 345, 450, 256
Nothing
99, 123, 256, 345, 450
450, 345, 256, 123, 99
345, 450, 256, 99, 123
