Week 3 Tutorial Quiz
Quiz
•
Computers
•
University
•
Hard
Wongsathorn Tonkultorn
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What is
var = 29 * 24 - 39 / 23 + 94
Statement
Expression
Neither
Both
Answer explanation
A statement is considered an expression
2.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What is the output from the call strange(3,100)?
3
4
5
Error!
None of the above
Answer explanation
The function stops at the first return so the second and third is unreachable
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output from the call f(1,1)?
4
6
8
Error!
None of the answers
Answer explanation
g(a, b) returns None which cannot be added together
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output from the call twice(twice(twice(2)))?
8
16
twice(2) + twice(2)
Error!
None of the answers
Answer explanation
The output of one twice() becomes the input of the other twice()
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be printed out from executing f(5) and g(5) ?
f(5) prints 'Here'
g(5) prints nothing
f(5) prints nothing
g(5) prints 'There'
f(5) prints 'Here'
g(5) prints 'There'
f(5) prints 'There'
g(5) prints nothing
None of the answers
Answer explanation
For g(5), since 5 < 10, the else is not reached. And since 5 < 4 is false, nothing is printed!
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What printed out from f(2), f(5), f(15)?
'There', 'Where', 'Here'
'Here', 'There', 'Where'
'Here', 'There', 'There'
'Here', 'Where', 'There'
'There', 'Where', 'Where'
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What printed out from executing g(2)?
'Here'
'There'
'Where'
'Here' and 'There'
'Here' and 'Where'
8.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What printed out when calling pain()?
True
'True'
False
'False'
'neither True nor False'
Similar Resources on Wayground
10 questions
Programming in C
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
11 questions
TLE2 M5 PC Disassembly and Assembly
Quiz
•
University
10 questions
T02: Python - The Basics
Quiz
•
University
12 questions
Tech & Digital Skills Quiz
Quiz
•
9th Grade - University
13 questions
CIS1103 Week 9_10 CLO3 Part 3
Quiz
•
University
10 questions
Evaluation
Quiz
•
University
8 questions
Network Architecture
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University