
Python function
Flashcard
•
Computers
•
University
•
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Review - Proving Congruent Triangles
Flashcard
•
KG - University
7 questions
Flashcard sur l'Arthrose
Flashcard
•
KG - University
9 questions
Matplotlib Flashcard_1
Flashcard
•
12th Grade
10 questions
POLA PEMUKIMAN DESA
Flashcard
•
KG
15 questions
Linear vs. Nonlinear functions
Flashcard
•
KG - University
14 questions
Education FCE Vocabulary
Flashcard
•
12th Grade
9 questions
Review Chapter 3
Flashcard
•
University
9 questions
football/soccer flashcard
Flashcard
•
KG
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University