What is the output for print(foo(10))?
Tutorial 5 Quiz

Quiz
•
Computers
•
University
•
Hard
Wongsathorn Tonkultorn
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
'A'
'B'
'C'
Error!
None of the answers are correct
Answer explanation
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of print(foo(2))?
"AAA"
"ACA"
"AAB"
Error!
None of the answers is correct
Answer explanation
The correct output is "AA"
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of print(foo())?
"CS1010E"
"CS10"
"CS1"
Error!
None of the answers is correct
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is printed for foo_print(x)?
"HEY"
"HI"
"HELLO"
Nothing
Error!
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is printed for foo_print(x)?
"HI"
"HELLO"
Nothing
Error!
Answer explanation
print(y) uses the global value y = "HELLO" to print
6.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
What is the output of hugs(5)?
"oxo"
"oxoxoxo"
"oxoxo"
"oxoxoxoxo"
Error!
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the output of print(memorize("ABCD")?
"AABACADA"
"AABABCABCD"
"ABACBADCBA"
"ABACAD"
Huh?
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Exam 1 Practice

Quiz
•
University
10 questions
java quiz based on interface

Quiz
•
University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
9 questions
Python

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
10 questions
Array in C

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Java Static

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University