Page 97 - modular4.0
P. 97

Chapter Profile
                          Recap







                        A computer language is the medium by which instructions are transmitted to the computer
                      to perform a specific task.
                       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.
                        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
                      computation.




                 Exercise


                 A.   Tick ( ) the correct option.

                     1.  What is the only language that can be understood by computers?
                         a.  High-level Language                          b.  Assembly Language

                         c.  Machine Language                             d.  Natural Language
                     2.   Assembly  Language  consists of  program codes  in  the form of  alphanumeric  symbols  called
                                     .
                         a.  Bits                                         b.  Mnemonics

                         c.  Symbolic form                                d.  High level form

                     3.  Which of the following is not a third generation language?
                         a.  SQL                                          b.  C++

                         c.  Java                                         d.  C#
                     4.  Which program converts the source program into machine language line by line?

                         a.  Assembler                                    b.  Compiler
                         c.  Interpreter                                  d.  All of these

                     5.  Which of the following statement is not true about Python?
                         a.  It is object oriented language.              b.  It is open source language.

                         c.  It is a compiled language.                   d.  It is easy to code.








                                                                                         Introduction to Programming  95
   92   93   94   95   96   97   98   99   100   101   102