wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

QBASIC

Total questions: 32

Worksheet time: 16mins

Name
Class
Date
1.

Identify which out of the following is not a valid QBASIC Statement

a)

END

b)

INPUT

c)

PRINT

d)

SET

2.

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

a)

LET

b)

PRINT

c)

REM

d)

INPUT

3.

Which out of the following is a valid variable to hold the text in QBASIC.

a)

LET

b)

$S

c)

S$

d)

SS

4.

Statement in QBASIC to clear the output screen

a)

CLS

b)

CLEAR

c)

CLEAR SCREEN

d)

CLRSCR

5.

Which of these do you use to finish a program?

a)

QUIT

b)

END

c)

STOP

d)

ENDPRGRM

6.

A data value that does not change during the execution of a program is _____.

a)

Variable

b)

Constant

c)

Character

7.

The statement used to display the output on the screen is _______.

a)

INPUT

b)

LET

c)

PRINT

8.

In PRINT command, the message is closed in ______.

a)

Double Quotes

b)

Semicolons

c)

Single Quotes

9.

QBASIC screen is also called QBASIC Editor.

a)

True

b)

False

10.

QBASIC Programs automatically check syntax.

a)

True

b)

False

11.

F3 key is pressed to execute or run the program to get the result.

a)

True

b)

False

12.

QBASIC works with ---------- and --------- data.

a)

Numeric and non- numeric

b)

Numeric and discrete

c)

Discrete and non discrete

13.

'#' (hash) is a ---------- character.

a)

Special

b)

Alphabet

c)

Number

14.

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

a)

*

b)

>=

c)

%

d)

+

15.

The computer ignores the _____statement when you run the program.

a)

Clear Screen

b)

Remark

c)

Print

16.

what will be the output:

PRINT "24 + 5 - 9"

a)

24+5

b)

20

c)

24+5-9

17.

What is the full form of QBASIC?

a)

Quick Beginner All-Purpose Symbolic Instructed Code

b)

Quick Beginner Purpose Symbolic Instruction Code

c)

Quick Beginner All-Purpose Symbol Instruction Code

d)

Quick Beginner All-Purpose Symbolic Instruction Code

18.

an example of a string constant is

a)

"123"

b)

-7

c)

4rs

d)

5/6

19.

QBasic is a a ___________language.

a)

First

b)

system

c)

complier

d)

programming

20.

What will the following code produce?

PRINT "Hi"

a)

A paper printed with "Hi"

b)

A screen showing "Hi"

21.

Which of the following arithmetic operator is not valid ?

a)

+

b)

-

c)

*

d)

x

22.

A computer program is simply

a)

An exercise of the brain

b)

A set of instructions to tell a computer how to perform a particular task

c)

Pairs of computer system

d)

None of the above

23.
What does INPUT in QBASIC do?
a)
Displays something to the screen
b)
Gives a remark in the program
c)
Takes input from the user
24.

Look at the variable name and decide if its a string variable or a numeric variable.

Var$

a)

String Variable

b)

Numeric Variable

25.

QBASIC is ___________ language.

a)

high level programming

b)

low level programming

c)

assembly

d)

machine

26.

What will be the output for the following statement

print "8 + 9"

a)

17

b)

8

c)

8 + 9

d)

9

27.

Which of the following symbol is used to create string variable

a)

+

b)

$

c)

*

d)

@

28.

What is the output for the following program

a)

15

b)

5

c)

x

d)

y

29.

Find the output for the following program, consider the user enters the input value 5.

a)

b

b)

25

c)

5

d)

error

30.

Identify the logical operator

a)

+

b)

>=

c)

<=

d)

AND

31.

Which key is used to run QBASIC program

a)

F2

b)

F5

c)

F1

d)

R

32.

Identify the variable in the following statement

LET name$ = "Raana"

a)

LET

b)

Raana

c)

name

d)

$