wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

EOC Year 5 : QBASIC

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

A computer program is simply

a)
a type of hardware component
b)
a collection of random data
c)
a method for storing files
d)
a set of instructions for a computer to execute
2.

To Run Program in QBasic _________ key used.

a)
F1
b)
F5
c)
F2
d)
F3
3.

Mohammed Feroz wants to add two numbers using QBASIC. Suggest him the operator needed for this purpose.

a)
/
b)
*
c)
+
d)
-
4.

Which extension is added to the file when we save a program in QBasic?

a)
.PRG
b)
.TXT
c)
.BAS
d)
.QB
5.

What is the full form of BASIC

a)
Beginner's All-purpose Systematic Instruction Code
b)
Basic Algorithmic Symbolic Instruction Code
c)
Binary All-purpose Symbolic Instruction Code
d)
Beginner's All-purpose Symbolic Instruction Code
6.

Which of the following is a correct variable name in QBASIC?

a)

2NUMBER

b)

STUDENT-NAME

c)

NAME$

d)

PRINT

7.

What does the $ symbol at the end of a variable name in QBASIC represent?

a)

It is a numeric variable.

b)

It is a text variable.

c)

It is a Boolean variable.

d)

It is a constant.

8.

What is the output of the following QBASIC code?

LET A = 10

PRINT A

a)
20
b)
10
c)
5
d)
15
9.

The program is meant to find the square of the number entered by the user.

What is the missing code to see the answer?

a)
Display result
b)
Calculate total
c)
Show answer
d)
Print answer
10.

Shivai wants to find the area of the rectangle. What would be the missing codes for line number 4?

area =

a)
l * w
b)
l + w
c)

lxw

d)
l / w
11.

The QBASIC Statement for accepting the values from the user:-

a)
INPUT
b)
GET
c)
SET
d)
RECEIVE
12.

Statement in QBASIC to clear the output screen

a)
CLEAR
b)
ERASE
c)
RESET
d)
CLS
13.

Which of these do you use to finish a program?

a)

END

b)

STOP

c)

DEBUG

d)

EXIT

14.

What does PRINT in QBASIC do?

a)
PRINT displays output on the screen in QBASIC.
b)
PRINT formats text for printing on paper in QBASIC.
c)
PRINT calculates mathematical expressions in QBASIC.
d)
PRINT saves data to a file in QBASIC.
15.

What is the main use of the program?

a)
To calculate the difference between two numbers.
b)
To find the product of two numbers.
c)
To add two numbers together.
d)
To display a greeting message.