We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Teacher Name: Muhammad Raees
Name: Total Marks: 75 Class: 2nd year ICS
Chapter No: 13 Paper: computer Time Allowed: 10 Minutes (OBJECTIVE PART) Q No.1: Choose the correct answer. Max Marks:10*2=20 1) print f ( ) is a ? a) built in function b) user defined function c) local function d) keyword 2) Memory is allocated to a local variable at the time of its. a) Declaration b) destruction c) definition d) first reference 3) Local variables are called? a) Normal b) Automatic c) global d) none 4) Global variables are created in. a) ROM b) cache c) RAM d) hard disk 5) Multiple arguments passed to a function are separated by: a) Period b) colon c) comma d) semicolon 6) Gets ( ) function takes ______ parameters. a) 1 b) 2 c) 3 d) 4 7) The first line of user defined function definition is; a) Function argument b) function prototype c) function header d) function calling 8) Function declaration is also known as function------ a) Definition b) Header c) Prototype d) parameters 9) Which statement is used by function to return a value? a) Give b) send c) return d) call 10) The process of sending an argument to a function is called. a) Sending b) Filtering c) Delivering d) passing
Time: 02:10 Hours SUBJECTIVE
Q.2 Write short answers of any six parts of the following. 10*3=30 1) What is function proto type? 2) List the different type of function. 3) What is function call statement? 4) How a function returns value? 5) Differentiate between function definition and function Declaration? 6) Define function body? 7) Define local variable? 8) What is function definition? 9) Why is function used in program? 10) Define user defined function?