Page 114 - Modular v1.1 Pyhton
P. 114

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

                      1.   Escape sequences are used to delete special characters.                        ……………………
                      2.   The index of elements of a list starts from 1.                                 ……………………
                      3.   Slicing operator is used to get the certain range of tuple elements.           ……………………

                      4.   Element values of a dictionary can be access on the basis of the key values.   ……………………
                      5.   Web apps require hand-held devices for installation.                           ……………………

                      6.   Index with positive integer’s starts from left with 1.                         ……………………
                      7.   Lists are immutable.                                                           ……………………
                        8.   Tuple contains any number of elements of heterogeneous type.                 ……………………

                  C.  Fill in the blanks.
                      1.   The backslash (\) is a special character and is also known as the …………………… character

                      2.   In list, each element or value is called an …………………… .
                      3.   The elements from left to right are traversed using the …………………… indexing.
                      4.   …………………… method is used to remove all the elements of a dictionary.
                      5.   …………………… is an operating system for mobile devices developed by Google.

                      6.   The …………………… function returns a string with the first character in capital.
                      7.   To join the two list together …………………… operator is used.
                      8.   …………………… method returns the largest element of the tuple.

                                                             Section B

                  A.   Short answer type questions.

                      1.   What are strings?
                      2.   While traversing a list when will user gets an IndexError?
                      3.   What is tuple?
                      4.   What is dictionary?
                      5.   Write any three components of block editor window.

                      6.   What is the difference between (+) and (*)?
                      7.   Name the list method which reverses the order of the elements in the list.

                  B.   Long answer type questions.
                      1.   Explain different ways of indexing a list.
                      2.   Describe remove( ), index( ), count( ) list methods.
                      3.   How will you access tuple elements by index numbers? Explain with an example.
                      4.   Write any one difference between pop( ) and clear( ) method.

                      5.   What is educational apps? Give any two examples.
                      6.   What is the use of repeating lists?
                      7.   How can you access the values in tuple?






                  112     Touchpad MODULAR (Version 1.0)
   109   110   111   112   113   114   115   116   117   118   119