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
Just for fun

Quiz
•
University
12 questions
C++ public single inheritance

Quiz
•
University
10 questions
PYTHON PROGRAMMING

Quiz
•
University
10 questions
Pretest - Pemrograman Python Trivia Quiz 01

Quiz
•
University
13 questions
#include <\c>

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
15 questions
Python

Quiz
•
University
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade