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 todays 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.
|
| 12. | A
byte of RAM costs about ____ times as much as a byte of hard disk storage.
|
| 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.
|
| 15. | The
decimal number 3 is represented in binary as ____.
|
| 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 ____.
|
| 19. | The
file extension for a Java source code file must be ____.
|
| 20. | Java
includes ____ numeric data types.
|
| 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.
|
| 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 | | | | |
|