2nd Year Computer Science Chapter 13 Functions in C Notes MCQs Bank

computer 12th notes chapter No 13

1. The actual values are passed to the function in :

 
 
 
 

2. A built-in function : 

 
 
 
 

3. As soon as the control moves outside of their scope, local variable are 

 
 
 
 

4. The region of a program in which a variable is accessible, refers to its 

 
 
 
 

5. A function that does not return anything has return type : 

 
 
 
 

6. Global variables are created in:

 
 
 
 

7. The parameters in function declaration are called:

 
 
 
 

8. The variables that are declared outside all blocks is called 

 
 
 
 

9. The first line of function definition is called _________. 

 
 
 
 

10. A function : 

 
 
 
 

11. The predefined functions that are part of C-language are called :

 
 
 
 

12. The variables declared inside any function are known as :

 
 
 
 

13. The predefined functions that are part of the programming language and can be  used for different purposes are called :

 
 
 
 

14. Functions prototype for built-in functions are specified in : 

 
 
 
 

15. The last statement of the body of the function is : 

 
 
 
 

16. Local variables are also called:

 
 
 
 

17. The functions that are defined by programmer are called :

 
 
 
 

18. In a C program two functions can have : 

 
 
 
 

19. What is true about a function prototype : 

 
 
 
 

20. The name of actual and formal parameters:

 
 
 
 

21. A variable declared inside a function is known as:

 
 
 
 

22. Which statement is used by a function use return a value?

 
 
 
 

23. Another name for built-in function is : 

 
 
 
 

24. In C-language, subprograms are referred to as :

 
 
 
 

25. The parameters passed to a function in the function call are called :

 
 
 
 

26. Which of the following is the advantage of function : 

 
 
 
 

27. Function declaration consists of:

 
 
 
 

28. Which of the following is incorrect?

 
 
 
 

29. A type of function that is available as part of language is known as:

 
 
 
 

30. The process of sending an argument to a function is called:

 
 
 
 

31. Data can be shared between functions using : 

 
 
 
 

32. Which of the following is TRUE for return statement in a function?

 
 
 
 

33. Which of the following is a valid function call (assuming the function exists) :

 
 
 
 

34. The printf() is a : 

 
 
 
 

35. If the whole logic of program is contained in main function, it is called  ___ 

 
 
 
 

36. Function definition consists of : 

 
 
 
 

37. Built in functions make our task ____________. 

 
 
 
 

38. Which of the following is type of function available in C language?

 
 
 
 

39. The function declaration statement int abc (void); indicates that :

 
 
 
 

40. Which of the following is true about a function call?

 
 
 
 

41. Which of the following looks for the prototype of functions used in a program :

 
 
 
 

42. Formal arguments are also called

 
 
 
 

43. The parameters specified in the function header are called :

 
 
 
 

44. A function is called with the reference of its :

 
 
 
 

45. __________ perform tasks that may need to be repeated many times. 

 
 
 
 

46. What is the return type of the function with prototype : “int func(char x, float v,  double t );” 

 
 
 
 

47. Which of the following can return a value : 

 
 
 
 

48. The actual body of the function is defined in : 

 
 
 
 

49. Which of the following steps takes place when function is called?

 
 
 
 

Short Questions

1. Compare local and global variable.
2. Define function body.
3. Define function header.
4. Define local variable.
5. Differentiate between Built-in functions and User-defined functions:
6. Differentiate between function definition and function declaration.
7. Differentiate between unstructured and structured programming?
8. Distinguish between formal parameters and actual parameters.
9. Do you know the variables that can be used in all functions?
10. How does a function make programming easier?
11. How long the global variables exist in the memory?
12. List any three benefits of using functions.
13. List different types of functions in C.
14. What are built-in functions?
15. What are global variables and their scope?
16. What are local variables and their scope?
17. What are parameters?
18. What are the actual parameters OR arguments?
19. What are the formal parameters?
20. What are user defined functions?
21. What do you know about user-defined functions?
22. What is a function prototype?
23. What is a function?
24. What is a local variable?
25. What is function calling?
26. What is function declaration or function prototype?
27. What is function definition?
28. What is function header?
29. What is Function OR Module OR Subprogram?
30. What is function prototypes?
31. What is function?
32. What is global variable?
33. What is life time of global variable?
34. What is meant by “Function without arguments”?
35. What is meant by calling a function?
36. What is meant by life time of a variable?
37. What is meant by lifetime of the variable?
38. What is meant by scope of a variable?
39. What is meant by the scope of local variable?
40. What is meant by return_type and parameter_list in function header?
41. What is return statement?
42. What is scope of global variable?
43. What is the function header?
44. What is the lifetime of local variable?
45. What is the scope of variable?
46. What is the use of formal parameters?
47. Which types of functions is part of language?
48. Why functions are used?
49. Why is function used in a program?
50. Write some benefits of functions OR structured programming language?

Long Questions

1. What are static variables?
2. How is data provided to the function?
3. What is a Function? Also write down its advantages.
4. What are different types of Functions? Explain with the help of examples.
5. How to create and use a user defined function?
6. What are local and global variables?

Leave a Reply

Your email address will not be published. Required fields are marked *