CSE: chap 1 quiz
1.32 Which of the following lines is not a Java comment?
A. /** comments */ B. // comments C. -- comments D. /* comments */ E. ** comments ** C&E
1.15 ________ is an object-oriented programming language.
A. Java B. C++ D. C# E. Python
1.21 ________ provides an integrated development environment (IDE) for rapidly developing Java programs. Editing, compiling, building, debugging, and online help are integrated in one graphical user interface.
Java IDE
1.20 ________ consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.
Java JDK
1.27 Java compiler translates Java source code into _________.
Java bytecode
1.18 ________ is a technical definition of the language that includes the syntax and semantics of the Java programming language.
Java language specification
1.28 _________ is a software that interprets Java bytecode.
Java virtual machine
_________ is interpreted and is __________----
Java/ architectural neutral
1.14 Java ___________ can run from a Web browser.
applets
1.3 The speed of the CPU may be measured in __________.
giga and mega hertz
1.26 Which JDK command is correct to run a Java application in ByteCode.class?
java ByteCode
1.39 If a program compiles fine, but it produces incorrect result, then the program suffers __________.
logic error
1.30 The extension name of a Java bytecode file is
.class
1.31 The extension name of a Java source code file is
.java
1.36 Programming style is important, because ______________.
C. good programming style makes a program more readable D. good programming style helps reduce programming errors
1.19 ________ contains predefined classes and interfaces for developing Java programs.
Java API
1.7 ____________ is a device to connect a computer to a local area network (LAN).
NIC (network interface card)
1.8 ____________ are instructions to the computer.
Software and programs
1.24 Which of the following statements is correct to display Welcome to Java on the console?
System.out.println("Welcome to Java");
1.40 If you forget to put a closing quotation mark on a string, what kind error will be raised?
a compilation error
1.22 The main method header is written as:
public static void main(String[] args)
1.33 Which of the following are the reserved words?
public, static, void, class
Every statement in a program must end with a
semicolon.
1.35 A block is enclosed inside __________.
{} braces