Chapter 1 Exam
Name___________________________________
MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
1)
Whereas ________ is centered on creating procedures, _________ is centered on creating objects.
1)
_______
A)
Procedural programming, Object-oriented programming
B)
Object-oriented programming, Procedural programming
C)
Routine programming, method programming
D)
Procedural programming, Class programming
2)
Which of the following will run the compiled program ReadIt?
2)
_______
A)
run ReadIt
B)
java ReadIt.java
, C)
java ReadIt
D)
go ReadIt
3)
RAM is usually
3)
_______
A)
An input/output device
B)
A volatile type of memory, used only for temporary storage
C)
Secondary storage
D)
A static type of memory, used for permanent storage
4)
The two primary methods of pragramming in use today are
4)
,_______
A)
Procedural
B)
Object oriented
C)
Both A and B
D)
Method and procedures
5)
The purpose of validating the results of the program is
5)
_______
A)
To determine if the program solves the original problem
B)
To correct runtime errors
C)
To create a model of the program
D)
To correct syntax errors
, 6)
Suppose you are at an operating system command line, and you are going to use the following command to compile a program:
javac MyClass.java
Before entering the command, you must:
6)
_______
A)
Close all other Windows on your computer system
B)
Make sure you are in the same directory or folder where the MyClass.java file is located
C)
Execute the java.sun.com program
D)
Save the program with the .comp extension
7)
An object typically hides it data, but allows outside code to access
7)
_______
A)
The pseudocode
B)
Name___________________________________
MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
1)
Whereas ________ is centered on creating procedures, _________ is centered on creating objects.
1)
_______
A)
Procedural programming, Object-oriented programming
B)
Object-oriented programming, Procedural programming
C)
Routine programming, method programming
D)
Procedural programming, Class programming
2)
Which of the following will run the compiled program ReadIt?
2)
_______
A)
run ReadIt
B)
java ReadIt.java
, C)
java ReadIt
D)
go ReadIt
3)
RAM is usually
3)
_______
A)
An input/output device
B)
A volatile type of memory, used only for temporary storage
C)
Secondary storage
D)
A static type of memory, used for permanent storage
4)
The two primary methods of pragramming in use today are
4)
,_______
A)
Procedural
B)
Object oriented
C)
Both A and B
D)
Method and procedures
5)
The purpose of validating the results of the program is
5)
_______
A)
To determine if the program solves the original problem
B)
To correct runtime errors
C)
To create a model of the program
D)
To correct syntax errors
, 6)
Suppose you are at an operating system command line, and you are going to use the following command to compile a program:
javac MyClass.java
Before entering the command, you must:
6)
_______
A)
Close all other Windows on your computer system
B)
Make sure you are in the same directory or folder where the MyClass.java file is located
C)
Execute the java.sun.com program
D)
Save the program with the .comp extension
7)
An object typically hides it data, but allows outside code to access
7)
_______
A)
The pseudocode
B)