Computer Science 12th Chapter 13 - Functions in C Questions Bank

Computer Science 12th Chapter 13 - Functions in C Questions Bank
Computer Science 12th Chapter 13 - Functions in C Questions Bank

Computer Science 2nd Year Chapter 13 - Functions in C Solved MCQs, Important Short Questions and Long Questions Bank

MCQs

Please select the right answer.

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






2. A built-in function : 





3. A function : 





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





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





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





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





8. Another name for built-in function is : 





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






10. Built in functions make our task ____________. 





11. Data can be shared between functions using : 





12. Formal arguments are also called





13. Function declaration consists of:






14. Function definition consists of : 





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





16. Global variables are created in:





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





18. In a C program two functions can have : 






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





20. Local variables are also called:





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





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





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





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






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





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





27. The name of actual and formal parameters:





28. The parameters in function declaration are called:





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





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





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






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






33. The printf() is a : 





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






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





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






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





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






39. What is true about a function prototype : 






40. Which of the following can return a value : 





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





42. Which of the following is incorrect?






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






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





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





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






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





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






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






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?

Post a Comment (0)
Previous Post Next Post