2nd Year Computer Chapter 13 Notes

Important full 2nd Year Computer Chapter 13 Notes written by Professor Mr. Tayyab Shahzad. These notes are very helpful in the preparation of 2nd year computer chapter 13 important questions of 2nd year Computer Science for the students of the intermediate and these are according to the paper patterns of all Punjab boards.

Summary and Contents:
Topics which are discussed in the notes are given below:
  • Important Multiple Choice Questions of 2nd year computer chapter 13 mcqs of 2nd-year Computer Science.
  • Q 1: Following perform tasks that may need to be repeated many times:
  • (a) Condition (b) Module (c) Program (d) Function 
  • Q 2: In C Language, first line of the function definition is known as:
  • (a) Function header (b) Arguments (c) Function body (d) Parameters
  • Q 3: In the whole logic of program is contained in main function, it is called: (a) Structured programming (b) Object-oriented programming (c) Un-structures programming (d) Modular programming
  • Q 4: Which of the following is the advantage of function? (a) Easy to write program (b) Reusability (c) Eliminate duplicate (d) All of these
  • Important 2nd year computer chapter 13 mcqs with answers for Intermediate part-II students.
  • Q 5: Another name for predefined functions is: (a) User defined (b) Custom built (c) Built in (d) Modal 
  • Q 6: Built-in functions make our task: (a) Complex (b) Length (c) Simple and easy (d) Technical
  • Q 7: Another name of built in function is: (a) Library function (b) Arithmetic function (c) User defined function (d) All of these
  • Q 8: The predefined functions that are part of C language are called: (a) User defined (b) Subprograms (c) Subroutines (d) Built- in functions
  • Q 9: A type of function is written by the programmer is known as:
  • (a) User-defined (b) Subprograms (c) Subroutines (d) Built-in-function
  • Q10: A built - in function: (a) Cannot be redefined (b) Cannot return a value (c) Can be redefined (d) Should be redefined
  • Q11: The parameters specified in the function header are called: (a) Formal parameters (b) Default parameters (c) Actual parameters (d) Original parameters
  • Important 2nd year computer chapter 13 important mcqs for Intermediate part-II students.
  • Q12: A block of code is surrounded by: (a) ( ) (b) [ ] (c) { } (d) " " 
  • Q13: A function that does not return any thing has return type:
  • (a) Nothing (b) Float (c) Void (d) Null 
  • Q14: The actual body of the function is defined in: (a) Function declaration (b) Function definition (c) Function call (d) Function header
  • Q15: Following term of a function describes the number and type of its arguments and the return type of the function: (a) Size (b) Name (c) Header (d) Type
  • Important 2nd year computer chapter 13 short questions for Intermediate part-II students.
  • What is modular programming?: Ans: A programming technique in which a program consists of many independent parts is called modular programming. These parts are called modules. These parts are also called function. Each module can perform different tasks. The development speed of a program increases as different programmers can write different modules of a program. Different modules are combined to make a complete program.
  • Important 2nd year computer chapter 13 important long questions for Intermediate part-II students.
  • What is a function?
  • Why functions are used?
  • What are built-in functions? 
  • What are user-defined functions?
  • What are function prototypes?
  • What is function definition?
  • What is a function header?
  • What is the function calling?
  • What is a return statement?
  • Important 2nd year computer chapter 13 long questions for Intermediate part-II students.
  • What are the parameters?: Ans: Parameters are also called arguments. These are the values that are provided toa function when it is called. when function is called parameters are written after function name in parenthesis. These parameters can be variables or constants. More than one parameter is separated by comma.
  • What is a local variable?
  • What is a global variable?
  • What is meant by the lifetime of a variable? 
  • What is meant by the scope of a variable?
  • Important 2nd year computer chapter 13 long questions pdf download for Intermediate part-II students.
  • What is the scope of the global variable?: Ans: Global variables can be accessed in all modules of program. They are accessible in main() function as well as all other user defined functions.
  • What is the lifetime of a global variable? 

Loading your document...