Test Chapter # 2

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 2nd Chapter
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. GW-Basic can operate in ___________________?
(A) One mode (B) Two modes (C) Three modes (D) Several modes

2. When a floating-point value is converted to an integer, the fractional part.


(A) Truncated (B) Rounded off
(C) May be truncated or rounded off (D) Conversion is impossible

3. Which of the following statement temporarily stops the execution of a program?


(A) BREAK (B) END (C) PAUSE (D) STOP

4. Which of the following command continuous the program whose execution was terminated temporarily?
(A) CONTINUE (B) CONT (C) RESTART (D) START

5. Which of the following operators has the highest precedence?


(A) ^ (B) * (C) + (D) =

6. The maximum length of a variable name in GW-Basic is.


(A) 31 (B) 32 (C) 40 (D) 45
7. Which of the following is a short key to rum a program in GW-Basic?
(A) F4 (B) F3 (C) F2 (D) F1
8. Which of the following is a type declaration character for integer variables?
(A) ! (B) % (C) # (D) $
9. A variable name must start with a(n).
(A) Alphabet (B) Underscore (C) Digit (D) Alphabet & underscore

10. If two or more statements are written on a line, they must be separated by a.
(A) Colon (B) Semi colon (C) comma (D) Hypen

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

1. In how many modes, GW-BASIC can operate? Discuss briefly .


2. Write a program to read ten values specified in DATA statement, and display the sum of these values
on the screen.
3. Describe rules of naming variable in GW-Basic.
4. Briefly describe the uses of arithmetic, logical, and relational operators.
5. What are type declaration characters? Explain their uses with examples.

You might also like