wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Review

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

The Java programming language initiative started in what year?

a)

1992

b)

1991

c)

1993

d)

1994

2.

Object-oriented programming was conceived to model real-world objects.

a)

True

b)

False

3.

This version of Java is meant to have a large number of users.

a)

Java Standard Edition

b)

Java Micro Edition

c)

Java Enterprise Edition

d)

Java Run-time Environment

4.

The first name of Java is Green Team

a)

True

b)

False

5.

Who led the Green Team in initiating the Java Programming Language?

a)

John Gosling

b)

Ryan Gosling

c)

Jack Gosling

d)

James Gosling

6.

Which of the following symbol is used to terminate a line of instruction?

a)

{

b)

;

c)

}

d)

( )

7.

Which of the following syntax indicates single-line comment?

a)

/* This program will print two words */

b)

Public class Basic Calculator {

c)

System.out.println("Hello World")

d)

//This program will add two numbers

8.

In this image, what is the use of line number 4?

a)

class declaration

b)

Start of method definition

c)

calling a method

d)

object instantiation

9.

A java program can consist of one or more classes.

a)

True

b)

False

10.

Which of the following is an example of access modifier?

a)

public

b)

void

c)

new

d)

static

11.

IDE stands for Integrated Department Environment

a)

True

b)

False

12.

A software that executes Java codes.

a)

Java Enterprise Edition

b)

Java Virtual Machine

c)

Architecture Neutral

d)

Java Standard Edition

13.

In what line number caused this program to malfunction?

a)

1

b)

2

c)

3

d)

4

14.

In this image, what is the use of line number 2?

a)

calling a method

b)

start of method definition

c)

object instantiation

d)

class declaration

15.

What is the name of the class in this program?

a)

public

b)

PrintWelcome

c)

Welcome

d)

void