
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
Similar Resources on Wayground
10 questions
Computer Science Honor Society

Flashcard
•
12th Grade
7 questions
Review Dictionary Flashcard

Flashcard
•
12th Grade
11 questions
Function in Python

Flashcard
•
KG
15 questions
Python Programming Flashcard

Flashcard
•
University
9 questions
flashcard - 7(exceptions and file handling)

Flashcard
•
12th Grade - University
8 questions
IF Statements

Flashcard
•
12th Grade
15 questions
Python modules, operators and random

Flashcard
•
University
16 questions
Python Basics Unit 3.1

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University