NEW
Font size
S
M
L
XL
WorksheetsIntro to Java -- Basics
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What are the 4 basic components of a computer system?
a)
Processor, Main Memory, Secondary Memory and I/O
b)
Processor, RAM, ROM and the bus
c)
Processor, hard drive, VGA port and USB
d)
Processor, RAM, I/O and Windows
2.
Which identifier is not legal in java?
a)
class
b)
2legit2quit
c)
HappyDays$
d)
Whats_up_with_that
3.
What does a comment look like in Java?
a)
//comment
b)
\\comment
c)
==comment
d)
\comment
4.
What is a good example of an input device?
a)
webcam
b)
monitor
c)
printer
d)
speakers
5.
What is a good example of an output device?
a)
headphones
b)
keyboard
c)
mouse
d)
microphone
6.
Convert the following binary number to decimal:
01010101
01010101
a)
85
b)
83
c)
53
d)
149
7.
Convert the following binary number to decimal:
11111111
11111111
a)
254
b)
256
c)
253
d)
255
8.
How many possible combinations are there in a 8 bit number?
a)
128
b)
256
c)
512
d)
infinite
9.
Convert the following decimal number to binary: 252
a)
11111100
b)
11111000
c)
11111101
d)
11111111
10.
Convert the following decimal number to binary:
42
(the meaning of life if you didn't know)
42
(the meaning of life if you didn't know)
a)
00101010
b)
00010101
c)
01010101
d)
00001111
Reset
