Page 206 - AI Ver 1.0 Class 10
P. 206

Exercise




                                                       Solved Questions

                                                SECTION A (Objective Type Questions)

                    uiz

              A.  Tick ( ) the correct option.
                  1.  Which one of the following is an invalid identifier?
                     a.  MyName                                        b.  True

                     c.  Name2                                         d.  FirstName

                  2.  Which among the following is a valid arithmetic operator in Python?
                     a.  ?                                             b.  <
                     c.  **                                            d.  and

                  3.  What value does a True statement returns?
                     a.  1                                             b.  0

                     c.  False                                         d.  True
                  4.  Tuples are created using which brackets?
                     a.  ()                                            b.  { }

                     c.  [ ]                                           d.  <>
                  5.  List is a sequence of which of the following values?

                     a.  Homogeneous values                            b.  Heterogeneous values
                     c.  Integer values                                d.  String values

                  6.  Which among the following is a special data type?
                     a.  Int                                           b.  None

                     c.  True                                          d.  False
                  7.  Which among the following is the correct declaration for L=[‘Item’,101,’ItemName’,’Books’]?

                     a.  List                                          b.  Dictionary
                     c.  String                                        d.  Tuple

                  8.   What will be the output of the given expression?

                     6*3+4**2//5-8
                     a.  34                                            b.  17
                     c.  13                                            d.  45

                  9.  Which character is used in Python to make a single line comment?
                     a.  /                                             b.  //
                     c.  #                                             d.  !





                        204   Touchpad Artificial Intelligence-X
   201   202   203   204   205   206   207   208   209   210   211