NEW
Font size
S
M
L
XL
WorksheetsY8 Spring Assessment
Total questions: 16
Worksheet time: 8mins
Name
Class
Date
1.
What will the output be from the following code?
print(Hello world!)
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
2.
What will the output be from the following code?
print("Hello world!" * 2)
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
3.
What is the output from the following code?print ("hello world")
a)
Hello World
b)
hello world
c)
print hello world
4.
What will the output be from the following code?
print(3+4)
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
5.
Which function takes a users input
a)
print()
b)
int()
c)
input()
d)
def
6.
What is the part within the red boxes called?
a)
Input buttons
b)
Ground
c)
CPU
d)
Micro-usb connector
7.
How many LEDs does the microbit have?
a)
15
b)
21
c)
23
d)
25
8.
How many milliseconds in ONE SECOND?
a)
A million
b)
A thousand
9.
Which syntax would you use to display scrolling text that said "I love school"
a)
display.show("I love school")
b)
display.scroll(I love school)
c)
display.show(I love school)
d)
display.scroll("I love school")
10.
What syntax would you use to display an in-built image of a sword?
a)
display.show(image.sword)
b)
display.show(Image.SWORD)
c)
display.scroll(Image.SWORD)
d)
display.show(Image.sword)
11.
Which is the correct line of code?
a)
dislay.scroll(“Hello”)
b)
display.scroll(“Hello”)
c)
Display.scroll(Hello)
d)
display.scroll.“Hello”
12.
Which is the correct website for coding the Micro:bit?
a)
www.bbc.co.uk
b)
microbus.co.uk
c)
microbit.org
d)
microbit.je
13.
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
14.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
15.
What does the print function do in python?
a)
It's a variable.
b)
It can input data.
c)
It displays something like a string or integer
d)
It loops the code.
16.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
Reset
