and CORRECT Answers
Hardware - CORRECT ANSWER - is the physical aspect of the computer that can be
seen.
This is the brain of a computer - CORRECT ANSWER - CPU
The speed of the CPU may be measured in - CORRECT ANSWER - megahertz / gigahertz
Why do computers used zeros and ones? - CORRECT 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? - CORRECT ANSWER - bits
network interface controller (NIC) - CORRECT ANSWER - is a device to connect a
computer to a local area network (LAN)
machine language - CORRECT ANSWER - Computer can execute the code in this level of
programming
A compiler - CORRECT ANSWER - translates high-level language program into machine
language program.
Operating system - CORRECT ANSWER - is a program that runs on a computer to
manage and control a computer's activities.
The main method header is written as: - CORRECT ANSWER - public static void
main(String[] args)
, Java language specification - CORRECT ANSWER - is a technical definition of the
language that includes the syntax and semantics of the Java programming language.
Java API - CORRECT ANSWER - contains predefined classes and interfaces for
developing Java programs.
Java JDK - CORRECT 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"); - CORRECT ANSWER - Which of the
following statements is correct to display Welcome to Java on the console?
B and E
javac Test.java - CORRECT ANSWER - The JDK command to compile a class in the file
Test.java is
Java bytecode - CORRECT ANSWER - Which JDK command is correct to run a Java
application in ByteCode.class?
JVM (Java Virtual Machine) - CORRECT ANSWER - is a software that interprets Java
bytecode
Test.java - CORRECT ANSWER - Suppose you define a Java class as follows: