Programming 1 Quiz 1

Ace your homework & exams now with Quizwiz!

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


Related study sets

Life and health what I don't know

View Set

CHAPTER 4- Monitoring The Value Of Production: GDP

View Set

NCLEX PN Review - Hygiene and Pain Questions

View Set

Medical Terminology, Chapter 16: Special Senses (Anatomy & Physiology-Eye, Ear)(pharmacology)

View Set

9th Geography Chapter 8 Section Reviews

View Set

Apush Time Period 5 Chapter 16-17 Review

View Set