NEW
Font size
WorksheetsWeek 3 Tutorial Quiz
Total questions: 8
Worksheet time: 4mins
What is
var = 29 * 24 - 39 / 23 + 94
Statement
Expression
Neither
Both
What is the output from the call strange(3,100)?
3
4
5
Error!
None of the above
What is the output from the call f(1,1)?
4
6
8
Error!
None of the answers
What is the output from the call twice(twice(twice(2)))?
8
16
twice(2) + twice(2)
Error!
None of the answers
What will be printed out from executing f(5) and g(5) ?
f(5) prints 'Here'
g(5) prints nothing
f(5) prints nothing
g(5) prints 'There'
f(5) prints 'Here'
g(5) prints 'There'
f(5) prints 'There'
g(5) prints nothing
None of the answers
What printed out from f(2), f(5), f(15)?
'There', 'Where', 'Here'
'Here', 'There', 'Where'
'Here', 'There', 'There'
'Here', 'Where', 'There'
'There', 'Where', 'Where'
What printed out from executing g(2)?
'Here'
'There'
'Where'
'Here' and 'There'
'Here' and 'Where'
What printed out when calling pain()?
True
'True'
False
'False'
'neither True nor False'
