Page 210 - AI Ver 1.0 Class 10
P. 210

L=int(input("Length:"))
                    B=int(input("Breadth:"))

                     A=L*B;P=2*(L+B)
                     elif Shape=="C":
                    R=float(input("Radius:"))
                    A=(22/7)*R*R;P=2*(22/7)*R

                     print("Area is :",A)
                     print("Perimeter is :",P)


                                                     Unsolved Questions


                                                SECTION A (Objective Type Questions)
                     uiz

              A.  Tick ( ) the correct option.
                  1.  Which of the following operator is used for floor division?
                     a.  /                                             b.  //

                     c.  %                                             d.  **

                  2.  Which data type is used to store mobile number?
                     a.  Int                                           b.  Float
                     c.  String                                        d.  Boolean

                  3.  Which argument is used to give a different separator with print()?
                     a.  sep                                           b.  separator

                     c.  end                                           d.  tab
                  4.  What is the output for the following code:

                          if True:
                            print(1001)
                          else:
                            print(2002)
                     a.  1001                                          b.  true

                     c.  2002                                          d.  false
                  5.  Choose the correct option with respect to Python.

                     a.  Both tuples ans lists are immutable
                     b.  Both tuples and lists are mutable
                     c.  Tuples are immutable while lists are mutable

                     d.  Tuples are mutable while lists are immutable
                  6.  A powerful tool for interactively developing and presenting machine learning projects with the help of Python.

                     a.  Anaconda                                      b.  Ipython
                     c.  MathLab                                       d.  Jupyter




                        208   Touchpad Artificial Intelligence-X
   205   206   207   208   209   210   211   212   213   214   215