wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Introduction

Total questions: 55

Worksheet time: 48mins

Name
Class
Date
1.

(a)   is a high-level, object-oriented programming language similar to C++ but simplified to eliminate features that cause programming errors.

2.

Java programming language was developed by Sun Microsystems engineers led by ____.

a)

James Gosling

b)

James Goshen

c)

John Gosling

d)

John Goshen

3.

Java language was originally called as (a)   .

4.

Java language was officially launched in ____.

a)

1994

b)

1995

c)

1996

d)

1997

5.

Java source code files are compiled into a format called (a)   .

6.

File extension of java source code files. (Include the dot ".")

(a)  

7.

 

File extension of Java bytecode file. (Include the dot ".")

(a)  

8.

(a)   is used to execute a java bytecode.

9.

Java was acquired by Oracle in (a)   .

10.

It contains all of the libraries that every Java developer must learn.

a)

Standard Edition

b)

Enterprise Edition

c)

Micro Edition

d)

Java Card

11.

Used for building very large-sale and distributed system it’s built on top of Java Standard Edition and provides additional libraries for building fault tolerant distributed multi-tiered software.

a)

Standard Edition

b)

Enterprise Edition

c)

Micro Edition

d)

Java Card

12.

Subset of Java Standard Edition design for mobile devices so it has libraries specific to mobile devices.

a)

Standard Edition

b)

Enterprise Edition

c)

Micro Edition

d)

Java Card

13.

Java Editions used for smart cards.

a)

Standard Edition

b)

Enterprise Edition

c)

Micro Edition

d)

Java Card

14.

Two steps to execute a Java Code are ____ and ____. (Format: Step01, Step02)

(a)  

15.

Complete the diagram.

(a)  

16.

Complete the diagram.

(a)  

17.

(a)   takes our Java bytecode and translate it to the native code for the underlying operating system.

18.

A block of code that performs a task and the smallest building block in Java programs.

(a)  

19.

Every Java Programs have at least one function and that function is called (a)   .

20.

Functions don't exist on their own. They should always belong to a class.

a)

True

b)

False

21.

A container for one or more related function and use to organize our code.

(a)  

22.

Every Java program should have at least one class that contains the main function.

a)

True

b)

False

23.

A (a)   is a function that is part of a class.

24.

(a)   is a special keywords that determines if other classes and methods in this program can access these classes and methods. (eg public, private)

25.

In Java all these classes and methods should have an access modifier.

a)

True

b)

False

26.

It is use to group related classes.

(a)  

27.

The two types of naming conventions are ____ and ____. (Format: Answer01, Answer02)

(a)  

28.

Naming convention in which the first letter for every word should be uppercase.

(a)  

29.

Naming convention in which the first letter of every word should be uppercase except the first word.

(a)  

30.

readLine() is a (a)   that is defined in BufferedReader.

31.

The import java.io*; statement is required to include the I/O Java package where the BufferedReader class is located.

a)

True

b)

False

32.

In the declaration BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); , BufferedReader is a ____.

a)

Identifier

b)

Keyword

c)

Class

d)

Package

33.

This code is invalid.

a)

True

b)

False

34.

What naming convention does Class use?

(a)  

35.

What naming convention does Method use?

(a)  

36.

Category of Data Types that is use for storing simple values.

(a)  

37.

Category of Data Types that is use for storing complex objects.

(a)  

38.

What operator is used to concatenate or join strings. (Enter operator symbol)

(a)  

39.

____ are the holes that we define in our methods.

a)

Parameters

b)

Arguments

c)

Methods

40.

____ are the actual values that we pass in the method.

a)

Parameters

b)

Arguments

c)

Methods

41.

____ does not modify our original string. It returns a new string.

a)

Parameters

b)

Arguments

c)

Methods

42.

An escape sequence in Java use to add a new line.

(a)  

43.

An escape sequence in Java use to add tabs.

(a)  

44.

What symbol is used to print double quotes (") in a string? (Answer name of Symbol)

(a)  

45.

What symbol is used to print backslash (\) in a string? (Answer name of Symbol)

(a)  

46.

The two types of casting are ____ and ____. (Format: Answer01, Answer02)

(a)  

47.

Type of Casting that requires the use of casting operation ().

(a)  

48.

Sequence in converting data using Implicit Casting. (Answer by order start with byte > Answer02 > . . . > Answer06)

(a)  

49.

Two methods for Strings that return boolean value. (Format: Answer01, Answer02)

(a)  

50.

Methods for Strings that return the number of characters.

(a)  

51.

Methods for Strings that return the first occurrence of the character.

(a)  

52.

Methods for Strings that replace one or more characters with something else.

(a)  

53.

Methods for Strings that converts all characters to lowercase.

(a)  

54.

Methods for Strings that converts all characters to uppercase.

(a)  

55.

Methods for Strings that eliminate white spaces.

(a)