Professional Documents
Culture Documents
Mẫu Câu Hỏi Trong Đề Thi Hkico I - Java
Mẫu Câu Hỏi Trong Đề Thi Hkico I - Java
Mẫu Câu Hỏi Trong Đề Thi Hkico I - Java
I - Java
Refer to the following code for question 1 to 2
B. args is an array but printf only accepts Object as the second argument
C. var declaration of b in line 13 makes args type in line 6 undetermined
D. Primitive array cannot be converted to an Object
E. None of the above
2. From the function definition given below and its use in the above code, which of
the following statement concludes the effect of this code segment
IntStream.of(args).boxed() (line 7)?
All answers should be written on the ANSWER SHEET.
from java.util.stream.IntStream
A. Turn the primitive IntStream generated from args into a Integer Stream
B. Turn args into an Integer array
C. Put args into an Integer box
D. Doing both A & B sequentially
E. None of the above
II – Scratch
1 - Later the student changes the script as the following and gets the result shown
in the following scene
He/She wants each trace of cat to be covered by those on the right instead, what
could he/she do?
Why doesn’t the cat stop “meowing” even after the mouse was clicked once?
Or how should it be fixed?
III – C ++
1 - What is the expected output of the program?
A. 2147483647
B. 4294967294
C. 4611686014132420609
D. 9223372036854775807
E. None of the above
IV – Pyphon
1. Given the code
A. 7
B. [1, 2, 3]
C. [1, 2, 3, None, None, None, 7]
D. [1, 2, 3, 7]
E. None of the above
V – Blockly
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 contains 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