WorksheetsLesson 26 – Types of functions
Total questions: 10
Worksheet time: 5mins
Which of the following is correct ?
the function of type 3 will never return any value.
sum() function returns a string value.
function will allocated memory only when it is called.
all are correct
What is the output of the following code?
24
4
44
2
Which of the following is correct ?
every function can be called in from any function.
function can be called outside of function.
none of (a) and (b) is correct.
both (a) and (b) is correct.
which keyword is used to return any value from the function ?
send
return
goto
Return
which statement is correct about the given program ?
it will print “notchup” on the screen.
it will raise an error.
nothing will be printed.
none
What will be the output of following code ?
4
{2,1,3,5}
[1,2,3,5]
none
Which keyword is used to define a function?
for
fun
def
no keyword is required
with which operator ‘in’ keyword is used ?
identity
membership
arithmetic
none of these
which function will not return any value ?
len()
sum()
count()
startswith()
which function is used to display the content into screen?
printf()
print()
printtext()
none
