GOVT.
OF PUNJAB
Punjab Daanish Schools &Centers of Excellence Authority
DAANISHSCHOOL (BOYS) FAZILPUR
Test 3rdChapter
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. FOR…NEXT is used to implement.
(A) Iteration (B) Selection (C)Sequence (D) All of the above
2. Which of the following is not a logical operator?
(A) AND (B) OR (C) NEITHER (D)NOT
3. If the integer value of the numeric expression following the keyword ON, in ON…GOTO statement, is greater
than 255, which type of error occurs?
(A) Syntax error (B) Logical Error (C) Runtime error (D) It’s not an error
4. Which of the following cannot be used to exit from an error handling routine:
(A) RESUME (B) RESUME NEXT (C)END (D) STOP
5. Which one is a multiple branching statement?
(A) IF…ELSE (B) GOTO (C)ON….GOTO (D) ON ERROR GOTO line_number
6. IN GWBASIC, ________ command is used to clear the screen.
(A) CLS (B) DLS (C) RLS (D) Screen clear
7. _______ Statement is used to accept data from the user during program execution.
(A) LOAD (B) PRINT (C) INPUT (D) READ-DATA
8. _____ is a named space in the computer’s memory whose value can be changed during the execution of a
program.
(A) Constant (B) Program (C) Data (D) Variable
9. In BASIC programming language which character is used as a last character with string variable?
(A) $ (B)& (C) % (D) ?
10. The _________ statement is used to display message or output to the screen.
(A) LOAD (B) SAVE (C) PRINT (D) RUN
2. Attempt any five Parts: [5x3=15]
1. Define control structure. How many control structures are available in BASIC, Discuss briefly?
2. Write a program to find larger of two numbers. The program should get the numbers from the user.
3. Write a program to print the sum of sequence of first five even numbers using FOR…NEXT loop.
4. Write a program to print first ten odd numbers using WHILE…WEND loop.
5. Write a program to print the table of a given number.The program should get the number from the user.