NEW
Font size
WorksheetsTutorial 5 Quiz
Total questions: 14
Worksheet time: 6mins
What is the output for print(foo(10))?
'A'
'B'
'C'
Error!
None of the answers are correct
What is the output of print(foo(2))?
"AAA"
"ACA"
"AAB"
Error!
None of the answers is correct
What is the output of print(foo())?
"CS1010E"
"CS10"
"CS1"
Error!
None of the answers is correct
What is printed for foo_print(x)?
"HEY"
"HI"
"HELLO"
Nothing
Error!
What is printed for foo_print(x)?
"HI"
"HELLO"
Nothing
Error!
What is the output of hugs(5)?
"oxo"
"oxoxoxo"
"oxoxo"
"oxoxoxoxo"
Error!
What is the output of print(memorize("ABCD")?
"AABACADA"
"AABABCABCD"
"ABACBADCBA"
"ABACAD"
Huh?
What is the output of foo(20)?
38
18
17
Error!
None of the answer is correct
What is the output of this code?
(1, [1, 2, 3], 3, 4)
[1, 2, 3, 4]
[1, [1, 2, 3], 3, 4]
Error!
[1, [2, 2, 3], 3, 4]
What is the output of this code?
(1, [1, 2, 3], 3, 4)
[1, 2, 3, 4]
[1, [1, 2, 3], 3, 4]
Error!
[1, [2, 2, 3], 3, 4]
What is the output of this code?
(1, [1, 2, 3], 3, 4)
[1, 2, 3, 4]
[1, [1, 2, 3], 3, 4]
Error!
[1, [2, 2, 3], 3, 4]
What is the output of this code?
(1, [1, 2, 3], 3, 4)
[1, 2, 3, 4]
[1, [1, 2, 3], 3, 4]
Error!
[1, [2, 2, 3], 3, 4]
What is the output of this code?
(1, [1, 2, 3], 3, 4)
[1, 2, 3, 4]
[1, [1, 2, 3], 3, 4]
Error!
[1, [2, 2, 3], 3, 4]
What is the output of print(foo(lst))?
True
False
