Font size
WorksheetsY8 Term 3 Python recap
Total questions: 60
Worksheet time: 36mins
To display a text in Python you must use the next function:
print()
input()
output()
display()
Which line of code is correct in Python?
Print("Year8")
print("Wrong!")
print"(Correct!)"
print"Buna!"
In Python, \n
creates a line return in a string of text
creates a tab style indent in a string of text
allows a backslash to appear in a string of text
allows a speech mark to be used in a string of text
Python variables are case sensitive. This means that
they can be only word and letters
capitals and lower case letters are treated differently
they can be only letters and numbers
they must start with a letter
What is the output of the next program?
y="John"
y="Hi" + y
x=y+"!"
print (x)
An error will appear, because x is a letter, and the correct function is print("x")
HiJohn!
Hi John !
!
v1=5
v2=10
v1=v1+v2
v2=v2+v1
What are the values of v1 and v2?
15, 25
5, 10
15, 15
Error
What extension must you use to the end of the Python filename when saving it?
.key
.ppt
.docx
.py
What does the term 'debug' mean?
Finding algorithms
Identifying errors and fixing them
coding algorithms in Python
Looking for a code
What does 'syntax' mean?
Describes an error or a bug
Uses the 'print' and 'input' functions.
The rules of a programming language
The dictionary of a language
What will the output be from the following code?
print("3+4")
7
34
3+4
SyntaxError
What will the output be from the following code?
print(3+4)
7
34
3+4
SyntaxError
Why do machines demonstrate artificial intelligence?
Because machines are not really intelligent compare to humans.
Because machines are capable of doing tasks for humans by programming them with a specific information.
Because machines are useful and relevant in our daily lives.
Because machines give you artificial information which are important.
The following statements describe Artificial Intelligence EXCEPT
AI is very useful in the present generation increasing its productivity.
Al is a threat if mismanaged or used for bad intentions.
AI replaces humans as it is more efficient than humans.
All of the above
Which of the following statements best describes the difference between robots and humans?
Robots move differently and made up of metal.
Robots do not have feelings and emotions as compared to humans.
Robots are too smart as compared to humans.
Robots are more effective than humans.
What is A.I?
Intelligence demonstrated by machines
Smart robots
Anthony Ian
I don't know
The term A.I is short for?
Anatomy Insector
Astrology Iselin
Anh Intelligence
Artificial Intelligence
Antificial Intelligence
Select movies that do NOT feature either robots or A.I.
Avengers: Age Of Ultron
The Terminator
Iron Man 3
Harry Potter
Avengers: Infinity War
Which one of these is not an area of AI?
computer vision/image recognition
voice recognition
web design
robotics
What is AI used for?
Healthcare
Transportation
Education
All of the Above
Identify the bot in the picture.
Sophia
Asimo
Swati
sofil
The father of Computer science is considered to be
John von Neumann
Donald Trump
Alan Turing
Tim Berners-Lee
print(3*4+5)
Which of the following is a Python command
@echo off
print ("")
print "name"
echo.
In Python, to have text stated for the user to see, we use:
" "
% %
( )
? ?
name = "Bob"
if name == "Bob":
print ("Hello " + name)
else:
print ("I dont know you")
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
What would this print?
print(X)
Why won't this work?
if you type print("4"+"9") what result would you get
49
13
error
0
which of these are a correct print statement
Print("Computer science")
prit ("Computer science")
print (Computer science")
print ("Computer science")
Find the Error within this code snippet
Missing Brackets
Missing Speech Marks
Capital Letters for Function Name
Spelling Mistakes
Find the Error within this code snippet
Missing Bracket
Missing Speech Mark
Capital Letters for Function Name
Spelling Mistake
How many errors are in this code snippet?
1
2
3
4
What does INT stand for in Python
Float (Decimal Numbers)
String (Text)
Boolean (True/False)
Integer (Whole Numbers)
What will be the output of print ("Theo_is_awesome")
Theo sucks.
theo_is_awesome
Theo is awesome
Theo_is_awesome
Which variable data type is 'International School of Bucharest' an example of?
String
Integer
Float
Boolean
If you type 6/2 what result would you get in python.
3.2
62
3.0
Error
If you type 10/5 what result would you get in python?
2
2.0
0
15
Which of the following is NOT a suitable variable name?
num1
Num1
MyName
My name
print("Hello" + "world" + "today")
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
What will the output be from the following Python code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What will the output be from the following Python code?
print(9/3)
3
3.0
9/3
SyntaxError
How do you define(assign) variables?
var="String"
func==Hello
var : 123
word= Hello
What symbol is used in python to assign values to a variable?
:
*
=
==
