wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 9 Computing II

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

Which statement CORRECT for functions

a)

consist 3 types

b)

consist 2 types

c)

consist 1 type

d)

consist 4 types

2.

Which is function below is user defined function?

a)

sqrt()

b)

abs()

c)

sumofnumber()

d)

isdigit()

3.

Which statement is function definition?

a)

A

b)

B

c)

C

d)

D

4.

Tells the compiler about the return type function, number of parameters used by functions and its data types. Which answer is CORRECT?

a)

function main

b)

function declaration

c)

function definition

d)

invoke/ call function

5.

Which statement is CORRECT?                                       int sum(int, int, int);

a)

function definition which return type and pass parameter

b)

function declaration which return type and pass parameter

c)

function declaration does not return type but pass two parameter

d)

function definition does not return type but pass two parameter

6.

Which answer is CORRECT?

a)

both function does not return type function

b)

both function received same parameter

c)

both function return type function and received different parameter

d)

both function is void function

7.

Which one is CORRECT result?

a)

none

b)

12

c)

5

d)

19

8.

Which one is CORRECT result?

a)

The first number is 5, The second number is 4. The first number is 5, The second number is 4

b)

The first number is 4, The second number is 5. The first number is 4, The second number is 5

c)

The first number is 4, The second number is 5. The first number is 5, The second number is 4

d)

The first number is 5, The second number is 4. The first number is 4, The second number is 5

9.

Which one is CORRECT result?

a)

none

b)

15

c)

11

d)

19

10.

Which one is CORRECT result?

a)

2,15

b)

15,2

c)

2,22

d)

22,2

11.

sqrt(), abs(), isdigit() are examples of ______ function in C++

a)

standard library

b)

User defined

c)

cmath

d)

calculus

12.

why user uses Function in programming?

a)

maximise the statement using function to do a same process and any function can call many times

b)

minimise the statement using function to do a same process and any function can call many times

c)

maximise the statement using function to do a same process and any function can call only one time

d)

minimise the statement using function to do a same process and any function can call only one time

13.

standard library function is also called as ______

a)

C++ function

b)

Buit-in Function

c)

function definition

d)

function declaration