Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Function -1

Total questions: 12

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following functions is a built-in function in python?

a)

seed()

b)

sqrt()

c)

factorial()

d)

print()

2.

What is the output of the expression:

round(4.576)

a)

4.5

b)

5

c)

4

d)

4.6

3.

The function pow(x,y,z) is evaluated as:

a)

(x**y)**z

b)

(x**y) / z

c)

(x**y) % z

d)

(x**y)*z

4.

What is the output of the function shown below?

import math

abs(math.sqrt(25))

a)

Error

b)

-5

c)

5

d)

5.0

5.

What is the output of the functions shown below? min(max(False,-3,-4), 2,7)

a)

2

b)

False

c)

-3

d)

-4

6.

Which of the following statement is not true?

a)

Function makes program handling easy

b)

Function reduces the line of code

c)

Function makes program updation difficult.

d)

none of the above

7.

Function are of ____________ types.

a)

1

b)

2

c)

3

d)

4

8.

Which one of the following is odd one out.

a)

Built in functions

b)

Modules

c)

Parameter

d)

User defined function

9.

What is the output of the following

Max(-2,-7,-35,-4)

a)

-2

b)

-7

c)

-35

d)

-4

10.

x=[1,2,3,4]

len(x)=?

a)

4

b)

3

c)

2

d)

none

11.

Which of the following functions accepts only integers as arguments?

a)

Min()

b)

Max()

c)

chr()

d)

any()

12.

Which keyword is use for function?

a)

Fun

b)

Define

c)

def

d)

Function