wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

core java basics

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

Java is a

a)

Procedure Oriented Language

b)

Structure Oriented Language

c)

Object_Oriented Language

d)

Machine Language

2.

The name of the following should be the file name in Java

a)

Object Name

b)

Variable Nam

c)

Class Name

d)

Array Name

3.

Java program is

a)

Interpreted

b)

Compiled

4.

A ___________ file is created after successful compilation of a Java program.

a)

Object file

b)

Array file

c)

Class file

d)

String file

5.

Command to compile Java program

a)

javax

b)

javay

c)

javac

d)

Java

6.

Command to run a Java program

a)

javaa

b)

java

c)

jaava

d)

jaavaa

7.

JDK stands for

a)

Java Developer Kit

b)

Java Development Kit

c)

Java Design Kit

d)

Java Debugging Kit

8.

JRE stands for

a)

Java Run Environment

b)

Java Run Execution

c)

Java Runtime Environment

d)

Java Ready Execution

9.

Java is

a)

Machine dependent language

b)

Machine independent language

10.

Java was originally named:

a)

Coffee

b)

Oak

c)

New C++

d)

Duke

11.
When we want to print in Java, we use the code ......
a)
system.out.print();
b)
System.out.println();
c)
System.Out.Printf();
d)
System.out.show();
12.

In Java WORA stands for

a)

Write Once Recall Anywhere

b)

Write Once Return Anywhere

c)

Write Once Read Anywhere

d)

Write Once Run Anywhere

13.

JVM stands for

a)

Java Vital Machine

b)

Java Virtual Machine

c)

Java Vendor machine

14.

Java programs ________________

a)

are only compiled

b)

are only compiled not interpreted

c)

are only interpreted

d)

are both compiled and interpreted

15.

Main() method is not mandatory for a Java program

a)

True

b)

False

16.

Java Programming was designed by ______

a)

Sun MicroSystems

b)

Mozilla Corporation

c)

Microsoft

d)

Amazon Inc.

17.

Earlier name of Java Programming language was –

a)

Eclipse

b)

D

c)

Oak

d)

Netbean

18.

Which of the following personality is called as father of Java Programming language –

a)

Guido vom Russom

b)

Larry Page

c)

Bjarne Stroustrup

d)

James Gosling

19.

Which of the following is not OOPS concept in Java?

a)

Inheritance

b)

Encapsulation

c)

Polymorphism

d)

Compilation

20.

Which concept of Java is a way of converting real world objects in terms of class?

a)

Polymorphism

b)

Encapsulation

c)

Abstraction

d)

Inheritance

21.

Which concept of Java is achieved by combining methods and attribute into a class?

a)

Encapsulation

b)

Inheritance

c)

Polymorphism

d)

Abstraction

22.

Java was developed in which year

a)

1992

b)

1993

c)

1994

d)

1995

23.

Which component is used to compile, debug and execute java program?

a)

JDK

b)

JRE

c)

JVM

d)

JIT

24.

The icon of Java program is taken from ___.

a)

a cup of coffee

b)

a tornado that spits fire

c)

a volcano under water

d)

a candle with a flame

25.

In Java EE, EE stands for ___.

a)

Entertainment Edition

b)

Entrepreneur Edition

c)

Enterprise Emperor

d)

Enterprise Edition