WorksheetsJava Introduction
Total questions: 55
Worksheet time: 48mins
(a) is a high-level, object-oriented programming language similar to C++ but simplified to eliminate features that cause programming errors.
Java programming language was developed by Sun Microsystems engineers led by ____.
James Gosling
James Goshen
John Gosling
John Goshen
Java language was originally called as (a) .
Java language was officially launched in ____.
1994
1995
1996
1997
Java source code files are compiled into a format called (a) .
File extension of java source code files. (Include the dot ".")
(a)
File extension of Java bytecode file. (Include the dot ".")
(a)
(a) is used to execute a java bytecode.
Java was acquired by Oracle in (a) .
It contains all of the libraries that every Java developer must learn.
Standard Edition
Enterprise Edition
Micro Edition
Java Card
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.
Standard Edition
Enterprise Edition
Micro Edition
Java Card
Subset of Java Standard Edition design for mobile devices so it has libraries specific to mobile devices.
Standard Edition
Enterprise Edition
Micro Edition
Java Card
Java Editions used for smart cards.
Standard Edition
Enterprise Edition
Micro Edition
Java Card
Two steps to execute a Java Code are ____ and ____. (Format: Step01, Step02)
(a)
Complete the diagram.
(a)
Complete the diagram.
(a)
(a) takes our Java bytecode and translate it to the native code for the underlying operating system.
A block of code that performs a task and the smallest building block in Java programs.
(a)
Every Java Programs have at least one function and that function is called (a) .
Functions don't exist on their own. They should always belong to a class.
True
False
A container for one or more related function and use to organize our code.
(a)
Every Java program should have at least one class that contains the main function.
True
False
A (a) is a function that is part of a class.
(a) is a special keywords that determines if other classes and methods in this program can access these classes and methods. (eg public, private)
In Java all these classes and methods should have an access modifier.
True
False
It is use to group related classes.
(a)
The two types of naming conventions are ____ and ____. (Format: Answer01, Answer02)
(a)
Naming convention in which the first letter for every word should be uppercase.
(a)
Naming convention in which the first letter of every word should be uppercase except the first word.
(a)
readLine() is a (a) that is defined in BufferedReader.
The import java.io*; statement is required to include the I/O Java package where the BufferedReader class is located.
True
False
In the declaration BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); , BufferedReader is a ____.
Identifier
Keyword
Class
Package
This code is invalid.
True
False
What naming convention does Class use?
(a)
What naming convention does Method use?
(a)
Category of Data Types that is use for storing simple values.
(a)
Category of Data Types that is use for storing complex objects.
(a)
What operator is used to concatenate or join strings. (Enter operator symbol)
(a)
____ are the holes that we define in our methods.
Parameters
Arguments
Methods
____ are the actual values that we pass in the method.
Parameters
Arguments
Methods
____ does not modify our original string. It returns a new string.
Parameters
Arguments
Methods
An escape sequence in Java use to add a new line.
(a)
An escape sequence in Java use to add tabs.
(a)
What symbol is used to print double quotes (") in a string? (Answer name of Symbol)
(a)
What symbol is used to print backslash (\) in a string? (Answer name of Symbol)
(a)
The two types of casting are ____ and ____. (Format: Answer01, Answer02)
(a)
Type of Casting that requires the use of casting operation ().
(a)
Sequence in converting data using Implicit Casting. (Answer by order start with byte > Answer02 > . . . > Answer06)
(a)
Two methods for Strings that return boolean value. (Format: Answer01, Answer02)
(a)
Methods for Strings that return the number of characters.
(a)
Methods for Strings that return the first occurrence of the character.
(a)
Methods for Strings that replace one or more characters with something else.
(a)
Methods for Strings that converts all characters to lowercase.
(a)
Methods for Strings that converts all characters to uppercase.
(a)
Methods for Strings that eliminate white spaces.
(a)
