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