wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

L-4, Conditional and control statement

Total questions: 31

Worksheet time: 13mins

Name
Class
Date
1.

(a)   statement is used to take input from the keyboard.

2.

______________ is a non executable statement in QBasic.

a)

INPUT

b)

CLS

c)

REM

3.

To clear the screen we use (a)   command.

4.

We use ____________operators to write the condition ,which is being checked in IF ---THEN ---ELSE statement .

a)

ARITHMENTIC OPERATORS

b)

RELATIONAL OPERATORS

c)

LOGICAL OPERATORS

5.

______________ statement is used when loop has to be executed for a fixed number of times.

a)

FOR-----NEXT LOOP

b)

IF---THEN STATEMENT

c)

IF-----THEN-----ELSE STATEMENT

6.

In FOR ---NEXT loop, by default the value of the counter variable to be incremented by (a)  

7.

To display " INDIA" 10 times using FOR---NEXT LOOP STATEMENT ,the end value of a counter variable will be---------

(a)  

8.

In FOR------NEXT loop statement, the value of STEP FUNCTION can be negative.

a)

YES

b)

NO

9.

IF---THEN ---ELSE is which type of statement?

a)

Conditional statement

b)

Looping statement

c)

None

10.

Which function key is used to RUN the QBasic program.

a)

F1

b)

F3

c)

F5

11.

PRINT BHOPAL is a correct statement.

a)

YES

b)

NO

12.

_____ value of STEP function will print number in reverse order.

a)

POSITIVE

b)

NEGATIVE

13.

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

a)

INPUT

b)

LET

c)

PRINT

14.

In PRINT command, the message is closed in ______.

a)

Double Quotes

b)

Semicolons

c)

Single Quotes

15.

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

a)

Relational

b)

Logical

c)

Arithmetical

16.

'$' (dollar) is a ---------- character used in string variable.

a)

Special

b)

Alphabet

c)

Number

17.

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

18.

Counter Variable is also known as________

a)

Step numeric Variable

b)

Running numeric Variable

c)

Loop variable

19.

To print any string on the screen it is compulsory to enclose string with _______symbol

a)

# #

b)

" "

c)

@ @

20.

Basic statement that will be executed only when the condition is true-

a)

GOTO

b)

IF---THEN

c)

FOR---NEXT

21.

To transfer program control unconditionally to any statement in the program we should use -

a)

GOTO

b)

IF-THEN

c)

FOR----NEXT

22.

_______ function is used to change the value of the running variable .

a)

GOTO

b)

NEXT

c)

STEP

23.

ELSE should be given on the_______line as the IF statement.

a)

Same

b)

different

24.

Which shortcut key combination is used to come out of the infinite loop in between the program while using GOTO statement?

a)

Ctrl + O

b)

Ctrl + Break

c)

Ctrl + X

25.

To find out the eligibility of a person to vote we should use ________statement.

a)

IF_____Then____Else

b)

GOTO

c)

FOR----NEXT

26.

PRINT " GOOD MORNING EVERYONE" is a correct way of displaying string value on the screen.

a)

YES

b)

NO

27.

In IF---THEN ----ELSE STATEMENT ELSE is a true branch or false branch?

a)

TRUE

b)

FALSE

28.

In IF---THEN ----ELSE STATEMENT , THEN is a true branch or false branch?

a)

TRUE

b)

FALSE

29.

To displat numbers from 50 to 40 in reverse order, the starting values of a counter variable is_____?

a)

40

b)

50

c)

-1

30.

To display numbers 21 to 50 we will use _________statement.

a)

IF---THEN

b)

IF---THEN----ELSE

c)

FOR-----NEXT

31.

To display the table of any given number we should use ______statement.

a)

IF---THEN

b)

IF---THEN--- ELSE

c)

FOR---NEXT