Functions in Python

Functions in Python

12th Grade - University

20 Qs

quiz-placeholder

Similar activities

Python Functions

Python Functions

12th Grade

23 Qs

User Defined Functions

User Defined Functions

12th Grade

20 Qs

CP M.7 Functions Assessment Review

CP M.7 Functions Assessment Review

9th - 12th Grade

20 Qs

Python Functions and Error Handling

Python Functions and Error Handling

10th Grade - University

20 Qs

Understanding Python Functions

Understanding Python Functions

University

20 Qs

Defined Functions

Defined Functions

12th Grade

20 Qs

Day 9 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 9 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

Java Method

Java Method

University

15 Qs

Functions in Python

Functions in Python

Assessment

Quiz

Computers

12th Grade - University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers