Test Chapter # 5

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

GOVT.

OF PUNJAB
Punjab Daanish Schools &Centers of Excellence Authority

DAANISHSCHOOL (BOYS) FAZILPUR

Test 5thChapter
Subject: COMPUTER SCIENCE ` Class: 10th

Max Marks: Time Allowed:

Name: Date:

DBR: Section:

Objective
Note: You have four choices for each objective type question as A. B, C and D. The choice which you think is correct; fill that
circle infront of that question number. Use Marker or pen to fill the circle cutting or filling two or more circles will result
in zero mark in that question.
Total Marks: 10
1. A file can be organized in the following ways.
(A) One way (B)Two ways (C)Three ways (D) Four ways

2. To read information from a file, it must be opened for:


(A) Input (B) Output (C) Both A & B (D)None of them
3. LEFT$ (‘Pakistan’, 3) = _______________.
(A) ‘Pak’ (B) ‘PAK’ (C) ‘Pa’ (D) ‘kis’

4. The output of SGN (-4) is:


(A) ‘-‘ sign (B) ‘+’ Sign (C)0 (D) None of them

5. RIGHT$ (x$, n) will


(A) Leave ‘n’ spaces at the right of string x$
(B) Leave ‘n’ spaces at the left of string x$
(C)Select‘n’ Characters from the right of side
(D)Select ‘n’ Spaces from the right of side

6. TAN (x)=
(A) SIN (x)/COT(x) (B)COT(x) (C)COS (x)/SIN(x) (D)SIN (x)/COS(x)
7. Instructions that are written once in the main program or independently and can be called more than one time in
the main program is called.
(A) Control Statement (B) Loop (C) Subprogram (D) None of them

8. The outer of a function INT (-5.7).


(A) -5 (B) -4 (C) -6 (D) 5

9. A file is activated with one of the following statement before its use:
(A) WRITE (B) READ (C) PRINT (D) none of them

10. The _________ function is used to convert ASCII codes to its character equivalent.
(A) CHAR$ (B)CHR() (C)CHAR (D)CHR$()

2. Attempt any five Parts: [5x3=15]

1. What is difference between user-defined function and built-in-functions?


2. Write a program to get full name of any person and return the number of characters in his first name.
3. Describe the use of GOSUB…RETURN Statement.
4. Describe the way of opening, closing, reading and writing to a sequential file.
5. Write down the purpose of the following functions:

i. ABS() ii INT()
iii. SQR() iv SIN ()
v. TAB()

You might also like