WorksheetsUnit 1
Total questions: 30
Worksheet time: 13mins
Which of the following escape sequence creates a new line?
\n
/n
\t
\\
Which of the following escape sequence tabs?
\/t
tt
\t
/t
Which of the following is an invalid variable?
hi5
5_hi
y_89
_five
What is the result of 12.0 % 3
4
4.0
0
0.0
What is the result of 4/3
1
1.0
0
0.0
What does CPU stand for?
Computer Processing Unit
Central Processing Unit
Computer Protocol Unit
Centrol Protocol Unit
What does RAM stand for?
Read Amazing Memory
Read Access Memory
Random Access Memory
Random Awareness Machine
How many bits are in a byte?
1
8
32
128
What is a BIT?
Binary Integer Type
Binary Int Tech
Binary Digit
Binary Digit Type
Errors in a program are called what?
bit
byte
error
bug
The Control Unit and the Arithmetic/Logic Unit make up what?
CPU
ALU
CU
BIT
What can store a single character?
double
bit
byte
int
What are the tangible components of a computer
CPU
Output
Software
Hardware
What word signifies a constant in Java?
int
char
double
final
Variables of the int type can store what kind of values?
Decimal values
Single characters
Whole numbers
True or false
Variables of the double type can store what kinds of values?
Single characters
Decimal numbers
Whole numbers
True or false
The char data type stores what kind of values?
Single characters
Single characters surround by double quotes
Single characters surround by single quotes
Strings
What signifies the start and end of a block of code?
Braces
Brackets
Parenthesis
Quotes
ROM stands for what?
Read Only Memory
Read Online Memory
Random Ordered Memory
Random Online Memory
Which of the following is a VALID assignment statement?
x + 5 = y
y = 5x;
x = 2 + y;
x = 2y;
