wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Module 2 Lesson 2 Part 2 Assessment

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

It is a template or a blueprint for objects.

(a)  

2.

A reserved words used by Java that specify the properties of the data, methods, and classes and how they can be used.

(a)  

3.

Evaluates an expression and if that evaluation is true then the specified action is taken

(a)  

4.

A pair of braces in a program forms a block that groups components of a program.

(a)  

5.

When a compiler sees two slashes (//), what did it do?

a)

It scans all text between // in the same line

b)

It ignores all text after // in the same line

c)

It ignores all text between // in the same line

d)

It scans all text after // in the same line

6.

A collection of statements that performs a sequence of operations to display a message on the console.

a)

Method

b)

Package

c)

Comments

d)

Statements

7.

Can blocks may contain other blocks?

a)

Yes

b)

No

c)

Maybe

d)

I dont know

8.

What flow control statement does for, while, do while belongs?

a)

Alteration

b)

Escapes

c)

Switch

d)

Looping

9.

The second line in the program specifies a package name.

a)

Comments

b)

Package

c)

Reserved words

d)

Modifiers

10.

A command terminated by a semi-colon.

(a)