wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Week 1 quize

Total questions: 7

Worksheet time: 5mins

Name
Class
Date
1.

What is the use of PUBLIC STATIC VOID MAIN(STRING[]ARGS) in a given java code?

a)

Java main method is the entry point of any java program

b)

Stops JVM data leackage

c)

Compress the compiler error.

d)

None of these

2.

How to declare a variable?

a)

Type Var_name = value;

b)

Var_name type= value;

c)

Type Var_name = value

d)

Var_name type = value

3.

What is default value of a boolean statement in java?

a)

True

b)

False

c)

Depends on the user input

d)

Depends on class saved by user

4.

What is the output of the given code

a)

21

22

21

20

b)

21

22

21

21

c)

21

23

22

21

d)

21

21

22

20

5.

Does this code works? if yes, what will be the output?

a)

YES ,8.2758

b)

NO

c)

yes, csi

d)

yes,eee

6.

Class name is different with file name

What error you will be getting during compiling your code?

a)

Thread exception

b)

Unresolved compilation problem

c)

file not found exception

d)

none of them

7.

Pick up the data types from the following

a)

String

b)

Int

c)

Float

d)

Boolean