Font size
WorksheetsCodeHS - Java - Karel - Sec1-4
Total questions: 14
Worksheet time: 7mins
What line does the "run method" start on?
2
4
6
7
What line does the "run method" end on?
2
4
6
7
What do you call it when you don't use spaces but instead capitalize each word in a Java command?
camel case
cow case
kookaburra case
cucumber case
What is wrong with the "run method"?
It is missing the closing curley bracket.
It is missing the opening curley bracket.
It is missing both the opening and closing curley bracket.
The code is written outside of the curley brackets.
What is wrong with the "run method"?
It is missing the closing curley bracket.
It is missing the opening curley bracket.
It is missing both the opening and closing curley bracket.
The code is written outside of the curley brackets.
What is wrong with the "run method"?
It is missing the closing curley bracket.
It is missing the opening curley bracket.
It is missing both the opening and closing curley bracket.
The code is written outside of the curley brackets.
What is wrong with the "run method"?
It is missing the closing curley bracket.
It is missing the opening curley bracket.
It is missing both the opening and closing curley bracket.
The code is written outside of the curley brackets.
What is wrong with the "run method"?
It is missing the closing curley bracket.
It is missing the opening curley bracket.
It is missing both the opening and closing curley bracket.
The code is written outside of the curley brackets.
You want to define a method. What line do you type "private void..." on?
2
5
7
9
Where is the method "makePancakes()" DEFINED?
6
9
12
17
Where is the method "makePancakes()" CALLED? (There are multiple answers)
6
9
12
17
What line is the method "turnRight()" DEFINED?
6
11
13
18
What line is the method "turnRight()" CALLED? (There are multiple correct answers)
6
11
13
18
Where do you start typing "private void" when you want to DEFINE a new method?
after the "run method" closing curly bracket.
before the "class" curly bracket closes
Before the "run method" is defined.
After the "class" curly bracket closes.
