
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
11 questions
Computer Programming

Flashcard
•
University
11 questions
Python [Basic]

Flashcard
•
KG
10 questions
Python- Operators

Flashcard
•
12th Grade
9 questions
Dictionary Flashcard

Flashcard
•
12th Grade
10 questions
Ôn tập chủ đề F

Flashcard
•
KG
12 questions
Python Functions and Docstrings Flashcard

Flashcard
•
University
7 questions
Урок 3. Весняний інтенсив 2025

Flashcard
•
University
15 questions
CSE 102 Exam 3 Practice

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