U2L3 #3 [Functions Returning values]

Flashcard
•
Computers
•
University
•
Easy
Harold Peaden
Used 1+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
This code correctly creates a function that returns a value.
2.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
This code correctly creates a function that returns a value.
3.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
There is an error in this code.
Answer explanation
This tries to return a value from a function that does not specify to expect a return type.
4.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
There is an error in this code.
Answer explanation
This attempts to return a Boolean when it should return an integer.
5.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
There is an error in this code.
Answer explanation
This does not return a value if color is not "tartan"
6.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
This code correctly creates a function that returns a value.
7.
FLASHCARD QUESTION
Front
Does the code correctly create a function that returns a value?
Back
This code correctly creates a function that returns a value.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Parent Function Warm up

Flashcard
•
12th Grade
15 questions
Cardiovascular System Learning Check

Flashcard
•
12th Grade
11 questions
Computer Programming

Flashcard
•
University
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
12 questions
Python function

Flashcard
•
University
10 questions
AP CSA Unit 1

Flashcard
•
12th Grade
15 questions
IB Biology 2.4 Proteins

Flashcard
•
KG - 12th Grade
15 questions
LIMITS AND THE GREATEST INTEGER FUNCTION

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