wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

G6-Comp. Sci. Review Semester 2

Total questions: 42

Worksheet time: 1hrs 24mins

Name
Class
Date
1.

What is the extention of a QBASIC Program

a)

.exe

b)

.bas

c)

.cpp

d)

.py

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.

String Variable

Click$

a)

Valid

b)

invalid

6.

String Variable

3Start$

a)

Valid

b)

invalid

7.

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

a)

Variable

b)

Constant

c)

Character

d)

Print

8.

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

a)

INPUT

b)

LET

c)

PRINT

d)

REM

9.

In PRINT command, the message is closed in ______.

a)

Double Quotes

b)

Semicolons

c)

Single Quotes

d)

None of the above

10.

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

11.

Qbasic is a ----------------- programming language

a)

high level

b)

low level

c)

assembly level

d)

hard level

12.

---------- means removing errors.

a)

Inputting

b)

Debugging

c)

Bug

d)

syntax

13.

3. Print "HELLO WORLD" will print ?

a)

HELLOWORLD

b)

HLLOWORD

c)

WORLD HELLO

d)

HELLO WORLD

14.

what will be the output:

PRINT "24 + 5 - 9"

a)

24+5

b)

20

c)

24+5-9

15.

What is the output for the following program?

a)

num

Name$

b)

35

David

c)

35

"David"

d)

Syntax Error

16.

A command/statement used to give certain notes to your program and it will not be executed by the program.

a)

REM

b)

PRINT

c)

INPUT

d)

LET

17.

Which Function key is used to run a program in QBasic?

a)

F2

b)

F3

c)

F5

d)

F7

18.

What is the name of the component shown on no. 5

a)

Program area

b)

Title bar

c)

Status area

d)

Scroll bar

19.

What is the name of the component shown on no. 2

a)

Menu bar

b)

Program area

c)

Status area

d)

Scroll bar

20.

What is the name of the component shown on no. 3

a)

Menu bar

b)

Program area

c)

Program name

d)

Scroll bar

21.

What is the name of the component shown on no. 7

a)

Menu bar

b)

Program area

c)

Program name

d)

Status area

22.

An area in QBasic where you can see Find option to search for the text in program area.

a)

Menu area

b)

Program area

c)

Relaxing area

d)

Status area

23.

PRINT "6+56"

the code above will display?

a)

62

b)

6+56

c)

Syntax error

d)

none of the above

24.

Alphanumeric variables always end with a -------.

a)

Semi - colon (;)

b)

Dollar sign ($)

c)

Hash (#)

25.

Variables always begin with -----------.

a)

Number

b)

Alphabet

c)

Constant

26.

A45 is a valid numeric variable.

a)

True

b)

False

27.

The appropriate variable for "Understanding Information Technology" is

a)

B$

b)

B

c)

None of the above

28.

what will be the output:

PRINT "24 + 5 - 9"

a)

24+5

b)

20

c)

24+5-9

29.

What is the Output:

PRINT "9 - 9"

(a)  

30.

What is the output of the given code in QBASIC

a)

10 5

b)

5 10

c)

10 15

d)

15 10

31.

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

a)

LET

b)

$S

c)

S$

d)

SS

32.

LET a = 5

IF a MOD 2 = 1 THEN

PRINT a + 1

ELSE

PRINT a - 1

END IF

a)

6

b)

4

c)

5

d)

3

33.

'<' (less than) is a --------- Operator

a)

Relational

b)

Logical

c)

Arithmetical

34.

'AND' is a ---------- operator.

a)

Relational

b)

Arithmetical

c)

Logical

35.

A>=B means

a)

A is greater than or equal to B

b)

B is greater than or equal to A

c)

A is less than or equal to B

36.

Statement in QBASIC to clear the output screen

a)

CLS

b)

CLEAR

c)

CLEAR SCREEN

d)

CLRSCR

37.

5. HOW TO WRITE ana^n  in QBasic?

a)

a*n

b)

a^n

c)

a/n

d)

n^a

38.

6. What is the meaning of mod in QBasic??

a)

to calculate the remainder value

b)

to calculate submission value

c)

both

d)

none

39.

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

a)

True

b)

False

40.

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

a)

*

b)

>=

c)

%

d)

+

41.
a)

1

b)

2

c)

3

d)

Syntax Error

42.
a)

10

b)

Yes

c)

No

d)

Syntax Error