Loading...
QUIZ

Certification Test

 
Que No. 1 ) What is Java?

A.) A type of coffee
B.) A programming language
C.) An operating system
D.) A web browser


Que No. 2 ) Which company originally developed Java?

A.) Microsoft
B.) IBM
C.) Sun Microsystems
D.) Oracle


Que No. 3 ) What is the primary goal of Java's "Write Once, Run Anywhere" slogan?

A.) To write code only once and run it anywhere in the world
B.) To write code that can be easily understood by anyone
C.) To write code that works on any computer without modification
D.) To write code that runs faster than other programming languages


Que No. 4 ) Which of the following is not a Java primitive data type?

A.) int
B.) char
C.) float
D.) string


Que No. 5 ) What is the purpose of the "public static void main(String[] args)" method in Java?

A.) It is the entry point of a Java program.
B.) It is used to declare variables.
C.) It defines the main class of a program.
D.) It initializes the Java Virtual Machine (JVM).


Que No. 6 ) Which keyword is used to create a new instance of a class in Java?

A.) new
B.) create
C.) instance
D.) object


Que No. 7 ) What is the Java keyword used to define a constant?

A.) constant final
B.) final
C.) const
D.) readonly


Que No. 8 ) What does the "this" keyword refer to in Java?

A.) The current class instance
B.) The parent class instance
C.) The next class in the inheritance hierarchy
D.) The previous class in the inheritance hierarchy


Que No. 9 ) What is an interface in Java?

A.) A graphical user interface (GUI)
B.) A class that cannot be instantiated
C.) A collection of related data
D.) A way to achieve multiple inheritance


Que No. 10 ) Which access modifier makes a class or method accessible only within its own package?

A.) public
B.) protected
C.) private
D.) package-private (default)