Page 348 - AI Ver 1.0 Class 9
P. 348

13.  Define Python?
          Ans.  Python is a high-level, interpreted, interactive and object oriented-scripting language.
           14.  Who developed Python?

          Ans.  Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute
              for Mathematics and Computer Science in the Netherlands.
           15.  Why Python is easy-to-learn?
          Ans.  Python has relatively a few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up
              the language in a relatively short period of time.
           16.  Explain the disadvantages of Python.
          Ans.  Disadvantages of Python are:
              a.  Python is interpreted language and is slow compared to C/C++ or java.

              b.  Python is not the best for memory intensive tasks.
           17.  Can Python be easily integrated with C++?
          Ans.  Yes, Python can be easily integrated with C++.
           18.  What is another name of comparison operators?
          Ans.  Relational operators.

           19.  Which operator is used for assigning a value into a variable?
          Ans.  Assignment operators.
           20.  Which operator is used for comparison of values?
          Ans.  Logical operators.

           21.  What is the use of "+" operator?
          Ans.  The "+" operator adds values on either side of the operator.
           22.  What is the use of "*" operator?
          Ans.  The "*" operator multiplies values on either side of the operator.
           23.  What is the use of "%" operator?

          Ans.  The "%" operator divides left-hand operand by right-hand operand and returns remainder.
           24.  What is the use of "*" operator?
          Ans.  The "*" operator performs exponential (power) calculation on operators.
           25.  What is the use of "= =" operator?

          Ans.  It checks if the value of two operands is equal or not, if yes then condition becomes true.
           26.  What is the use of "! =" operator?
          Ans.  It checks if the value of two operands is equal or not, if values are not equal then condition becomes true.
           27.  Why do you use "<> "operator?
          Ans.  It checks if the value of two operands is equal or not, if values are not equal then condition becomes true.
           28.  Describe the use of ">" operator?

          Ans.  It checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.
           29.  Why you use "<" operator?
          Ans.  The "<" operator checks if the value of left operand is less than the value of right operand, if yes then condition
              becomes true.




                  346   Touchpad Artificial Intelligence-IX
   343   344   345   346   347   348   349   350   351   352   353