wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Function Quiz 3

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Define Function call.

a)

statement causes a function to execute

b)

statements that make up a function

c)

variables containing values passed to the function

d)

statements that perform the function’s task, enclosed in {}

2.

A program that tell the compiler the name of the function, the type of the function and the function parameter

a)

Void Function

b)

stdio file

c)

Function Prototype

d)

None of them

3.

A variable that is declared inside a block is called

a)

Global variable

b)

Inside variable

c)

None of them

d)

Local variable

4.

int &x; this syntax is used when

a)

x is pass by value

b)

x is pass by reference

c)

x is declare outside the function

d)

none of them

5.

Which statement is correct about Passing by value parameters

a)

It cannot change the actual parameter value

b)

Parameter is always read-write mode

c)

It can change the actual parameter value

d)

None of them

6.

Boolean expression gives results in form of

a)

String

b)

Integer

c)

Characters

d)

True and False

7.

The other name for external variable in C++ is

a)

Global Variable

b)

Static Variable

c)

Register Variable

d)

Local Variable

8.

There are the following statements that are given which of them are incorrect about default arguments in C++?

a)

The default arguments are used in C++ functions to provide optional arguments.

b)

If we did not pass the value to the function then default values of arguments used inside the function, if argument declared as a default argument.

c)

We can create any argument in the function as a default argument.

d)

Default arguments sometimes reduce the creation of multiple functions using function overloading.

9.

A function that need no return value, is called?

a)

void function

b)

infinite function

c)

finite function

d)

none of them

10.

Where does the execution of the program starts?

a)

user-defined function

b)

main function

c)

void function

d)

else function