Programming 1 Quiz 1
Secondary storage from the list: floppy disks, hard disks, CD, RAM.
All except RAM.
Which of the following are the reserved words:public, static, void, class?
All of the above
Java compiler translates Java source code into _________. A. Java bytecode B. machine code C. assembly code D. another high-level language code
A. Java bytecode
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.18 ________ is a technical definition of the language that includes the syntax and semantics of the Java programming language.
Java language specification
Every statement in Java ends with ________. a semicolon (;) a comma (,) a period (.) an asterisk (*)
a semicolon (;)
Which of the following statements is true. a. A Java application can be executed from a Web Browser. b. A Java applet can be executed from a Web Browser.
b. A Java applet can be executed from a Web Browser.
The JDK command to compile a class in the file Test.java is ________. java Test java Test .javajavac Test. javajavac Test JAVAC Test.java
javac Test.java
The keywords in Java are all in lowercase
true
Suppose you define a Java class as follows:public class Test {}In order to compile this program, the source code should be stored in a file named A. Test.class B. Test.doc C. Test.txt D. Test.java E. Any name with extension .java
D. Test.java
Four bytes have_____bits
32
Which of the following lines is not a Java comment? A. /* comments / B. // comments C. -- comments D. / comments / E. * comments *
C. -- comments E. * comments *
________ consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line. A. Java language specification B. Java API C. Java JDK D. Java IDE
C. Java JDK
True or False? The public class name must be the same as the filename that contains the class.
True
If you forget to put a closing quotation mark on a string, what kind error will be raised? a compilation error a runtime error a logic error
a compilation error
If a program compiles fine, but it produces incorrect result, then the program suffers______
a logic error
A block is enclosed inside______
braces