Page 138 - C_GPT _V4 _class_6
P. 138

Quick Quiz

                1.  What is Python primarily used for?

                           a. Graphic design                             b. Programming and software development
                2.  Which of the following is not a data type in Python?

                           a. Integer                                    b. Styling





                            Recap



                            Python is a popular high-level programming language.
                            Interactive Mode is a command line shell which gives immediate result for each command.
                            The input() function takes the user’s input while a program executes.
                            The print() function prints or sends the output to the standard output device, which is usually a
                          monitor.


                            Variables are memory reference points where we store values which can be accessed or changed
                          later.
                            A data type specifies the type of value a variable can contain.
                            Comments enable us to understand the way a program works.
                            Operators can be defined as special symbols which perform arithmetic and logical computations.
                            Precedence of operators determines the order in which the operators are executed.



                                                 Assess Yourself


                     Choose the correct option.

                      1.   Which of the following can be developed using Python?
                                a. Web applications                           b. Games


                                c. GUI Applications                           d. All of these

                      2.  Which of the following is TRUE about Python?

                                a. It is paid.                                b. It follows object-oriented approach.

                                c. It is a fixed typed language.              d. It is a compiled language.

                      3.  Sriansh has written the following code in Python:
                         X = Y = 10
                         X = Y + 10
                         What will be the final value of X?

                                a. 10                                         b. 30

                                c. 20                                         d. 40




                136     CodeGPT (Ver. 4.0)-VI
   133   134   135   136   137   138   139   140   141   142   143