NEW
Font size
S
M
L
XL
WorksheetsYear 7CS_exam
Total questions: 37
Worksheet time: 18mins
Name
Class
Date
1.
What is the denary number equivalent of this binary number 1111
a)
7
b)
15
c)
10
d)
11
2.
What is the denary number equivalent of this binary number 0101?
a)
11
b)
5
c)
8
d)
2
3.
What is the denary number equivalent of this binary number 10110?
a)
5
b)
24
c)
22
d)
16
4.
What is the binary equivalent of the denary number 50?
a)
110010
b)
011111
c)
010011
d)
111100
5.
What is the binary equivalent of the denary number 11?
a)
1100
b)
none of these
c)
0101
d)
100
6.
What is the binary equivalent of the denary number 76?
a)
0100100
b)
0100000
c)
1001100
d)
0100111
7.
If the capital letter A is represented by the binary code for 65 in a computer system. Which code do you think logically could represent the capital letter C?
a)
1100111
b)
1111111
c)
1000011
d)
None of these
8.
This coding piece would ...
a)
add 2 numbers and output the answer
b)
add two numbers together that are stored in varaiables NUM1 and NUM2 and store the answer in variable A
c)
say "hello"
d)
add NUM1 and NUM2 together and output the result
9.
Which code would be the equivalent in Python to this piece in Scratch?
a)
for i in range(1,3): print("am I still here?")
b)
print("I have just received the message ....beep, beep, beep, boop, beep")
c)
if binarynumber==29: print("it is safe to let the alien in, he will help now fix my memory")
d)
feeling=input("How are you after all these years!")
10.
What is the 'cat' in the programming language Scratch an example of?
a)
Cat
b)
Sprite
c)
Object
d)
Character
11.
Which section or box of coloured pieces in the coding language would you use to define a variable?
a)
Motion pieces
b)
Sensing
c)
Control
d)
None of these
12.
A VARIABLE is used in a computer program to ....
a)
vary the amount of data
b)
play music
c)
store some data in a named memory location
d)
to calculate the answer when two numbers are input
13.
The following code would show ...... on the screen if 11 was input ...
a)
11 and 121
b)
none of these
c)
22
d)
121
14.
These coding blocks are all part of which category of blocks?
a)
Motion
b)
Looks
c)
Events
d)
Controls
15.
This code will .... 2 numbers together.
a)
add?
b)
divide?
c)
multiply?
d)
none of the options shown as there is a bug in the code?
16.
A student needs to add one more operation to her basic calculator code, which one of the following is she missing?
a)
divide
b)
add
c)
multiply
d)
square root
17.
In the Python coding language, what would ....
print (10**2) produce?
print (10**2) produce?
a)
20
b)
22
c)
24
d)
100
18.
In the Python coding language, which option would be the correct version of this line of code .....
Print(Hello my name is Julietta, I am a friendly chatbot"
Print(Hello my name is Julietta, I am a friendly chatbot"
a)
Print(Hello my name is Julietta, I am a friendly chatbot")
b)
print(Hello my name is Julietta, I am a friendly chatbot"
c)
none of these
d)
print("Hello my name is Roberta, I am a friendly chatbot")
19.
Which of the following famous people is associated with helping to break the Enigma code and was a famous computer scientist and mathematician?
a)
Benedict Cumberbatch
b)
Albert Einstein
c)
Alan Turing
d)
Stephen Hawkings
20.
A student has just learnt how to use the input command in the Python coding language. Which of the following would ask for your name and then output it to the screen?
a)
name=input ("What is your name?")
print("name")
print("name")
b)
name=int(input("What is your name?"))
print(name)
print(name)
c)
name=input("What is your name")
print(name)
print(name)
d)
input("What is your name?")
print(name)
print(name)
21.
A student is trying to make a 'truth or dare' game. In which category would she find the 'on button A pressed'?
a)
Input
b)
Logic
c)
Basic
d)
Maths
22.
How would you send some code to your Microbit?
a)
Choose the run option
b)
Choose the compile option and open the file
c)
Choose the compile option and send the file to the Microbit
d)
Choose the run option and send the file to the Microbit
23.
What does the button do at the top right of the picture?
a)
On/off
b)
Resets
c)
Dims the LEDs
d)
Button C ... used with A and B
24.
What sort of programming structure does this show?
a)
A decision structure
b)
A repeat structure
c)
An input structure
d)
A subroutine structure
25.
Which set of pieces has the student used to make the sub routines ... add, subtract, multiply ....?
a)
events
b)
data
c)
more blocks
d)
control
26.
Computer coding:Which one of the following would show 'hello world' when the code was run? You could use the Python code editor to help you.
a)
print("hello world)
b)
Print("hello world")
c)
print("hello world")
d)
print(hello world)
27.
A student has written an algorithm for a dance. Which iteration would be correct and make the code the most efficient including trying to simplify the number of words used?
a)
Repeat the following 3 times: Put left foot forward Put right foot forward
b)
Repeat the following 5 times: Put right foot forward, Put left foot forward
c)
Repeat the following 10 times: Put left foot forward Put right foot forward
d)
Repeat 5 times: right foot forward, left foot forward
28.
A Flow Chart is used to ...
a)
measure the amount of water
b)
plan a logical process before writing computer code
c)
measure speed
d)
make a pie chart
29.
A VARIABLE is used in the Scratch computer programming language to store both text and numbers. The programming language called Python also uses variables. If you wanted to build a calculator in Python, which of the following would be correct for a variable called 'num1'?
a)
input(please type in your number)
b)
num1=input("please type in your number")
c)
num1=int(input("please type in your number"))
d)
num1=int("please type in your number?")
30.
Which 2 blocks could you pair up?
a)
A and B
b)
B and C
c)
C and D
d)
A and D
31.
What would happen if you typed in a your name instead of a number when this code was run?
a)
Error
b)
64
c)
0
d)
none of the above
32.
Look at your email code to help you answer this question. What do you think the code 'beep', 'beep', 'boop','beep' could translate to?
a)
the number 12
b)
'hello'
c)
the number 13
d)
'alien'
33.
Look at your email code. How many times do you think the message ... "emergency! system malfunction, alien cyber attack, suffering memory loss! only 1 minute left before total system shutdown" ...will appear on the screen?
a)
once
b)
twice
c)
three times
d)
not at all as there is a bug in the code
34.
Look at your email code. Which one of the following are variables used in the program?
a)
num1
b)
digit
c)
feeling
d)
name
35.
Look at your email code.
Which denary number (base 10) would produce this message ...
..
"if you value your life, do not let this alien in, he is trying to get in and destroy ..."
Which denary number (base 10) would produce this message ...
..
"if you value your life, do not let this alien in, he is trying to get in and destroy ..."
a)
12
b)
13
c)
14
d)
17
36.
Look at your email code.
....
#note A short story written in Python code
.....
Why isn't the above line output to the black window when the code is run?
....
#note A short story written in Python code
.....
Why isn't the above line output to the black window when the code is run?
a)
because the # mark treats the code as a note
b)
it should do, there is an error
c)
the programmer has forgotten how to use the 'print' command
d)
none of these
37.
What would you need to do to make the cross appear when this code was run?
a)
Shake the micro bit
b)
Connect pin 0 to the gnd (ground) pin
c)
Press button A
d)
Press button A and B
Reset
