Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS Unit 3 Review Functions

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.

What keyword is used to define a function in Python?

a)

def

b)

func

c)

df

d)

fun

2.

True or False? A function MUST have parameters.

a)

True

b)

False

3.

What convention do you use when naming a function?

a)

camelCase

b)

all uppercase letters

c)

lowercase letters and spaces

d)

lowercase letter and underscores

4.

What vocabulary term means to join together without a gap?

a)

immutable

b)

concatenate

c)

string handling

d)

manipulation

5.

Numbers are read as text in which of the following?

a)

integer

b)

boolean

c)

string

d)

float

6.

What will the output be?

greeting= "Hello and welcome!"

print (greeting.index ("w"))

a)

9

b)

10

c)

11

d)

12