Python Functions Overview

Flashcard
•
Computers
•
12th Grade
•
Easy
VIJITHA M
Used 1+ times
FREE Resource
Student preview

26 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a function in programming?
Back
A function is a programming block of codes used to perform a single, related, specific task.
2.
FLASHCARD QUESTION
Front
What are parameters in a function?
Back
Parameters are data passed into a function.
3.
FLASHCARD QUESTION
Front
What does it mean that Python treats functions as first-class members?
Back
It means functions in Python can be assigned to variables, stored in collections, or passed as arguments.
4.
FLASHCARD QUESTION
Front
List some advantages of using functions.
Back
1. Reducing duplication of code 2. Decomposing complex problems into simpler pieces 3. Improving clarity of the code 4. Reuse of code 5. Information hiding
5.
FLASHCARD QUESTION
Front
What are the three categories of functions in Python?
Back
1. Built-in functions 2. Functions defined in modules 3. User-defined functions
6.
FLASHCARD QUESTION
Front
What are built-in functions in Python?
Back
Functions whose functionality is predefined in Python, such as len(), type(), int(), input().
7.
FLASHCARD QUESTION
Front
What are user-defined functions?
Back
Functions that allow users to write unique logic defined by the user.
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Final Review Part 2

Flashcard
•
11th Grade
21 questions
AP CSP Unit 7 Review

Flashcard
•
11th Grade
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
15 questions
Rhetorical Appeals Review

Flashcard
•
11th - 12th Grade
15 questions
Logarithmic and Exponential Equations Flashcard

Flashcard
•
11th Grade
16 questions
FLASHCARD Evaluating Piecewise Functions

Flashcard
•
12th Grade
16 questions
Key Features of Cubic Functions

Flashcard
•
11th - 12th Grade
15 questions
Precalc. AB Semester Final Part 1

Flashcard
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade