Python Function

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Sangita Panchal
Used 154+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the keyword used to define a function.
define
def
function
fu
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
def square(x) _______
print(x*x)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is not true about function?
It breaks the large program into small modules.
It avoids repetition.
It makes code reusable.
It makes the program unorganized.
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statement is used to display the docstring?
print(welcome.__doc__)
print(__doc__)
print(welcome._doc_)
print(docstring)
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the value of Y?
Error
None
Alsan
Hello, Alsan Good Morning!
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which one is incorrect calling function statement?
add(4, c = 10, b = 5)
add(3, 4, c = 45)
add (b = 12, c = 10, 1)
add (5, 6, 7)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
Value inside function: 10
Value outside function: 20
Value inside function: 10
Value outside function: 10
Value inside function: 20
Value outside function: 10
Value inside function: 20
Value outside function: 20
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz 13 - For Loops

Quiz
•
11th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
12 questions
0417 Web Authoring: CSS-Property Listing

Quiz
•
9th - 11th Grade
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
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
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade