stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Y9 Python Basics Flashcards | StudBud
Explore
/
Y9 Python Basics
Y9 Python Basics
6 terms
·
StudBud Administration
A #Computer Science #quiz , to consolidate the #Python Basics
Flashcards
6 cards
F
Practice quiz
P
Host live
L
Questions
6
Answers
1
What do you use to make a simple 'if ' statement?
'if' and 'else'
'else' and 'elif'
'while' and 'if'
'if' and 'elif'
2
How do you ask for a user's input?
user(input)
user = input("please input>>")
user == input()
user = input()
3
Why won't this program work correctly?
Capital 'P'
Extra line
Missing quotation mark ["]
Missing bracket [()]
4
How do you print "hello world" ?
print("hello world")
print(hello world)
Print("hello world")
print("hello world)
5
Line 2 of this code is broken, choose the fixed line
name == Input("what is your name")
name = print("what is your name")
name = input("what is your name")
name == Print("what is your name")
6
What do you use to make a complex 'if' statement?
'if', 'elif' and 'else'
'while', 'elif' and 'else'
'if', 'elf' and 'else'
'if', 'in' and 'else'