Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 112 - 2505_CoreGPT(Podar)_Flipbook_C6
P. 112

    3.  Identify the part of the IF-THEN-ELSE statement executes when the condition evaluates to false.

                            a.  THEN                                         b.  IF

                            c.  ELSE                                         d.  END IF

                         4.  In BASIC-256, what is it called when one IF…THEN statement is placed inside another?
                            a.  Nested If                                    b.  If Then

                            c.  If Then Else                                 d.  Multiple If

                         5.  Which of the following happens when the outcome of a condition is false in programming?
                            a.  The program stops immediately

                            b.  The first set of commands is executed

                            c.  The second set of commands is executed

                            d.  The program crashes

                      B.  Fill in the blanks using the words given below:
                                                    Hints

                                                       Second, GOTO, END IF, IF-THEN-ELSE, THEN

                         1.  Statements that allow the program to jump to a specific line are the .......................... statement.
                         2.  In the IF-THEN-ELSE statement, if the condition evaluates to true, the statements following the
                            .......................... keyword are executed.
                         3.  A Nested IF allows the program to make a .......................... decision only when the first condition is
                            true.

                         4.  Control statements include GOTO Statement, IF-THEN Statement and .......................... Statement.
                         5.  All the control statements end with ...........................

                      C.  Write ‘T’ for true and ‘F’ for false.

                         1.  You make decisions in programming based on conditions, just like in daily life.   ..........................

                         2.  The IF-THEN statement is the simplest conditional statement.                     ..........................
                         3.  The IF-THEN-ELSE statement executes the ELSE block when the condition is true.   ..........................

                         4.  Nested IF statements can make decisions even if the first condition is false.    ..........................

                         5.  In GOTO statement program execution moves directly to the specified location.    ..........................

                      D.  Answer the following questions:

                         1.  Write the syntax of GOTO statement.
                           .....................................................................................................................................................................................

                           .....................................................................................................................................................................................

                    110     Premium Edition-VI

| 107 108 109 110 111 112 113 114 115 116 117 |