
Python function
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
__________ keyword is used for creating a function in Python.
Back
def
2.
FLASHCARD QUESTION
Front
What will be the output of the following Python code?
def cube(x):
return x * x * x
x = cube(3)
print (x)
Back
27
3.
FLASHCARD QUESTION
Front
Which of the following refers to mathematical function? Options: sqrt, rhombus, add, rhombus
Back
sqrt
4.
FLASHCARD QUESTION
Front
What are the two main types of functions?
Back
Built-in function & User defined function
5.
FLASHCARD QUESTION
Front
Which are the advantages of functions in python?
Back
Reducing duplication of code, Decomposing complex problems into simpler pieces, Improving clarity of the code
6.
FLASHCARD QUESTION
Front
Do you call or define a function first?
Back
define
7.
FLASHCARD QUESTION
Front
What will print? Options: nothing, 5, 6, an error message
Back
nothing
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?
Similar Resources on Wayground
10 questions
Fitness Training Essentials
Flashcard
•
KG - University
10 questions
UNIT 3 FLASHCARD TECHDOC
Flashcard
•
University
3 questions
Sample Flashcard to Test out AI for course
Flashcard
•
Professional Development
13 questions
CE-LP4 Montadores, Compiladores, Ligadores e Interpretadores
Flashcard
•
KG - University
10 questions
9 клас. Алгебра. Арифметична прогресія
Flashcard
•
KG - University
10 questions
Pendant mon temps libre
Flashcard
•
University
9 questions
Tuesdays with Morrie
Flashcard
•
12th Grade
13 questions
Fall Trivia
Flashcard
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade