Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 63 - 2612 Digimind C6
P. 63

    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 software tool that translates assembly language into machine
                         language. It enables the computer to understand and execute assembly language instructions.

                         This conversion is essential for executing low-level code efficiently.
                     •   Compiler: A compiler is a program that reads and translates all the instructions written in a
                         high-level language into machine language at once. A major drawback of a compiler is that
                         if there is an error in the program, the programmer only comes to 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.   Vanshika follows a fixed set of steps every morning to get ready for school. Which computer science
                          concept does this best represent?

                            (i)  Program                                   (ii)  Algorithm
                           (iii)  Flowchart                                (iv)  Brainstorming

                                                                                    Algorithm, Flowcharts and Mind Maps  61

| 58 59 60 61 62 63 64 65 66 67 68 |