NEW
Font size
WorksheetsICT Java programming workshop
Total questions: 10
Worksheet time: 5mins
From the following which is NOT an example of a class?
Animals
Cars
Simon's cat
Tools
What is the error in this program?
Missing opening bracket {
Missing closing bracket }
Missing closing parenthesis )
Missing opening parenthesis (
What is the error in this program?
Closing parenthesis )
semicolon is missing ;
Quotation is not closed "
Opening bracket {
What is the name of the window where the IDE shows the results of a program?
Console window
Debug window
Emerging window
If we run this program, what would be shown in the console?
The operation is 50
The operation is
30
Nothing
An error
This program prints in console
The variables x and y.
The variables and the result of the operation.
Nothing, because there is an error.
Only the result of the operation.
This program will print in console the following:
The palindrom is borrow or rob
The palindrom is rob or borrow
In this code, the text after the "//" character is used to
Perform internal operations
Print important information to the user
Describe what each of the lines of code represent in the program
Define variables
This code will print in the console
a
b
a+b
a-b
From the following, which CANNOT be used as a class name?
HelloWorld
helloWorld
Hello World
H3lloW0rld
