
Functions in Python

Quiz
•
Computers
•
12th Grade - University
•
Hard
Trial1 T
Used 27+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not true about functions?
They divide a large program into smaller modules
Provide a systematic way of problem solving
Make the program difficult to manage and understand
Helps in creating user defined libraries
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Functions provide _________ to problem solving
Divide and conquer approach
Modular approach
Both 1 and 2
None of the above
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Functions can be categorized into ____ types.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predefined functions that are already available in Python are known as
Modules
User defined functions
Scripts
Built-in functions
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these in not a built in function?
int()
power()
len()
type()
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
a=list(range(2,10,2)) will create a as ______ and produce the output as ______ if a is used in print
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following applies to a user defined function ?
Parameters are optional in a function definition
A : is used to mark the end of a function header
return statement is not optional
Function naming follows the rules of naming identifiers
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
22 questions
Coding II Midterm Prep

Quiz
•
11th - 12th Grade
20 questions
Define Function

Quiz
•
12th Grade
16 questions
Introduction to Programming (Ch2)

Quiz
•
9th - 12th Grade
19 questions
OCR GCSE Computer Science Subroutines

Quiz
•
12th Grade
15 questions
7.2 Parameters & Return Investigate

Quiz
•
9th - 12th Grade
16 questions
AP CSP Unit 3 Ch 1 Vocab

Quiz
•
9th - 12th Grade
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade