Page 139 - Plus V4 with Adobe class 7
P. 139

Fill in the blanks with the correct words.


                                                    Hints  false, if, true, else


                  1.  The                   statement is the simplest conditional statement.

                  2.  In Python, the non-zero value is interpreted as
                  3.  Decision statements may give the results true or

                  4.   The                  block will be executed if and only if the provided condition evaluates to false.


                    Tick () the correct statements and cross () the wrong ones.


                  1.  The if...elif...else statement follows a top-down approach.

                  2.   Python does not allow nested if statement.

                  3.  The if…elif…else ladder not a conditional statement in Python.

                  4.    The if statement executes a command if the provided condition evaluates to true.
                  5.   The if...elif...else statement allows you to test only one condition.



             Q     Answer the following questions:
               A
                  1.  What is decision making statement?



                  2.  Write the syntax for the if…elif…else statement.




                  3.  Write the syntax of the if statement.



                  4.   What is the difference between if and if...else statements?







                                                                                                  21 st
                   Scratch Your Brain.                                                         Century   #Critical Thinking
                                                                                                 Skills
                  1.  What will be the output of the following programs?

                       a.  a = 200

                          b = 33

                          if b > a:
                            print("b is greater than a")




                                                                               #Conditional Statements in Python 137
   134   135   136   137   138   139   140   141   142   143   144