U2L3 #1 [Writing Functions]

Flashcard
•
Computers
•
12th Grade
•
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Inheritance Flashcard

Flashcard
•
11th Grade
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
11 questions
Computer Programming

Flashcard
•
University
13 questions
Fall Semester Exam Review (Units 1, 2)

Flashcard
•
12th Grade
10 questions
Fall Semester Final (Version B) - CS Principles

Flashcard
•
11th Grade
11 questions
AP Computer Science Principles Unit 3

Flashcard
•
10th - 12th Grade
15 questions
Python Programming Flashcard

Flashcard
•
University
10 questions
Java Classes and Objects

Flashcard
•
12th Grade
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