Java Chapter 1 Exam 2025
Questions and Answers
Hardware - ANSWER✔✔-is the physical aspect of the computer that can be seen.
This is the brain of a computer - ANSWER✔✔-CPU
The speed of the CPU may be measured in - ANSWER✔✔-megahertz / gigahertz
Why do computers used zeros and ones? - ANSWER✔✔-because digital devices have
two stable states and it is natural to use one state for 0 and the other for 1.
One byte contains how many bits? - ANSWER✔✔-bits
network interface controller (NIC) - ANSWER✔✔-is a device to connect a computer to a
local area network (LAN)
machine language - ANSWER✔✔-Computer can execute the code in this level of
programming
A compiler - ANSWER✔✔-translates high-level language program into machine
language program.
, Operating system - ANSWER✔✔-is a program that runs on a computer to manage and
control a computer's activities.
The main method header is written as: - ANSWER✔✔-public static void main(String[]
args)
Java language specification - ANSWER✔✔-is a technical definition of the language that
includes the syntax and semantics of the Java programming language.
Java API - ANSWER✔✔-contains predefined classes and interfaces for developing Java
programs.
Java JDK - ANSWER✔✔-consists of a set of separate programs for developing and
testing Java programs, each of which is invoked from a command line.
Which of the following statements is correct to display Welcome to Java on the console?
A. System.out.println('Welcome to Java');
B. System.out.println("Welcome to Java");
C. System.println('Welcome to Java');
D. System.out.print('Welcome to Java');
E. System.out.print("Welcome to Java"); - ANSWER✔✔-Which of the following
statements is correct to display Welcome to Java on the console?
Questions and Answers
Hardware - ANSWER✔✔-is the physical aspect of the computer that can be seen.
This is the brain of a computer - ANSWER✔✔-CPU
The speed of the CPU may be measured in - ANSWER✔✔-megahertz / gigahertz
Why do computers used zeros and ones? - ANSWER✔✔-because digital devices have
two stable states and it is natural to use one state for 0 and the other for 1.
One byte contains how many bits? - ANSWER✔✔-bits
network interface controller (NIC) - ANSWER✔✔-is a device to connect a computer to a
local area network (LAN)
machine language - ANSWER✔✔-Computer can execute the code in this level of
programming
A compiler - ANSWER✔✔-translates high-level language program into machine
language program.
, Operating system - ANSWER✔✔-is a program that runs on a computer to manage and
control a computer's activities.
The main method header is written as: - ANSWER✔✔-public static void main(String[]
args)
Java language specification - ANSWER✔✔-is a technical definition of the language that
includes the syntax and semantics of the Java programming language.
Java API - ANSWER✔✔-contains predefined classes and interfaces for developing Java
programs.
Java JDK - ANSWER✔✔-consists of a set of separate programs for developing and
testing Java programs, each of which is invoked from a command line.
Which of the following statements is correct to display Welcome to Java on the console?
A. System.out.println('Welcome to Java');
B. System.out.println("Welcome to Java");
C. System.println('Welcome to Java');
D. System.out.print('Welcome to Java');
E. System.out.print("Welcome to Java"); - ANSWER✔✔-Which of the following
statements is correct to display Welcome to Java on the console?