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
Computer Science 1301 Final Questions

Flashcard
•
University
11 questions
Function in Python

Flashcard
•
KG
15 questions
1.1.4 Review

Flashcard
•
12th Grade
10 questions
Scripting

Flashcard
•
University
8 questions
U2L3 #6 [Functions - Default Parameters]

Flashcard
•
University
11 questions
Computer Programming

Flashcard
•
University
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
10 questions
Java Flashcard 1

Flashcard
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade