<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
Enlist
// guest
▾
Login
Request Account
[ light ]
// Basics
Basics Quiz
// question 1 of 10
What is the result of ""hello"".upper()?
Hello
HELLO
hello
// question 2 of 10
What type is 0?
bool
str
int
// question 3 of 10
What is stored in name? name = ""Ana""?
Nothing
A variable type
The text Ana
// question 4 of 10
What happens in x = input()?
x becomes None
x becomes 0
User input is stored in x
// question 5 of 10
What is the result of ""a"" * 4?
aaaa
Error
a4
// question 6 of 10
What is the result of ""abc"" == ""abc""?
False
abc
True
// question 7 of 10
What is the result of str(5) + ""5""?
10
55
Error
// question 8 of 10
What is the result of ""banana"".replace(""a""
bonono
banana
o"")?
// question 9 of 10
What does or do?
True only if both are True
Stops code
True if one is True
// question 10 of 10
What happens with int(""abc"")?
ValueError
TypeError
NameError
Submit Answers →