WorksheetsModule 2 Lesson 2 Part 2 Assessment
Total questions: 10
Worksheet time: 4mins
It is a template or a blueprint for objects.
(a)
A reserved words used by Java that specify the properties of the data, methods, and classes and how they can be used.
(a)
Evaluates an expression and if that evaluation is true then the specified action is taken
(a)
A pair of braces in a program forms a block that groups components of a program.
(a)
When a compiler sees two slashes (//), what did it do?
It scans all text between // in the same line
It ignores all text after // in the same line
It ignores all text between // in the same line
It scans all text after // in the same line
A collection of statements that performs a sequence of operations to display a message on the console.
Method
Package
Comments
Statements
Can blocks may contain other blocks?
Yes
No
Maybe
I dont know
What flow control statement does for, while, do while belongs?
Alteration
Escapes
Switch
Looping
The second line in the program specifies a package name.
Comments
Package
Reserved words
Modifiers
A command terminated by a semi-colon.
(a)
