Name:     ID: 
 
Email: 

Test 1

True/False
Indicate whether the statement is true or false.
 

 1. 

Java is the fastest growing programming language in the world.
 

 2. 

Java runs faster than most modern programming languages.
 

 3. 

GUI is an acronym for Graphical User Interface.
 

 4. 

Terminal I/O is no longer used, therefore familiarity with it is not necessary.
 

 5. 

Colons (:) mark the end of each statement in a Java program.
 

 6. 

The name of the text file with Java source code must match the name of the program with a .class extension.
 

 7. 

The javac command compiles a Java program.
 

 8. 

The Java keyword new is used to instantiate an object.
 

 9. 

The Java message System.out.print("hello") will place the cursor on the beginning of the next line.
 

 10. 

The period ( . ) in System.out is a method selector.
 

 11. 

Just-in-time compilation (JIT) translates Java byte code into machine language when they are first encountered so that the next time the instruction is encountered it is executed fast machine code, rather than being interpreted.
 

 12. 

Highly readable programs are not necessary, since programs are usually maintained by the same programmer who originally wrote it.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 13. 

Java incorporates the good features of which two programming languages, while omitting the less desirable ones?
a.
C++, COBOL
c.
C++, Smalltalk
b.
Visual Basic, Smalltalk
d.
COBOL, Visual Basic
 

 14. 

It is easy for a programmer who knows what language to learn Java?
a.
Assembly Language
c.
Scheme
b.
Lisp
d.
C++
 

 15. 

The Java compiler translates Java source code into:
a.
Java byte code
c.
assembly language
b.
machine language
d.
C++
 

 16. 

To run Java byte code on a particular computer you must install what on that computer?
a.
Java compiler
c.
Java Virtual Machine
b.
Word processor
d.
Java Applet
 

 17. 

Small Java programs downloaded from web pages are called:
a.
threads
c.
servlets
b.
GUI's
d.
applets
 

 18. 

What is the name of an object that knows how to display or print characters in a terminal window?
a.
println
c.
monitor
b.
System.out
d.
HelloWorld
 

 19. 

What character is the method selector operator in Java?
a.
period ( . )
c.
semicolon ( ; )
b.
comma ( , )
d.
colon ( : )
 

 20. 

What are the three steps to entering a program into a computer and running it?
a.
Edit, Compile, Debug
c.
Edit, Debug, Execute
b.
Compile, Interpret, Execute
d.
Edit, Compile, Execute
 

 21. 

Which of the following is NOT an integrated Development Environment (IDE)?
a.
Visual Cafe
c.
UNIX command line
b.
Visual J++
d.
JBuilder
 

 22. 

What command runs a Java program that has already been compiled?
a.
javac
c.
run
b.
javar
d.
java
 

 23. 

The statement telling the Java compiler where to find a complete specification of a class is:
a.
new
c.
class
b.
import
d.
void
 

 24. 

The Java compiler will ignore everything after what symbol?
a.
+
c.
//
b.
=
d.
new
 

 25. 

What is the Java mechanism for repeating a group of statements?
a.
for loop
c.
import statement
b.
TurtleGraphics
d.
variable
 

Completion
Complete each statement.
 

 26. 

A _________ is a process that can run concurrently with other processes.
 

 

 27. 

A program is a sequence of instructions or, ___________ _______ for a computer.
 

 

 28. 

Values in the parentheses following a message to an object are called _______________.     
 

 

 29. 

Mistakes in source code detected by the compiler are called _________ errors.
 

 

 30. 

A _____________ names a location in RAM in which a value can be stored.
 

 



 
         Start Over