wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Object Oriented Programming

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

_________ are used to store up temporary data to be used in our program's runtime.

a)

Datatype

b)

Identifiers

c)

Variables

d)

Data

2.

The type of data inside our variable.

a)

Data

b)

Variables

c)

Identifiers

d)

Data Type

3.

It is the name of the variables that the programmer indicated and it is used to read and write to the variable.

a)

Identifiers

b)

Datatype

c)

Variables

d)

Concatenation

4.

The process of joining strings together with the plus operator.

a)

Identifiers

b)

Concatenation

c)

Datatypes

d)

Variables

5.

Syntax in declaring variables

a)

identifier datatype;

identifier datatype = value;

b)

datatype identifier

value = identifier datatype;

c)

datatype identifier

value identifier = datatype;

d)

datatype identifier;

datatype identifier = value;

6.

Syntax in reassigning variables

a)

identifier = value

b)

identifier = value;

c)

value = identifier

d)

value = identifier;

7.

Which of the ff. is an example of Concatenation

a)

"Hello" + "World"

b)

2 + 3

c)

'a' + 3

d)

Hello + World

8.

You can concatenate ________ a variable

a)

Beside

b)

Inside

c)

Outside

d)

All of the above

9.

We can display a variable's value by indicating its identifier inside the parenthesis.

a)

System.outprintIn();

b)

System.out.printIn;

c)

System.out.printIn()

d)

System.out.printIn();

10.

You can use numbers but with letters.

a)

Rule of Identifier

b)

Rule of Concatenation

c)

Rule of Declaring Variables

d)

Rule of Reassigning Datatypes