Class 10 Computer Chapter 5 Notes
Complete Class 10 Computer Chapter 5 Notes Functions in 10th Class Computer Science English and Urdu Medium. These computerized notes are very helpful in the preparation of Class 10 Computer Chapter 5 Notes for students of the 10th class Computer Science 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 10 class computer chapter 5 mcqs for all students of Punjab Textbook Board.
- Muitiple Choice Questions: Functions could be built-in or: (A) admin defined (B) server defined (C) user defined (D) Both a and c
- The functions which are available in C Standard Library are called: (A) user-defined (B) built-in (C) recursive (D) repetitive
- Important class 10 computer chapter 5 notes pdf for all students of Punjab Textbook Board.
- The values passed to a function are called: (A) bodies (B) return types (C) arrays (D) arguments
- char cd() { return 'a'). In this function "char" is: (A) body (B) return types (C) arrays (D) arguments
- Important class 10 computer chapter 5 exercise solutions for all students of Punjab Textbook Board.
- The advantages of using functions are: (A) readability (B) reusability (C) easy debugging (D) all
- If there are three return statements in the function body ...... of them will be executed: (A) one (B) two (C) three (D) first and last
- Important class 10 computer chapter 5 question answer for all students of Punjab Textbook Board.
- Readability helps to ..... the code. (A) understand (B) modify (C) debug (D) all
- ...... means to transfer the control to another function. (A) calling (B) defining (C) re-writing (D) including
- Define the following. 1) Functions, 2) Built-in functions, 3) Functions , 4) Reusability, 5) Calling a function
- Important class 10 computer chapter 5 programming exercise for all students of Punjab Textbook Board.
- What is the difference between arguments and parameters? Give an example.
- Enlist the parts of a function definition.
- Is it necessary to use compatible data types in function definition and function call? Justify your answer with an example.
- Important class 10 computer chapter 5 exercise for all students of Punjab Textbook Board.
- Describe the advantages of using functions.
- What do you know about the return keyword?
- A function is a block of statements that performs a particular task.
- Important class 10 computer chapter 5 important questions for all students of Punjab Textbook Board.
- The functions which are available in C Standard Library are called built-in functions.
- The functions which are defined by a programmer are called user- defined functions.
- Important class 10 computer chapter 5 short question answer for all students of Punjab Textbook Board.
- Some advantages of using functions are: reusability of code, separation of tasks, reduction in the complexity of problem, and readability of code.
- Function signature describes the name, inputs and output of the function.
- Important class 10 computer chapter 5 pdf solutions for all students of Punjab Textbook Board.
- We can define a function as follows: return_type name (Parameters), { Body of the Function }
- The return type of the function is the data type of the value returned by function.
- The name of the function should be related to its task.
- Important class 10 computer chapter 5 exercise solutions pdf for all students of Punjab Textbook Board.
- Parameters are variables of different data types, that are used to receive the values passed to the function as input.
- Body of the function is the set of statements which are executed in the function to fulfil the specified task.
- Important class 10 computer chapter 5 extra questions for all students of Punjab Textbook Board.
- Calling a function means to transfer the control to that particular function.
- During the function call, the values passed to the function are called arguments.
- We can call a user-defined function from another user defined function, same as we call other functions in main function.
- Important class 10 computer chapter 5 exercise solutions pdf download for all students of Punjab Textbook Board.
- Defining a Function: The function signature does not describe how the function performs the task assigned to it. Function definition does that. A function definition has the following general structure.
- Important class 10 computer chapter 5 exercise solutions urdu medium for all students of Punjab Textbook Board.
- return_type function_name (data_type varī, data_type var2,.., data_type varN)
- { Body of the function }
- Important class 10 computer chapter 5 important long questions for all students of Punjab Textbook Board.
- Body of the function is the set of statements which are executed in the function to perform the specified task. Just after the function's signature, the set of statements enclosed inside {} form the body of the function.
- Important class 10 computer chapter 5 long question answer for all students of Punjab Textbook Board.
- Following example defines a function showPangram() that does not take any input and does not return anything, but displays A quick brown fox jumps over the lazy dog. on computer screen.