wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Yr9_4-in-1-revision

Total questions: 100

Worksheet time: 59mins

Name
Class
Date
1.
Convert 128 to binary
a)
10000000
b)
01111110
c)
10000001
d)
11001100
2.
Convert 65 to binary
a)
01100001
b)
00100001
c)
01000001
d)
00100101
3.
Convert 37 to binary
a)
00100101
b)
00100011
c)
00100111
d)
01000101
4.
Convert 254 to binary
a)
11110000
b)
11111100
c)
11111111
d)
11111110
5.
If 1 and 0 mean on and off. Is the number 1 on or off?
a)
ON
b)
OFF
6.
What are the only two numbers you can use in binary?
a)
0 and 1
b)
1 and 2
c)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
d)
1, 2, 4, 8, 16
7.
The missing binary heading is what?
128,  64, ___ , 16, 8, 4, 2, 1
a)
32
b)
30
c)
60
d)
20
8.

Why do we need to convert all data into BINARY format for computer to process?

a)

It is nice

b)

Computers can only understand binary format , i.e. 0s and 1s

c)

Computers are strange

d)

Computers use transistors to detect on/off for 1s / 0s

9.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
10.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
11.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
12.
What will the output be from the following code?
print("3*4+5")
a)
SyntaxErrror
b)
17
c)
3*4+5
d)
12
13.
What will the output be from the following code?
print(9/3*2+4-5)
a)
19
b)
5.0
c)
0.5
d)
5
14.
For strings, the + operator represents 
a)
Concatenation
b)
Addition
c)
Appending
d)
Recantation 
15.
What is printed by the following statements?
s = "programming rocks"
print(len(s))
a)
12
b)
17
c)
16
d)
nothing - there is an error
16.
What is printed by the following statements?
s = "python rocks"
print(s[-3])
a)
c
b)
k
c)
s
d)
Error
17.
What is printed by the following statements?
cheer = "Go Eagles!"
print cheer[5:8]
a)
gle
b)
agle
c)
gles
d)
agles
18.
What is printed by the following statements?
ss = "Hola, friend"
print(ss.upper())
a)
hola, friend
b)
Hola, Friend
c)
HOLA, FRIEND
d)
Hola, friend
19.
In Python, to check if variable stuAge is 19 or over, which is the correct code?
a)
if stuAge >= 19:
b)
if stuAge >= 19
c)
if stuAge > 19:
d)
if stuAge == 19:
20.
In Python, to check if variable stuAge is over 19, which is the correct code?
a)
if stuAge > 19:
b)
if stuAge >= 19:
c)
if stuAge < 19:
d)
if stuAge == 19:
21.
In Python, to check if a student is 19 or younger, which is the correct code?
a)
if stuAge <= 19:
b)
if stuAge >= 19:
c)
if stuAge < 19:
d)
if stuAge == 19:
22.
To check if a variable's value is equl to 100, which one should be used?
a)
if theVariableName == 100:
b)
if theVariableName = 100:
c)
theVariableName = 100:
d)
if hours == 100:
23.
To check if a sutdent's name is "Ahmed", which one should be used?
a)
if stuName == "Ahmed":
b)
if stuName = "Ahmed":
c)
if stuName == "Ahmed"
d)
if stuName == Ahmed:
24.
In Python, to check if variable stuAge is 19 or over, AND if the student is MALE, which is the correct code?
a)
if stuAge >= 19 and gender == "Male":
b)
if stuAge >= 19 AND male:
c)
if stuAge > 19 or gender ="Male":
d)
if stuAge == 19 and not gender =="Male":
25.
In Python, to check if variable stuAge is over 19 , AND if the student is MALE, which is the correct code?
a)
if stuAge > 19 and gender == "Male":
b)
if stuAge >= 19 and gender == "Male":
c)
if stuAge < 19 and gender = "Male":
d)
if stuAge == 19 and "Male":
26.
In Python, to check if a student is 19 or younger, AND if the student is MALE, which is the correct code?
a)
if stuAge <= 19 and gender == "Male":
b)
if stuAge >= 19 and gender == Male:
c)
if stuAge < 19 and gender = "Male":
d)
if stuAge == 19 and "Male":
27.
To check if mother tongue is "English", print "English" (ignore the missing indent!)
a)
if motherTongue == "English": print("English")
b)
if motherTongue = "English": print("English")
c)
if motherTongue == "English": print(English)
d)
if motherTongue == English: print("English")
28.
If mother tongue is "Bengali" then print "Bengali" (ignore the missing indent).
a)
if motherTongue == "Bengali": print("Bengali")
b)
if motherTongue = "Bengali": print("Bengali")
c)
if motherTongue == "Bengali": print(Bengali)
d)
if motherTongue == Bengali: print("Bengali")
29.
Why there is a need for variables in computer programs?
a)
Because the program needs to save the value for later uses.
b)
Because it is fashionable to do so in the industry.
c)
Because it is myth.
d)
Because otherwise the computer's RAM would not be able to work.
30.
Assign "A picture's worth a thousand words" to proverb. Which one is the correct one in Python?
a)
proverb = "A picture's worth a thousand words"
b)
proverb = ="A picture's worth a thousand words"
c)
proverb = A picture's worth a thousand words
d)
proverb <- "A picture's worth a thousand words"
31.
Assign "David" to name. Which one is the correct one in Python?
a)
name="David"
b)
name="David
c)
name=="David"
d)
name = David
32.
Assign 14 to stuAge. Which one is the correct one in Python?
a)
stuAge = 14
b)
stuAge == 14
c)
stuAge >= 14
d)
stuAge <= 14
33.
Assign 4.5 to hourlyRate. Which one is the correct one in Python?
a)
hourlyrate = 4.5
b)
hourlyrate == 4.5
c)
hourlyrate >= 4.5
d)
hourlyrate <= 4.5
34.
Assign 24 to classSize. Which one is the correct one in Python?
a)
classSize = 24
b)
classSize == 24
c)
classSize >= 24
d)
classSize <= 24
35.
A variable's name (identifier) is hasPaid. What could it represent?
a)
This variable may represent the answer to if someone has paid or not.
b)
This variable may represent the answer to if someone is late or not.
c)
This variable may represent the answer to if someone has passed the exam or not.
d)
This variable may represent the answer to if someone is married or not.
36.
A variable's name (identifier) is surame. What could it represent?
a)
This variable may represent the surname of the concerned.
b)
This variable may represent the first name of the concerned.
c)
This variable may represent the age of the concerned person.
d)
This variable may represent if someone has paid their fees or not.
37.
A variable's name (identifier) is first_name. What could it represent?
a)
This variable may represent the first name of the concerned.
b)
This variable may represent if the concerned has done the weekly shopping or not.
c)
This variable may represent if the concerned person is late or not.
d)
This variable may represent the age of the concerned.
38.
A variable is
a)
a RAM memory location where a value is stored.
b)
the length of a string.
c)
the weight of a person.
d)
the temperature of the room.
39.
A variable has
a)
ALL of these options
b)
an identifier (a name).
c)
a value representing a real world property, such as score or time left in a game.
d)
an address in RAM so that it can be accessed.
40.
A variable is
a)
a container where a value is stored.
b)
the name of a person.
c)
the answer to a question.
d)
the question asked.
41.
Here is a Python statement: x = 14. Which part is the value of the variable?
a)
14 is the value of the variable x.
b)
x is.
c)
= is.
d)
None is.
42.
Here is a Python statement: x = 14. Which part is the identifier of the variable?
a)
x is the name, the identifier, of the variable.
b)
= is.
c)
14 is.
d)
None is.
43.
Here is a Python statement: x = 14. What is the role of the "="?
a)
It is to assign the value on the right to the container on the left.
b)
It is to check if x equals to 14.
c)
It is to add 14 to x.
d)
It is to take away 14 from x.
44.
To represent the size of a class at your school, which is the legal variable name (identifier)? "legal" here means it is allowed by the programming language's syntax rules.
a)
classSize
b)
class size
c)
1classSize
d)
%classSize
45.
To represent the first name of your friends in your contact list, which is the legal variable name (identifier)? "legal" here means it is allowed by the programming language's syntax rules.
a)
first_name
b)
first name
c)
f n
d)
&firstname
46.

When digitizing sound, what is the sample rate measured in?

a)

BPS

b)

Hz

47.
The number of samples taken each second
a)
Bit Rate
b)
Sample rate
48.
What is the standard Sample Rate for recording a song?
a)
44KHz
b)
8KHz
c)
92KHz
49.

The number of bits used in each sample

a)

Sample Rate

b)

Bit Rate

c)

Bit depth

50.

How many tones are available with a Bit Depth (or sample size) of 4?

a)

2

b)

16

c)

65000

d)

17 million

51.
A continuous sound signal
a)
Analogue
b)
Digital
52.
A discrete (non-continuous) sound signal
a)
Analogue
b)
Digital
53.

What is the correct equation to calculate the size of a sound file in bits?

a)

Size = time(s) x sample rate(hz) x sample size (bits) x channels

b)

Size = time(s) x sample rate(hz) x sample resolution(bytes)

c)

Size = time(s) x sample rate(Mhz) x sample resolution(bits)

d)

Size = time(mins) x sample rate(hz) x sample resolution(bits)

54.
A sound file has a total file size of 72,000 bits. How much is this in kilobytes (Kb)?
a)
72 Kb
b)
720 Kb
c)
90 Kb
d)
9 Kb
55.
Sound clips are always stored in a digital format on a computer.
a)
TRUE
b)
FALSE
56.
Sound is caused by? 
a)
force
b)
vibrations
c)
instruments
57.
The smallest unit of data stored in an image file is called:
a)
Pixels
b)
Resolution
c)
Alpha
d)
Bitmap.
58.
How many colours do we get from 2 bits
a)
2 colours
b)
4 colours
c)
8 colours
d)
24 colours
59.
How many colours do we get from 3 bits?
a)
2 colours
b)
4 colours
c)
8 colours
d)
24 colours
60.
What is meant by the term 'colour depth'?
a)
Width and height of an image.
b)
A pixel in an image.
c)
Quality of the colour.
d)
Number of bits used to encode each pixel.
61.
The higher the resolution, the ____ the file size.
a)
Smaller
b)
Larger
62.
The higher the colour depth, the _________the image file size.
a)
Smaller
b)
Larger
63.

What is the calculation to work out how many bits a bitmap is?

a)

height * width * colour depth

b)

height / width * colour depth

c)

height - width + colour depth

d)

height * width / colour depth

64.

A bitmap image is 20 pixels high and 5 pixels wide, with a colour depth of 2 bits. How many bits is this image?

a)

200 bits

b)

100 bits

c)

500 bits

d)

150 bits

65.
When we have a 'one-bit' colour, which are the only two binary numbers that are possibilities?
a)
00 and 11
b)
000 and 111
c)
0 and 1
d)
0000 and 1111
66.
How many combinations are there for a '2 bit' colour?
a)
8
b)
4
c)
16
d)
32
67.
Each pixel in an image has a possibility of 16 colours. What is the colour depth?
a)
2 bits
b)
3 bits
c)
4 bits
d)
5 bits
68.
What is the bit pattern of the image? (Black is 00 and white is 01)
a)
010
101
101
010
b)
001100
110011
110011
001100
c)
000100
010001
010001
000100
d)
010001
000100
000100
010001
69.

The characters available on your computer

a)

Bit Depth

b)

Binary

c)

Data

d)

Character set

70.

The characters available on your computer

a)

Bit Depth

b)

Binary

c)

Data

d)

Character set

71.
Images are stored using a grid of ______.
a)
Pixels
b)
Dots
c)
Bits
72.

Bitmaps use what?

a)

boxes

b)

pixels

c)

paths

d)

crayons

73.
Bitmap or 'raster' graphics are made up of _______
a)
Shapes and lines
b)
Pixels
74.
ASCII stands for...
a)
The American Standard Code for Information Interchange
b)
The Authentic Style Code for Information Interchange
c)
The American System Control for Information Interchange
d)
The Authentic System Coding for Information Interchange
75.
ASCII code 97 represents which alphanumeric?
a)
A (capital)
b)
a (lowercase)
c)
0 (zero)
d)
1 (one)
76.
ASCII represents which of the following?
a)
characters, letters, symbols and signs
b)
letters, symbols and signs
c)
characters, letters and signs
d)
characters, letters and symbols
77.
104, 101, 108, 108, 111... spells???
a)
hello
b)
silly
c)
hills
d)
polly
78.
In ASCII code order 'Z' comes before 'a'
a)
True
b)
False
79.

How many bits was used to encode the original ASCII character set?

a)

7

b)

8

c)

16

d)

4

80.

What is the ASCII code for A?

a)

51

b)

41

c)

61

d)

65

81.
What is the following word  67 65 84?
a)
CAT
b)
BAR
c)
GYM
d)
CAR
82.
ASCII is pronounced:
a)
Ask-ee
b)
A-skee
c)
A-skews-me
83.
Convert 65 to binary
a)
1000001  
b)
1000010
c)
1000011
d)
1100010
84.
Convert 1000001 its decimal value
a)
65
b)
64
c)
66
d)
32
85.

The Extended ASCII system uses 8 bits per character instead of 7 bits. How many different characters can be represented in 8 bits?

a)

1024

b)

8

c)

128

d)

256

86.

If 01000001 (65) is the ASCII code for the letter 'A' what is the binary code for 'E'?

a)

01000011

b)

01000101

c)

01000110

d)

01000111

87.
What is the ASCII code for ... I?
a)
73
b)
37
c)
105
d)
150
88.
What is the ASCII code for ... E?
a)
45
b)
68
c)
69
d)
70
89.
What is the ASCII code for ... O?
a)
78
b)
76
c)
88
d)
79
90.
What is the ASCII code for ... U?
a)
55
b)
85
c)
68
d)
87
91.
What is the following word ... 67 65 84
a)
CAT
b)
COT
c)
CAR
d)
BAT
92.
What is the following word ... 79 70 70
a)
ON
b)
OFF
c)
OR
d)
ONE
93.
What is the following word ... 79 78
a)
OFF
b)
ON
c)
OR
d)
ONE
94.

FOR loop (choose 4)

a)

is one kind of iteration in programming.

b)

is also known as "counter controlled" loop.

c)

is for iterations when the number of repetition is known.

d)

is different from WHILE loop.

e)

not sure

95.

Iteration means (choose 2)

a)

repetition

b)

looping

c)

selection of routes

d)

decision making based on conditions

e)

none of these

96.

FOR loop has (choose 4)

a)

a begin condition

b)

an exit condition

c)

a counter

d)

a stepper

e)

a code block for execution.

97.
In Python, for x in range(0, 10,1): Which is the beginning condition?
a)
in
b)
range()
c)
x = 0
d)
x = 10
e)
x = 1
98.
In Python, for x in range(0, 10,1): Which is the exit condition?
a)
in
b)
range()
c)
x = 0
d)
x = 10
e)
x = 1
99.
In Python, for x in range(0, 10,1): Which is the stepper?
a)
in
b)
range()
c)
0
d)
10
e)
1
100.
In Python, for choice in range(1, 20): Which is the counter variable?
a)
choice
b)
for
c)
range
d)
1
e)
20