wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Functions Basic

Total questions: 20

Worksheet time: 14mins

Name
Class
Date
1.

What will be output of function?

(a)  

2.

What will be output of function?

(a)  

3.

What will be output of function?

(a)  

4.

What will be the output of this function?

a)

Hello World

b)

Hello World

Hello World

c)

log_message()

d)

print

5.

What will be the output of this function?

a)

Empty

b)

Hello World

c)

1

d)

2

6.

What will be the output of this function?

a)

Empty

b)

Hello World

c)

1

d)

2

7.

What will be the output of this function?

a)

Empty

b)

10

c)

1

d)

2

8.

What will be the output of this function?

a)

Empty

b)

5

c)

1

d)

2

9.

What will be the output of this function?

a)

I am not printed!

b)

5

c)

1

d)

2

10.

What will be the output of this function?

a)

True

b)

5

c)

1

d)

2

11.

What will be the output of the function?

(a)  

12.

What will be the output of the function?

(a)  

13.

What will be the output of the function?

a)

text

b)

Hello World

c)

return

d)

func

14.

What is the output of the code?

(a)  

15.

What will the function print?

a)

Good 😇

b)

Evil 😈

c)

Good 😇

Evil 😈

d)

Evil 😈

Good 😇

16.

What will be the output of the function?

(a)  

17.

What will be the output?

a)

4

25

121

b)

2

5

11

c)

x

d)

return

18.

What will be the output?

a)

2

b)

20

c)

40

d)

x

19.

What will be the output?

(a)  

20.

What will be the output?

a)

40

b)

20

c)

2

d)

10