JAVA PRACTICE UPDATED ACTUAL Exam Questions and
CORRECT Answers
_______________is the brain of the computer - CPU
Which JDK command is correct to run a Java application - Java Bytecode
__________is Architecture-neutral - Java
__________ is software that interprets Java bytecode - Java Compiler
Java compiler translates Java source code into ___________. - Java bytecode
______________is a program that runs on a computer to manage and control a computers
activness - Opertating system
Java was developed by - Sun Microsystems
programming style is important because_______________. - good programming style helps
reduce programming errors
Why do computers use zeros and ones - because digital devices have two stable states and it is
natural to use one state for 0 and the other for 1.
Java_____________ can run from a Web browser - applets
Application program interface. Contains predefined classes and interfaces for developing Java
programs. - Java API
,Java Development Toolkit. A set of separate programs, each invoked from a command line, for
developing and testing Java programs. - Java JDK
A specification for software which interprets Java programs that have been compiled into byte-
codes, and usually stored in a ".class" file. - Java Virtual Machine
public class Class {
public static void main(String[] args) { - Main method
Boolean variables - Hold either 'true' or 'false'
________ consists of a set of separate programs for developing and testing Java programs, each
of which is invoked from a command line - Java JDK
The JDK command to compile a class in the file Test.java is - Javac Test
The extension name of a Java bytecode file is - .exe
________ is a software that interprets Java bytecode - Java virtual machine
Computer can execute the code in ___________ - machine language
A block is enclosed inside __________ - Braces
_______ consists of a set of separate programs for developing and testing Java programs, each of
which is invoked from a command line - Java JDK
,The extension of the binary output created by a Java program is? - .class
On successful compilation a file with the class extension is created - true
Which JDK command is correct to run a Java application in ByteCode.class - Java bytecode
__________ translates high-level language program into machine language program - A
compiler
____________is the physical aspect of the computer that can be seen. - Hardware
Speed of a computer can be measured in____________________. - giga and merga hertz
One byte has ________ bits. - 8
If a program compiles fine, but it produces incorrect result, then the program suffers ________. -
a logic error
Is an object oriented language - Java, C++, Python
List five major hardware components of a computer. - CPU, Memory, Storage Devices,
Input/Output Devices, and Communication Devices.
What does the acronym CPU stand for? - Central Processing Unit.
What unit is used to measure CPU speed? - megahertz
What is a bit? - binary digit
, What is a byte? - a group of 8 bits
What does RAM stand for? - random access memory
What unit is used to measure memory size? - bytes
What language does the CPU understand? - machine language
What is an interpreter? - an interpreter is a software that reads one statement from the source
code
What is a compiler? - Software that translates source program into a language that the computer
can understand
What is an operating system? - An operating system is a set of an instructions designed to work
with a specific type of computer
what is multiprogramming? - Several programs run at the same time sharing the machine
what is multithreading? - A technique in which a process is divided into threads that can run
properly
What is a Java applet? - Java applet is a special program that runs from a Web browser
What is the Java language specification? - The Java language specification specifies the syntax
for the Java language
What does JDK stand for? - Java Development Toolkit
CORRECT Answers
_______________is the brain of the computer - CPU
Which JDK command is correct to run a Java application - Java Bytecode
__________is Architecture-neutral - Java
__________ is software that interprets Java bytecode - Java Compiler
Java compiler translates Java source code into ___________. - Java bytecode
______________is a program that runs on a computer to manage and control a computers
activness - Opertating system
Java was developed by - Sun Microsystems
programming style is important because_______________. - good programming style helps
reduce programming errors
Why do computers use zeros and ones - because digital devices have two stable states and it is
natural to use one state for 0 and the other for 1.
Java_____________ can run from a Web browser - applets
Application program interface. Contains predefined classes and interfaces for developing Java
programs. - Java API
,Java Development Toolkit. A set of separate programs, each invoked from a command line, for
developing and testing Java programs. - Java JDK
A specification for software which interprets Java programs that have been compiled into byte-
codes, and usually stored in a ".class" file. - Java Virtual Machine
public class Class {
public static void main(String[] args) { - Main method
Boolean variables - Hold either 'true' or 'false'
________ consists of a set of separate programs for developing and testing Java programs, each
of which is invoked from a command line - Java JDK
The JDK command to compile a class in the file Test.java is - Javac Test
The extension name of a Java bytecode file is - .exe
________ is a software that interprets Java bytecode - Java virtual machine
Computer can execute the code in ___________ - machine language
A block is enclosed inside __________ - Braces
_______ consists of a set of separate programs for developing and testing Java programs, each of
which is invoked from a command line - Java JDK
,The extension of the binary output created by a Java program is? - .class
On successful compilation a file with the class extension is created - true
Which JDK command is correct to run a Java application in ByteCode.class - Java bytecode
__________ translates high-level language program into machine language program - A
compiler
____________is the physical aspect of the computer that can be seen. - Hardware
Speed of a computer can be measured in____________________. - giga and merga hertz
One byte has ________ bits. - 8
If a program compiles fine, but it produces incorrect result, then the program suffers ________. -
a logic error
Is an object oriented language - Java, C++, Python
List five major hardware components of a computer. - CPU, Memory, Storage Devices,
Input/Output Devices, and Communication Devices.
What does the acronym CPU stand for? - Central Processing Unit.
What unit is used to measure CPU speed? - megahertz
What is a bit? - binary digit
, What is a byte? - a group of 8 bits
What does RAM stand for? - random access memory
What unit is used to measure memory size? - bytes
What language does the CPU understand? - machine language
What is an interpreter? - an interpreter is a software that reads one statement from the source
code
What is a compiler? - Software that translates source program into a language that the computer
can understand
What is an operating system? - An operating system is a set of an instructions designed to work
with a specific type of computer
what is multiprogramming? - Several programs run at the same time sharing the machine
what is multithreading? - A technique in which a process is divided into threads that can run
properly
What is a Java applet? - Java applet is a special program that runs from a Web browser
What is the Java language specification? - The Java language specification specifies the syntax
for the Java language
What does JDK stand for? - Java Development Toolkit