wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

java

Total questions: 38

Worksheet time: 7mins

Name
Class
Date
1.

java was originally named

a)

new c++

b)

duke

c)

Oak

d)

coffee

2.

who invented java

a)

james gosling

b)

sergey brin

c)

bill gates

3.

what was java orginal designed for

a)

interactive TV

b)

internet

c)

gaming

d)

cars

4.

Which company owns java

a)

oracle

b)

microsoft

c)

google

d)

apple

5.

from where did java gets its name

a)

coffee

b)

book

c)

intials of the developers of java

6.

when was java realsed

a)

1975

b)

1985

c)

1995

d)

2005

7.

which one this keywords are used to create a class in java

a)

class

b)

struct

c)

int

d)

none of the above

8.

when we want to print in java for...

a)

system.out.println();

b)

system.out.println();

c)

system.cat.println();

d)

system.out.show();

9.

we use scanner library in java for

a)

give permission to the user

b)

correcting software errors

c)

allow user to read data

d)

allow the user to enter data

10.

A variable that holds a character

a)

string

b)

boolean

c)

int

d)

char

11.

who is known as father of java programming language

a)

james gosling

b)

M.P Java

c)

blais pascal

12.

in java control statements break, continue, return, try catchbfinally and assert beiongs to

a)

selection statement

b)

loop statement

c)

transfer statement

d)

pause statement

13.

which provides runtime environmental of java bytes code to be exccuted

a)

JDK

b)

JVM

c)

JRE

d)

JAVAC

14.

what is byte code in java

a)

code generated by a java compiler

b)

code generated by a java vertcial machine

c)

block of code written inside a class

15.

which of the following are not java keywords

a)

double

b)

switch

c)

then

d)

instance of

16.

java is a success to which programming language

(a)  

17.

which is the original name of java programming language

(a)  

18.

which laboratory was java invented or developed in

a)

Becc laboratory

b)

sun microsystems

c)

dennis ritchie office

d)

johnson and johnson

19.

the name " java" java is known to the world as

a)

a tea brand in India

b)

a coffee brand in Africa

c)

an Island in Indonesia

d)

ragi malt juice

20.

Java language was originally develop for operating

a)

TV

b)

TV.set top box

c)

embedded system equipment

d)

all the above

21.

which company owns java at present

a)

IBM

b)

Microsoft

c)

sun micro system

d)

oracle

22.

what was the reason for huge initial success of java

(a)  

23.

which is the file name extension of a java source program

(a)  

24.

choose a correct statement about java source file

a)

java file are human readable

b)

java file contain class with methods and variables

c)

import statement import library classes into our class

25.

what is the output of compilation of java program

(a)  

26.

what software compiles a java program

a)

JRE

b)

JDK

c)

JVM

d)

Command prompt

27.

what software runs a java program on a computer

a)

JRE

b)

JDR

c)

command prompt

d)

none of the above

28.

which of the following option leads to the portability and security of java

a)

bytecode is executed by JVM

b)

use of exception handlying

c)

dynamic binding between object

29.

which of the following is not a java features

a)

dynamic

b)

architecture neutral

c)

use of pointers

d)

object oriented

30.

The \u0021 article referred to as a

a)

unicode escape sequence

b)

hexadecimal

c)

line feed

31.

(a)   is use to find and fix bugs in the java program

32.

what is the return type of the hash code() method in the object class

a)

object

b)

int

c)

long

d)

void

33.

what does the expression float a=35/0 return?

a)

0

b)

not a number

c)

infinity

d)

run time exception

34.

an interface with no fields or methods is known as a

a)

runnable interface

b)

market interface

c)

abstract interface

35.

which of the following is reserved keyword

(a)  

36.

what is the initial quantity of the arraylist

a)

5

b)

10

c)

0

d)

100

37.

given

int value [ ]= {1,2,3,4,5,6,7,8,9,10};

for (int i = 0; i < y; ++i)

system.out.println( value [i]);

find the value of value [i]....?

a)

10

b)

11

c)

15

d)

none of the above

38.

the variable those are declared in a class are known as

a)

local variable

b)

instance variable

c)

static variable