Third Day Quiz!
Quiz
•
Fun, Computers, Philosophy
•
1st - 5th Grade
•
Practice Problem
•
Hard

Bernard Huan
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What's wrong with the syntax? (ignore the indentation)
def Function1();
print("hello world")
it doesn't take in any parameters
the semicolon should be replaced by colon
the function name starts with upper-case "F"
it doesn't return anything
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
A function is
Specific codes with a specific purpose(s) all together so they are maintainable and organized
A waste of time to use and it doesn't help your codes at all
Locate your codes in a single place so that it's easier to maintain
It's like a factory that may take into input (parameters) and process the input and give you a product (return)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do I call the helloWorld function?
helloWorld
shout HELLO WORLD as loud as you can
helloWorld()
print("Hello World")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's wrong with this code?
It doesn't return a*b
It's missing two required parameters
the syntax of the function is wrong
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output and why?
False because the function is not equal to "Hello!"
False because "Hello!" is not equal to a
True because the voice_echo function will return "Hello!"
True because voice_echo function has been assigned to True by the return keyword
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is false?
Sometimes function doesn't take parameters, sometimes it doesn't return anything, it all depends on your use case
return is only used when there is at least one parameter
using a return without parameter(s) is possible
We should always use functions to group our codes with specific purpose(s)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the hierarchical variable scope order is correct?
Local -> Enclosing -> Built-in -> Global
Built-in -> Global -> Enclosing -> Local
Enclosing -> Local -> Global -> Built-in
Local -> Enclosing -> Global -> Built-in
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ส่วนประกอบของโปรแกรม PowerPoint
Quiz
•
4th - 6th Grade
13 questions
I4_04_AT_Review Test Crystal T(T)I4-A
Quiz
•
1st - 6th Grade
15 questions
Villa Book Week Quiz
Quiz
•
KG - Professional Dev...
10 questions
SAM Space Quiz 2
Quiz
•
1st - 5th Grade
10 questions
Quiz na koniec II semestru 1-3
Quiz
•
1st - 3rd Grade
13 questions
I4_13_AT_Review Test_Miracle Island 4_p.44~47_Crystal
Quiz
•
1st - 6th Grade
11 questions
Scratch Sequencing
Quiz
•
3rd - 4th Grade
10 questions
The Divine Image
Quiz
•
5th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Fun
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas Trivia for Kids
Quiz
•
5th Grade
20 questions
Kids Movie Trivia
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Winter Holiday Quiz!
Quiz
•
5th Grade
16 questions
Christmas characters
Quiz
•
5th Grade
22 questions
Holiday Trivia
Quiz
•
KG - 5th Grade
15 questions
Christmas Trivia
Quiz
•
3rd Grade
