Page 313 - Ai_C10_Flipbook
P. 313

Viva Voce Questions




                    1.  Name two different modes used in Python.

                   Ans.  Script and interactive mode are the two modes available in Python.
                    2.  Is Python an interpreter or compiler supported language?
                   Ans.  Python is an interpreted language.
                    3.  What do you mean by cross-platform language? Does Python support it?
                   Ans.  A cross-platform language is developing computer software, which is developed to. work across multiple computing
                       platforms. Python is a cross-platform language.
                    4.  Name the module required to calculate the mean of values.
                   Ans.  Statistics module is used to calculate the mean of values.
                    5.  Give an example of NLP application in our daily life.
                   Ans.  Virtual assistants like Siri, Google assistant etc. are some of the real-life applications of NLP.
                    6.  What is the meaning of corpus?
                   Ans.  A corpus is a large collection of written or spoken text that is used for language research.
                    7.  Differentiate between lists and tuples.
                   Ans.  Lists are mutable whereas the tuples are immutable. It means we can modify lists but we cannot change tuples.
                    8.  Expand TFIDF.
                   Ans.  TFIDF stands for Term Frequency Inverse Document Frequency.
                    9.  Name the arithmetic operators that can be used with strings.
                   Ans.  The ‘+’ operator is used to concatenate and the ‘*’ operator is used to multiply the strings.
                    10.  What file formats can you use to load data into Orange?

                   Ans.  Orange supports data formats like CSV, Excel, and SQL databases for loading data.
                    11.  Differentiate between end and sep parameter used with print statement.
                   Ans.  The end parameter defines the line terminator for print function. The sep parameter defines the separator between the
                       arguments or items in an iterator to print.
                    12.  What is RGB?
                   Ans.  RGB (Red, Green, and Blue) refers to a system for representing the colors to be used on a computer display.
                    13.  What are pixels?
                   Ans.  Pixel stands for "Picture Element". It is the smallest unit of information in a digital image.
                    14.  What is the minimum and maximum value of each RGB color?
                   Ans.  The minimum value is 0 and the maximum value is 255.
                    15.  (0,0,255), (255,0,0), (0,255,0), (0,0,0), (255,255,255). The given pixel combination will make which colors?
                   Ans. (0,0,255) = Blue, (255,0,0) = Red,(0,255,0) = Green,(0,0,0) = Black, (255,255,255) = White
                    16.  What are conditional statements?
                   Ans.  Conditional statements are used for selecting the block of statements to be executed based on the condition. We
                       specify the condition in the program which evaluates to either True or False.
                    17.  Give two different ways of giving comments in Python.
                   Ans.  ●  Single Line Comments: Starts with a hash symbol ‘#’ followed by the text to be written as a comment that lasts till
                         the end of the line.
                        ●  Multi Line Comments: Begin and end with three single quotes (''') or three double quotes ("""). These allow comments
                         spanning multiple lines.
                    18.  What are keywords? Give examples.
                   Ans.  Keywords have special meaning which are reserved by Python for special purposes and are not allowed to be used as
                       identifiers. They are case sensitive.

                                                                                          Viva Voce Questions   311
   308   309   310   311   312   313   314   315   316   317   318