Python Functions

Quiz
•
Professional Development
•
Professional Development
•
Hard
btechsmartclass .com
Used 1K+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
__________ keyword is used for creating a function in Python.
define
fun
def
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
What is the output of the given code?
10 20 10
10
20
10 20
3.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
What is the output of the given code?
10 20 10 20
10 20 10
10 20 20
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
Python supports variable number of parameters.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
Function header in Python contains _________________.
function name
list of parameters
return type
all the above
Only A & B
6.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
The default return value of any function in Python is _______________.
null
0
None
Garbage value
7.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
__________ is the built-in function to know the type of a variable or function.
id()
type()
data_type()
none of the above
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Conflict resolution

Quiz
•
Professional Development
15 questions
Campaign Structure

Quiz
•
Professional Development
12 questions
Critical and Creative Thinking Skills Self Check Assessment

Quiz
•
Professional Development
15 questions
Physical, Material, and Spiritual Self

Quiz
•
Professional Development
10 questions
SFDC Apex Developer Training

Quiz
•
Professional Development
10 questions
DAY 1 - C& C++ Assessment _10th June 24

Quiz
•
Professional Development
12 questions

Quiz
•
Professional Development
15 questions
C# Basics and Operations

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade