Name:     ID: 
 
    Email: 

APCS Quiz 1

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

 1. 

ENIAC contained hundreds of miles of wire and thousands of heat-producing vacuum tubes.
 

 2. 

The common language of many of today’s computers is Java.
 

 3. 

In memory, programs and data are both stored as sequences of 1s and 0s.
 

 4. 

There is a limit to the number of variables that you can declare in a program.
 

 5. 

The default layout manager for frames is an instance of the class BorderLayout.
 

 6. 

In an expression, the arithmetic operators for multiply and divide must not be adjacent.
 

 7. 

Literals are restricted to the primitive data types and strings.
 

 8. 

An object can respond to a message even if its class does not implement a corresponding method.
 

 9. 

When a window opens, the JVM sends the message paintComponent to each object contained in the window.
 

 10. 

If integer variables a, b, and c all have a value of 5, the statement a == b == c; would yield a value of true.
 

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

 11. 

A PC consists of ____ major subsystems.
a.
four
c.
six
b.
five
d.
seven
 

 12. 

A byte of RAM costs about ____ times as much as a byte of hard disk storage.
a.
10
c.
500
b.
100
d.
1000
 

 13. 

Which of the following is an example of system software?
a.
spreadsheets
c.
database systems
b.
word processors
d.
compilers
 

 14. 

Computers use base ____ notation to represent numbers.
a.
2
c.
10
b.
8
d.
16
 

 15. 

The decimal number 3 is represented in binary as ____.
a.
1
c.
01
b.
11
d.
10
 

 16. 

The first group of eight bits in a program instruction in memory is known as a(n) ____.
a.
instruction frame
c.
opcode
b.
header
d.
preamble
 

 17. 

Which of the following sequences correctly identifies the order of phases in the waterfall model?
a.
design, analysis, implementation, maintenance, integration
b.
design, implementation, analysis, maintenance, integration
c.
analysis, design, integration, implementation, maintenance
d.
analysis, design, implementation, integration, maintenance
 

 18. 

The end of a statement in a Java program is denoted by a ____.
a.
:
c.
;
b.
.
d.
}
 

 19. 

The file extension for a Java source code file must be ____.
a.
.java
c.
.jav
b.
.j
d.
.sun
 

 20. 

Java includes ____ numeric data types.
a.
3
c.
5
b.
4
d.
6
 

 21. 

Intermixing integers and floating-point numbers in an arithmetic expression is referred to as ____ arithmetic.
a.
multitype
c.
mixed-mode
b.
mixed-type
d.
intertype
 

 22. 

The escape sequence ____ indicates a newline character.
a.
\n
c.
\t
b.
\l
d.
\r
 

 23. 

The ____ class contains a number of methods that can be used to perform common mathematical operations, such as calculate a square root.
a.
Mathematical
c.
Random
b.
Arithmetic
d.
Math
 

 24. 

The process of executing all of the contained statements within a loop is called a(n) ____ of the loop.
a.
iteration
c.
execution
b.
implementation
d.
processing
 

 25. 

File objects are instances of the class ____.
a.
File
c.
Scanner
b.
IO
d.
Stream
 



 
Submit          Reset Help