Page 361 - Information_Practice_Fliipbook_Class11
P. 361

Viva Voce Questions







               1.  What are the key features of Python programming?

             Ans.  Python is a versatile and widely-used programming language known for its simplicity and readability. It has
                  many key features that make it popular among developers for a variety of applications. Here are some of the key
                  features of Python programming:
                  a. Extensive Standard Library

                  b. Dynamic Typing
                  c. Open Source

                  d. Object-Oriented

               2.  What is IDLE?
             Ans.  IDLE (Interactive Development and Learning Environment) is an environment for developing Python programs
                  ("scripts").

               3.  What are the two modes of working in Python?
             Ans.  Python provides two modes of working:

                  a.  Interactive mode
                  b.  Script mode
               4.  List primitive data types in Python.
             Ans.  The primitive data types in Python are: integer, float, string, and boolean.

               5.  Is string a sequence data type?
             Ans.  Yes, a string is a sequence data type in Python programming.

               6.  What is the purpose of input() method?
             Ans.  The purpose of the input() method in Python is to take user input from the keyboard and store it as a string
                  for further processing in a program.

               7.  How the values are printed if we do not use the sep option of print() function?
             Ans.  If you don't use the sep option with the print() function in Python, it will print the specified values separated
                  by a space by default.

               8.  What are the different types of operators in Python?
             Ans.  Python has several types of operators, including:

                  a. Arithmetic Operators: Perform mathematical operations (e.g., +, -, *, /, %, //, **).

                  b. Comparison Operators: Compare values and return Boolean results (e.g., ==, !=, <, >, <=, >=).
                  c. Logical Operators: Perform logical operations on Boolean values (e.g., and, or, not).

                  d. Assignment Operators: Assign values to variables (e.g., =, +=, -=, *=, /=, %=, //=, **=).
                  e. Membership Operators: Check for membership in a sequence (e.g., in, not in).




                                                                                            Viva Voce Questions  347
   356   357   358   359   360   361   362   363   364   365   366