Search Header Logo

Functions in Python

Authored by Trial1 T

Computers

12th Grade - University

Used 27+ times

Functions in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?