Computer class 12th

Computer Science Class 12 Chapter 13 Functions In C Test Paper

Q.1: Tick the correct Option.

1. Global variables are created in:

(a) RAM✅

(b) ROM

(c) Hard Disk

(d) Register

2. Formal arguments are also called _arguments:

(a) Actual

(b) Original

(c) Dummy✅

(d) Referenced

3. A function that does not return thing has return type:

(a) Int

(b) Float

(c) Void✅

(d) None

4. Which type of functions are written according to exact need of programmer:

(a) User-defined✅

(b) Built-in

(c) Library

(d) All

5. How many arguments can be passed to function?

(a) 2

(b) 3

(c) 4

(d) Many✅

Q.2: Give answer to any eight short questions of the following.

1. Why function is used in a program?

2. Define function prototype.

3. Distinguish between formal parameter and actual parameter.

4. What is scope of global variable?

5. Define local variable.

6. Define global variable.

7. Tell scope of local variable.

8. Write three advantages of function.

9. What is return statement? Give its syntax.

Q.3: Give answer to any two questions of the following.

 (a) What is function? Briefly describe the process of writing a function in C-language.

(b) What is function prototype and function header?

Related Articles

Back to top button
error: Content is protected !!
Enable Notifications OK No thanks