Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 72 - 2607_Trackpad_Pro_5.1_flipbook_C6
P. 72

    LANGUAGE TRANSLATOR

                      A language translator is a software that converts a high-level language program into a machine
                      language. There are three types of language translators:

                      ASSEMBLER
                      An assembler is a program used to translate assembly language into machine language so that
                      the computer can understand it. The assembler enables the computer to convert the assembly
                      language instructions into machine code, i.e., 0’s and 1’s.

                      COMPILER
                      A compiler reads an entire set of instructions written in a high-level language and then translates
                      them into machine language. A major drawback of a compiler is that if there is an error in the
                      program, the programmer will only know it after the entire program has been translated.

                      INTERPRETER
                      An interpreter reads one line of instruction at a time and translates it into machine language. Any
                      error in the instruction is reported immediately and the programmer can correct it accordingly.
                      It is slower than the compiler.

                             Hashtag

                           #Algorithm: Step-by-Step instructions for doing any process

                           #Flowchart: Graphical representation of an algorithm

                           REVISIT

                        ▶  An algorithm is a set of instructions designed to complete a specific task.
                        ▶  A flowchart is the graphical representation of the process and the logic used in it.
                        ▶   Low-level language is a programming language that deals with the computer’s hardware components.
                        ▶  High-level languages are considered to be closer to human beings.
                        ▶   The compiler reads an entire set of instructions written in HLL and then translates them into machine language.
                        ▶   The interpreter reads one line of instruction at a time and translates it into machine language.

                      1.  Tick ( ) the correct option.
                         a.  Which shape is used to denote the processing of input in flowchart?
                             (i)  Rectangle                               (ii)  Circle

                            (iii)  Triangle                              (iv)  Both (i) & (ii)

                       70   Premium Edition-VI

| 67 68 69 70 71 72 73 74 75 76 77 |