Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C/C++ C Function

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Choose correct statement about Functions in C Language

a)

A Function is a group of c statements which can be reused any number of times

b)

Every Function has a return type

c)

Every Function may no may not return a value

d)

All the above

2.

Choose a correct statement about C Function?

a)

"main" is the name of default must and should Function

b)

main() is same as int main()

c)

By default, return 0 is added as the last statement of a function without specific return type

d)

All the above

3.

A function which calls itself is called a ___ function.

a)

Self Function

b)

Auto Function

c)

Recursive Function

d)

Static Function

4.

How many times the program will print "Algbly"?

a)

Infinite times

b)

32767 times

c)

65535 times

d)

Till stack overflows

5.

Determine Output

a)

PISTA CACHEW

b)

CASHEW PISTA

c)

PISTA CASHEW with compiler warning

d)

Compiler error

6.

What are the types of functions in C Language?

a)

Library Functions

b)

User Defined Functions

c)

Both Library and User Defined

d)

None of the above

7.

What is the limit for number of functions in a C Program?

a)

16

b)

31

c)

32

d)

No Limit

8.

Every C Program should contain which function?

a)

printf()

b)

show()

c)

scanf()

d)

main()

9.

What is the minimum number of functions to be present in a C Program?

a)

1

b)

2

c)

3

d)

4

10.

What is the maximum number of statements that can present in a C function?

a)

64

b)

128

c)

256

d)

None of the above

11.

What characters are allowed in a C function name identifier?

a)

Alphabets, Numbers, %, $, _

b)

Alphabets, Numbers, Underscore ( _ )

c)

Alphabets, Numbers, dollar $

d)

Alphabets, Numbers, %

12.

Choose a non Library C function below

a)

printf()

b)

scanf()

c)

fprintf()

d)

printf4()