Page 124 - Trackpad_V5_Book 6
P. 124

d.  Which option is used to execute a program?

                   (i)  Check Module                                 (ii)  Python Shell
                  (iii)  Run Module                                  (iv)  Both (i) & (ii)

            2.  Fill in the blanks using the words from the help box.

                            Interactive Mode, data type, Guido van Rossum, input( ), string

               a.  __________ defines the type of value, a variable can contains.

               b.  A __________ value is a collection of one or more characters put in single or double-quotes.
               c.  The __________ function allows to take the user's input while a program executes.
               d.  Python was developed by __________.
               e.  __________ gives immediate result for each command after pressing the Enter key.

            3.  Think and answer.
               a.  What do you mean by python programming language?

                _______________________________________________________________________________
               b.  What is the use of comments in Python?

                _______________________________________________________________________________

               c.  What are the data types?
                _______________________________________________________________________________
               d.  What will be the output of the following Python statement?
                  print(12 // 2 + 7 - 8)

                _______________________________________________________________________________
               e.  Write the output of the following statement:
                  print("Hello!", "How", "are you?")

                _______________________________________________________________________________
               f.   What is variable? How do you declare a variable in Python?
                _______________________________________________________________________________

                _______________________________________________________________________________


                                                                                         21 st
                                                                                       Century   #Experiential Learning
            4.  Competency-based/Application-based questions:                            Skills
               a.   Aarav has been writing codes in the command prompt. He wants to save and reuse
                  his programs. Where should he write his codes instead so that he can easily open,
                  run and save for further use?
                ______________________________________________________________________________

               b.   Ayushi finished writing a program in Python and has saved it successfully but now she has forgotten
                  the option to execute a program. Tell her which option she should use.

                ______________________________________________________________________________





            122   Pro (Ver. 5.0)-VI
   119   120   121   122   123   124   125   126   127   128   129