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
What is the output for print(foo(10))?
'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 Wayground
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
10 questions
C Programming Quiz-6

Quiz
•
University
10 questions
Web-II-Loop and Function

Quiz
•
University
10 questions
Array in C

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
10 questions
Python Dictionaries

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade