<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
Enlist
// guest
▾
Login
Request Account
[ light ]
// general
General Quiz
// question 1 of 10
What does __del__ define?
The behavior when an object is deleted or garbage collected
The way the object is compared to None
The default value of an attribute
// question 2 of 10
What is printed? if True or False: print(""A"")?
Nothing
A
Error
// question 3 of 10
What is printed? s={1,2,3}
s.remove(2)
{1,3}
print(s)
// question 4 of 10
What type is True?
str
bool
int
// question 5 of 10
What is printed? def f(): return True ; print(f())?
False
None
True
// question 6 of 10
What is the result of bool(0)?
True
0
False
// question 7 of 10
What does union() do?
Deletes duplicates
Combines sets
Sorts items
// question 8 of 10
What is printed? def f(x): return x != 0 ; print(f(0))?
True
0
False
// question 9 of 10
What does random.choice(""abc"") return?
Random character
b
a
// question 10 of 10
What is printed? if 5 > 3: print(""Yes"")?
Error
No
Yes
Submit Answers →