COMPUTER STUDIES

BASIC PROGRAMMING 2 OBJECTIVE QUESTIONS

1) The proper operator precedence, from first to last, is:

a) logical, comparison and arithmetic.

 

b) arithmetic, comparison and logical.

 

c) arithmetic, logical and comparison.

 

d) comparison, arithmetic and logical.

 

 

2) Which statements are optional in an IF………THEN statement?

a) IF

 

b) THEN

 

c) ELSE

 

d) Both A and B.

 

 

3) The END IF statement is required:

a) in all IF …… THEN statements.

 

b) in all Multi – line statements with ELSE.

 

c) in Single Line statements.

 

d) All of the above.

 

 

4) Which selection process is an example of multiple branches from a single expression.

a) IF …. THEN

 

b) Select Case

 

c) Do …. Loop

 

d) FOR ….. NEXT

 

 

5) Which operator is evaluated first?

a) NOT

 

b) AND

 

c) XOR

 

d) OR

 

 

6) The left side of an assignment statement will hold:

a) a variable.

 

b) an object property.

 

c) an expression.

 

d) Both A and B.

 

 

7) The right side of an assignment statement will hold:

a) a variable.

 

b) an object property.

 

c) an expression.

 

d) Both A and B.

 

 

8) Do ….. Loop is an iterative statement because it:

a) select a block of statements to run.

 

b) runs the same block of statements repeatedly.

 

c) selects a block of statements and runs it repeatedly.

 

d) All of the above.

 

 

9) In the FOR ….. NEXT statement the default value for the Step is:

a) -1.

 

b) 0.

 

c) 1.

 

d) 2.

 

 

10) The FOR ….. NEXT Loop is used when:

a) a choice is made based on a Boolean condition.

 

b) a block of statements is executed an unknown number of times.

 

c) a block of statements is executed a known number of times.

 

d) All of the above.

Leave a Reply

Your email address will not be published. Required fields are marked *

Cooking topics for domestic helper | 健樂護理有限公司 kl home care ltd. Experience the power of this link building network and watch as your website soars to new heights in the digital landscape.