Header Ads Widget

Responsive Advertisement

Module 3: Conditions that Control Processing

Conditions that Control Processing


1. How many ways contents of two variables can be compared?

A. four 

B. five

C. six

D. seven

Answer: C

2. The condition A< B is equivalent to which of the following?

A. A> B

B. B= A

C. A? B

D. NOT (B<A)

Answer: D

3. Consider the following statements

        IF A< B THEN

               Instruction-1

        ELSE

               Instruction-2

         END IF

Which of the following will produce the same result as the above does?

       A. IF A= B THEN

                 Instruction-1

            ELSE

                   Instruction-2

      END IF


       B. IF B> A THEN

                  Instruction-2

             ELSE

                  Instruction-1

              END IF


        C. IF B? A THEN

                    Instruction-1

             ELSE

                      Instruction-2

             END IF


         D. IF B< A THEN

                       Instruction-2

              ELSE

                        Instruction-1

               END IF

Answer: D

4. Which of the following exchanges the contents in memory locations X and Y?

A. move Y to X

Move X to Y

B. move X to TEMP

Move Y to X

Move TEMP to Y

Answer: B

5. Boolean algebra (Boolean logic) works with which type of variable (fields)?

A. Fields that represent numeric values

B. Fields that represent textual values

C. Fields that represent Boolean values

D. Fields that represent decimal values

Answer: C

6. What value a Boolean field (variable) can have?

A. Any value

B. Only Textual data

C. Either true or false

D. Only numeric value

Answer: C

7. Which of the following operation or operations can be used in Boolean algebra?

A. NEITHER

B. AND

C. OR

D. NOT

Answer: B, C, D

8. Which of the following is or are Boolean Operators?

 A. NEITHER

B.  AND

C. OR

D. NOT

Answer: B, C, D

9. When the expression A AND B is true?

A. If A is true and B is true

B. If A is false and B is false

C. Either A is true or B is true

D. Either A is false or B is false

Answer: A

10. NOT A is false __.

A. if A is true

B. if A is false

Answer: A

11. Say a=5 and b=9

Now Consider the Boolean expression NOT (a<b)

This expression evaluates to ________.

A. true

B. false

Answer: B

12. Not (3>5) AND (5>3)

This expression will evaluate to---.

A. true

B. false

Answer: A

13. Which of the following is used to represent the possible values of combinations of conditions?

A. Decision table

B. Truth table

C. Argument table 

D. Function table

Answer: B

14. If three are n number of conditions what will be the number of rows of possible combinations in the truth table?

A. n2

B. n*n

C. 2n

D. n/2

Answer: C

15. Two Boolean expressions are equivalent ___________________________.        

A. When they have the same values for all combinations of conditions.

B.  When they have the same values for any one combination of conditions.

Answer: A

Post a Comment

0 Comments