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
15 questions
IB Biology 2.4 Proteins

Flashcard
•
KG - 12th Grade
11 questions
Computer Programming

Flashcard
•
University
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
7 questions
CS 341 Lab 1 Spring 2024

Flashcard
•
University
10 questions
AP CSA Unit 1

Flashcard
•
12th Grade
9 questions
Reading and Writing Files with Python Intro

Flashcard
•
9th - 12th Grade
17 questions
Python Operators and Expressions

Flashcard
•
10th Grade - University
13 questions
checkpoint-1 GE -misconceptions

Flashcard
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade