12th Class Class Computer Mcqs Chapter No 13 | 2nd Year Computer Mcqs Chapter Wise Pdf

Print/Downlaod pdf

Chapter No 13

Functions

1. Functions prototype for built-in functions are specified in choose which one is correct: 

  1. source files
  2. header files
  3. object files
  4. image files

2. Global variables are created in

  1. RAM
  2. ROM
  3. Hard Disk
  4. cache

3. Which of the following is true about a function call choose which one is correct? 

  1. Stops the execution of the program. 
  2. Transfers control to the called function.
  3. Transfers control to the main function. 
  4. Resumes the execution of the program. 

4. The predefined functions that are part of C-language are called choose which one is correct:

  1. user-defined
  2. subprograms 
  3. subroutines
  4. built-in functions

5. The functions that are defined by programmer are called choose which one is correct:

  1. user-defined
  2. subprograms
  3. subroutines
  4. built-in functions 

6. Another name for built-in function is choose which one is correct: 

  1. user-defined function
  2. library function
  3. ready-made function
  4. None 

7. A function is called with the reference of its choose which one is correct:

  1. name
  2. parameter
  3. definition
  4. None 

8. A function choose which one is correct: 

  1. may return more than one values. 
  2. may return only one value. 
  3. cannot return any value.
  4. None of these 

9. The actual values are passed to the function in choose which one is correct:

  1. function declaration
  2. function call 
  3. function definition
  4. All

10. Which of the following looks for the prototype of functions used in a program choose which one is correct:

  1. Linker
  2. loader 
  3. Compiler
  4. parser

11. The name of actual and formal parameters choose which one is correct:

  1. May or may not be same
  2. Must be same 
  3. Must be different
  4. Must be in lowercase 

12. Formal arguments are also called

  1. Actual arguments
  2. Dummy arguments
  3. Original arguments
  4. Referenced arguments

13. The printf() is a choose which one is correct: 

  1. Built-in function
  2. User defined function 
  3. Local function
  4.  keyword 

14. The actual body of the function is defined in choose which one is correct: 

  1. function declaration
  2. function call 
  3. function definition
  4. None 

15. The last statement of the body of the function is choose which one is correct: 

  1. break;
  2. continue; 
  3. return
  4. shift

16. A built-in function choose which one is correct: 

  1. Can not be redefined
  2. Can be redefined
  3.  Can not return a value
  4. Should be redefined 

17. In a C program two functions can have choose which one is correct: 

  1. Same name
  2. Same parameters
  3. Same name and same parameters
  4. Same name but different parameters

  •  

18. The name of actual and formal parameters choose which one is correct:

  1. may or may not be same
  2. must be same
  3. must be different
  4. must be in lowercase

19. In C-language, subprograms are referred to as choose which one is correct:

  1. Methods
  2. Procedure 
  3. functions
  4. modules 

20. The predefined functions that are part of the programming language and can be  used for different purposes are called choose which one is correct:

  1. Library functions
  2. Built-in functions 
  3. user-defined functions
  4. Both a & b

21. The parameters specified in the function header are called choose which one is correct:

  1. formal parameters
  2. actual parameters
  3. default parameters
  4. command line parameters

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

  1. Condition
  2. Module 
  3. Program
  4. Function

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

  1. Structured Programming
  2. Un structured Programming 
  3. Object Oriented Programming
  4. Modular Programming

24. Built in functions make our task ____________. 

  1. Complex
  2. Lengthy 
  3. Simple
  4. Technical

25. The parameters passed to a function in the function call are called choose which one is correct:

  1. formal parameters
  2. actual parameters
  3. default parameters
  4. command line parameters

26. Which of the following is the advantage of function choose which one is correct? 

  1. Easy to write program
  2. Eliminate duplicate code
  3. Re-usability
  4. All of these

27. Function definition consists of choose which one is correct: 

  1. function header
  2. Function body
  3. Both a & b
  4. None 

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

  1. Function Face
  2. Function Definition 
  3. Function Header
  4. Function Name 

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

  1. Area
  2. Scope
  3. Function
  4. Use

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

  1. Need to declare again
  2. Accessible to only a limited set of instructions 
  3. Accessible
  4. Destroyed

31. Function declaration consists of choose which one is correct: 

  1. function name 
  2. Function return type 
  3. number and types of parameters 
  4. All

32. What is true about a function prototype choose which one is correct? 

  1. It is also referred to as function declaration
  2. It is terminated with a semicolon (;)
  3. It is a single statement.
  4. All of these

33. A function that does not return anything has return type choose which one is correct: 

  1. nothing
  2. float
  3. void
  4. null 

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

  1. General Variables
  2. Variables 
  3. Global variables
  4. Global Data Items

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

  1. char
  2. double 
  3. float
  4. int

36. The function declaration statement int abc (void); indicates that choose which one is correct:

  1. Return data type of function is void. 
  2. return data type of function is int. 
  3. function take no argument. 
  4. function takes one argument of int type.
  5. Both (b) and (c)

37. The variables declared inside any function are known as choose which one is correct:

  1. global variable
  2. private variable
  3. external variable
  4. local variable 

38. Which of the following is a valid function call (assuming the function exists) choose which one is correct?

  1. funct;
  2. funct x,y; 
  3. funct();
  4. int funct();

39. Which of the following can return a value choose which one is correct? 

  1. Function
  2. Procedure 
  3. Both a and b
  4. None of Above 

40. Data can be shared between functions using choose which one is correct: 

  1.  local variable
  2.  static variable
  3. global variable
  4. register variable

41. Local variables are also called choose which one is correct:

  1. Automatic
  2. Normal
  3. Global
  4. None