
U2L3 #1 [Writing Functions]
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Harold Peaden
Used 1+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Does this code snippet correctly define and call the function?
Back
Yes, this code snippet correctly defines and calls the function.
2.
FLASHCARD QUESTION
Front
Does this code snippet correctly define a function?
Back
This code snippet has an error.
Answer explanation
You do not begin a function definition with the word function. You start the definition of a function with func.
3.
FLASHCARD QUESTION
Front
Does this code snippet correctly define a function?
Back
Yes, this code snippet correctly defines a function.
4.
FLASHCARD QUESTION
Front
Does this code snippet correctly define and call the function?
Back
Yes, this code snippet correctly defines and calls the function.
5.
FLASHCARD QUESTION
Front
Does this code snippet correctly define and call the function?
Back
This code snippet has an error.
Answer explanation
This attempts to pass parameters to a function that accepts no parameters.
6.
FLASHCARD QUESTION
Front
Does this code snippet correctly define and call the function?
Back
Yes, this code snippet correctly defines and calls the function.
7.
FLASHCARD QUESTION
Front
Does this code snippet correctly define and call the function?
Back
This code snippet has an error.
Answer explanation
This is invalid because id is not defined anywhere.
Access all questions and much more by creating a free account
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?