wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Week 3 Tutorial Quiz

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

What is

var = 29 * 24 - 39 / 23 + 94

a)

Statement

b)

Expression

c)

Neither

d)

Both

2.

What is the output from the call strange(3,100)?

a)

3

b)

4

c)

5

d)

Error!

e)

None of the above

3.

What is the output from the call f(1,1)?

a)

4

b)

6

c)

8

d)

Error!

e)

None of the answers

4.

What is the output from the call twice(twice(twice(2)))?

a)

8

b)

16

c)

twice(2) + twice(2)

d)

Error!

e)

None of the answers

5.

What will be printed out from executing f(5) and g(5) ?

a)

f(5) prints 'Here'

g(5) prints nothing

b)

f(5) prints nothing

g(5) prints 'There'

c)

f(5) prints 'Here'

g(5) prints 'There'

d)

f(5) prints 'There'

g(5) prints nothing

e)

None of the answers

6.

What printed out from f(2), f(5), f(15)?

a)

'There', 'Where', 'Here'

b)

'Here', 'There', 'Where'

c)

'Here', 'There', 'There'

d)

'Here', 'Where', 'There'

e)

'There', 'Where', 'Where'

7.

What printed out from executing g(2)?

a)

'Here'

b)

'There'

c)

'Where'

d)

'Here' and 'There'

e)

'Here' and 'Where'

8.

What printed out when calling pain()?

a)

True

b)

'True'

c)

False

d)

'False'

e)

'neither True nor False'