Page 136 - Trackpad_V1_Book 8_Flipbook
P. 136

3.  Answer in one or two words.
                      a.   Which function returns a string with the first character in capital?       _______________

                      b.   Which type of list is used to place different data types in it?            _______________
                      c.   Which function is used to remove a whole list of elements of a list?       _______________

                      d.   Which keyword is used to begin the function definition?                    _______________
                      e.   Which type of function takes parameters but does not return anything?      _______________

                  4.  Think and answer.
                      a.   What are functions?

                           ____________________________________________________________________________
                      b.   Define strings.

                           ____________________________________________________________________________
                      c.   What are lists in Python? Define any two list functions.

                           ____________________________________________________________________________
                           ____________________________________________________________________________

                      d.   How can we call a function in Python? Explain using an example.
                           ____________________________________________________________________________

                           ____________________________________________________________________________


                      e.   What are the different types of functions? Explain in detail.
                           ____________________________________________________________________________

                           ____________________________________________________________________________


                      f.   What are the different ways through which we can create a list? Explain using an example.
                           ____________________________________________________________________________
                           ____________________________________________________________________________


                  5.  Application based questions:                                                   Experiential Learning

                      a.    Devansh created multiple strings in Python. He now wishes to join the strings to form a
                           single string. Is this possible? How can he do this?

                           ____________________________________________________________________________
                      b.    Abhishek wants to print his name in Python. He noticed that it got printed in lowercase. How can
                           he change it into uppercase?
                           ____________________________________________________________________________

                      c.    Kazim made a list in Python and forgot to add a couple of elements into it. Which function can he
                           use to add these elements?
                           ____________________________________________________________________________






                  134   Trackpad (Version 1.0)-VIII
   131   132   133   134   135   136   137   138   139   140   141