wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QBASIC Programming

Total questions: 10

Worksheet time: 26mins

Name
Class
Date
1.

When QBASIC developed by Microsoft Corporation, USA?

a)

In 1975 AD

b)

In 1965 AD

c)

In 1955 AD

d)

In 1945 AD

2.

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

3.

What is the extension of the QBASIC file?

a)

.BAX

b)

.BAS

c)

.EXE

d)

.DOC

4.

Which is suitable to store double-precision Numeric Variables?

a)

X%

b)

X&

c)

X!

d)

X#

5.

Which is valid for the string variable?

a)

K2

b)

K2$

c)

2K$

d)

K 2$

6.

Choose the correct QBASIC Expression of the above algebraic expression.

a)

A=(S*(S-a)*(S-b)*(S-c))^1/2

b)

A=(S*(S-a)*(S-b)*(S-c)^1/2

c)

A=(S*(S-a)*(S-b)*(S-c)^1/2)

d)

A=S*(S-a)*(S-b)*(S-c)^1/2

7.

Which is used to remove the space of the given string from the left side?

a)

LEFTTRIM$

b)

LTRIM$

c)

LEFT$

d)

NONE

8.

What will be the output of the SGN numeric function?

a)

0 or 1

b)

-0 or 1 or +1

c)

+1 or -1 or 0

d)

1 or -1 or 0

9.

Write the output of the given program

CLS

N$ ="NEPAL"

C=1: T= 5

FOR I = LEN(N$) to 1 STEP -2

PRINT TAB(T);MID$(N$, C, I)

C=C+1:T=T+1

NEXT I

END

a)

P

EPA

NEPAL

b)

PAL

EPAL

NEPAL

c)

NEPAL

EPA

P

d)

NEPAL

NEPA

NEP

10.

Write out of the given program (a)  

CLS

A#=123456789

WHILE A#<>0

R=A# MOD 10

P=P+R

A# = INT(A#/10)

WEND

PRINT P

END