You are on page 1of 6

QBASIC Worksheet Term 2 Level 7

1. A repeated execution of statements for a fixed number of times is known


as________
a. Loop
b. Repeat
c. Again
d. Execution

2. The number of times the for loop gets executed is based on the difference
between ______________ value.
a. n value
b. start value and end value
c. maximum value
d. x and y value

3. To execute a group of statements for a specific number of times ___________


loop is used.
a. For
b. While
c. Do while
d. Loop

4. ___________ statement is used to play sound.


a. Beep
b. Sound
c. Voice
d. Music

5. ____________________ types of Do loops are available.


a. 2
b. 1
c. 3
d. 4

6. Some loop requires a certain set of conditions.


a. True
b. False
7. Musical notes can be played using the beep statement.
a. True
b. False
QBASIC Worksheet Term 2 Level 7

8. QBasic is used to create loops.


a. True
b. False

9. The computer screen that you see consists of hundreds of picture elements

known as pixels

10. The Screen command is used to set the screen attributes

11. The color command is used to change the color of the screen and the text

12. Graphics mode is used to display both graphic and text

13. Resolution of the screen or the image displayed is measured in terms of number

of pixels horizontally and vertically on a screen

14. What does the "Q" in QBasic stand for?


a. Quote
b. Quick
c. Quite
d. Quit

15. What command do you use to start the program


a. Run
b. Play
c. MSC
d. CLS

16. Which of these do you use to finish a program?


a. End
b. Stop
c. Finish
d. Quit
QBASIC Worksheet Term 2 Level 7

17. Set of rules and formats in QBasic is called


a. Strings
b. Syntax
c. Grammar
d. All of the above.

18. Name$ is known as


a. String
b. Constant
c. Grammar
d. All the above

19. Text that you wish to appear in the screen while you program runs must appear
inside of
a. Slashes
b. Quotes
c. Brackets
d. Braces

20. A computer program is


a. A pairs of computer system
b. A set of instructions to tell a computer how to perform a particular task
c. An exercise of the brain
d. None of the above

21. CLS statement is


a. To clear the screen
b. To enter data
c. To instruct the user
d. All the above
QBASIC Worksheet Term 2 Level 7

22. The if…. Then statement is


a. Is transfer of control
b. To redirect or eliminate
c. Is a conditional statement
d. None of the above

23. What is the acronym for BASIC?

A. Beginner Action- Purpose Symbolic Instruction Code


B. Basic Algorithm Sequence Instruction of Computer
C. Beginner's All - Purpose Symbolic Instruction Code
D. None of the above

24. In the given qbasic statement ,Which is a variable?


A$=”Saudi Arabia”

a. A
b. A$
c. Saudi Arabia
d. All the above

25. …………………………………………………..is the process of repeating a series of


programming statements
a. Conditional statement
b. Let statement
c. Looping
d. Input statement

26. The operators +,-,*,/, and ^ are called _____ operators


a. Mathematical
b. Arithmetic
c. Logical
d. inputs
QBASIC Worksheet Term 2 Level 7

27. What is the correct way of displaying something on the screen?


a. Hello world
b. “hello world”
c. &Helloworld
d. Hello”world”

28. Which command allows you to enter values while executing the program ?
a. Input
b. Let
c. Print
d. Run

29. String variables end with a ________________ sign


a. &
b. $
c. “
d. #

30. What is an algorithm


a. A code or program
b. An infinite steps to accomplish a specific task
c. A set of programs

31. The _____________ key is used to execute a Qbasic program


a. F11
b. F4
c. F5
d. F10
32. Qbasic is a
a. Low level language
b. High level Language
c. Compiler
d. Interpreter
QBASIC Worksheet Term 2 Level 7

1. Define Pixel and how it relates to the screen resolution?


High resolution or more pixels means a good quality or a clear picture. As the
resolution decreases ,the clarity is also reduced.

2. What is a loop?
The process of repetition is called loop in programming

3. Why do we use for …… next loop?


The for….. Next structure is used when you want to perform a loop for a specific
number of times.

4. What are the different loops?


For …… Next
Do………. While
Do …………Until
While………. Wend

You might also like