You are on page 1of 2

Excel in your studies

Excel in your career

EXCEL ACADEMY Name :--------------Class: 10th Subject: Computer Science Syllabus: Ch#05 Dated: 10/01/13 Total marks: 45 Total Time: 40min. Signature:---------_____________________________________________________________________________ OBJECTIVE PART(101=10) (i) A subroutine itself is a _______________ Program. (a) Single (b) Double (c) Small (d) Greator (ii) A GOSUB is used to invoke a _______________ (a) String (b) File handling (c)Random (d) Subroutine (iii) GOSUB statement must be ended with? (a) Record (b) Return (c) DEF FN (d) END (iv) LEFT $ (Pakistan,3)=___________ (a) PaK (b) PAK (c) Pa (d) Kis (v) The ______ function is used to convert ASCII codes to its character equivelent. (a) CHR $ () (b) CHR () (c) CHAR (d) CHR $() (vi) The output of SIN(-4) is: (a) ___Sign (b) + Sign (c) 0 (d) None of them (vii) How many techniques to organize files? (a) 1 (b) 2 (c) 3 (d) 4 (viii) Which function gives an integer value by rounding OFF the fractional part? (a) Return (b) FIX (c) INT (d) ABS (ix) _____ are easy to design and debug and modify (a) Records (b) File handling (c) Subroutines (d) Return (x) The _________ used for using subroutines are GOSUB and Return. (a) Keywords (b) Symbol (c) Sign (d) Commands

Good LUCK !

Q1. (i) (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix) (x)

SHORT QUESTIONS (102=20) Write a program to get full name of any person and return the number of characters in his first name. Write a program that print ASCII characters from 1 to 255. Write a program to calculate and print following formula by using user-defined function. Combination =
( )

What is the purpose of LEN ( ) function? What is the purpose of GOSUB/RETURN statements? What are the data fields? What is the use of Buffer? What is the use of APPEND Mode? What is the use of EOF ( ) function? What is the use of GET statement?

Q2. Long Questions (15 Marks) a) Differentiate between Sequential File and Random File? b) Differentiate between Function and Subroutine? c) What is meant by user defined functions? Explain them with examples.

Good LUCK !

You might also like