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
5 questions
Excel Masterclass Part 3

Quiz
•
Professional Development
15 questions
Nodejs - Testing

Quiz
•
Professional Development
11 questions
interface and abstract class

Quiz
•
Professional Development
6 questions
CRITICAL VERSUS CREATIVE THINKING SKILLS

Quiz
•
Professional Development
10 questions
Functions

Quiz
•
Professional Development
15 questions
Funciones en programación C

Quiz
•
Professional Development
13 questions
CCBC Chapter 17 Recap

Quiz
•
Professional Development
10 questions
01. Digital Marketing - Edspert

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade