Test Chapter # 3
Test Chapter # 3
OF PUNJAB
Punjab Daanish Schools &Centers of Excellence Authority
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
4. Which of the following cannot be used to exit from an error handling routine:
(A) RESUME (B) RESUME NEXT (C)END (D) STOP
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
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.