Functions in Python

Functions in Python

12th Grade - University

20 Qs

quiz-placeholder

Similar activities

Functions With Parameters and Returns

Functions With Parameters and Returns

9th - 12th Grade

20 Qs

PYTHON PROGRAMMING Q4 FUNCTIONS

PYTHON PROGRAMMING Q4 FUNCTIONS

University

20 Qs

Introduction to Programming Review with Karel

Introduction to Programming Review with Karel

9th - 12th Grade

15 Qs

HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

Functions

Functions

9th - 12th Grade

20 Qs

Java Methods

Java Methods

University

15 Qs

Python 2.

Python 2.

9th - 12th Grade

20 Qs

PYTHON FUNCTION

PYTHON FUNCTION

University

20 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?