A49 Assemblers Compilers and Interpreters

Download A49 Assemblers Compilers and Interpreters

Post on 11-Jul-2016

5 views

Category:

Documents

4 download

DESCRIPTION

A49 Assemblers Compilers and Interpreters

TRANSCRIPT

  • 1. What program is used to write programs? Fill in one circle. compiler interpreter assembler editor

    2. Match the program on the left with its function on the right.

    3. Which of the following are examples of translators? Tick Compiler Editor Assembler Execution

    4. For each of the following computer languages, tick as to whether theyare compiled, interpreted or assembled languages. Tick once

    Compiled InterpretedPHPC#Python

    5. Using which method will result in programs to run the slowest? Interpreted Compiled Assembled

    A 49

    Compiler

    Assembler

    Interpreter

    Executes one line at a time

    Translates high level sourcecode into machine code

    Translates low level assemblycode into machine code

    1. What program is used to write programs? Fill in one circle.

    its function on the right.

    3. Which of the following are examples of translators? Tick two boxes.

    4. For each of the following computer languages, tick as to whether theyare compiled, interpreted or assembled languages. Tick once per row.

    Assembled

    5. Using which method will result in programs to run the slowest?Assembled

    6. What feature in an editor makes text different colours depending onwhat feature of a language it is. E.g. one colour for variables and anothercolour for keywords.

    ____________________________

    7. Complete the text below with the words beneath.

    A ____________________ takes ________________________________________ and ________________________________________. Object code is combined with other object codeand libraries using a ________________________________________. This program will have been created for aspecific CPU and architecture.

    High level language compilerSource code object code

    8. Some code is written using mnemonics that correspond withinstructions that the processor can carry out.

    a) What type of code is this? ____________________ code

    b) What program is used to translate this code into machine code?_________________

    Assemblers, Compilers & Interpreters

    Executes one line at a time

    Translates high level sourcecode into machine code

    Translates low level assemblycode into machine code

    [1]

    [3]

    [1]

    [3]

    [1]

    ___10

    Syntax highlighting

    compiler source codehigh level language translatesobject code

    linkerexecutable program

    Assembly

    An assembler

    6. What feature in an editor makes text different colours depending onwhat feature of a language it is. E.g. one colour for variables and another

    ____________________________

    with the words beneath.

    ____________________ which is in a____________________ it into

    . Object code is combined with other object code____________________. The result after linking is an

    . This program will have been created for a

    executable program linkertranslates

    8. Some code is written using mnemonics that correspond withinstructions that the processor can carry out.

    a) What type of code is this? ____________________ code

    b) What program is used to translate this code into machine code?_________________

    Assemblers, Compilers & Interpreters - Answers

    [1]

    [7]

    [1]

    [1]

    ___10

    Syntax highlighting

    source codetranslates

    Assembly

    An assembler

    169Licensed to St Joseph's Catholic School, Salisbury, #3431435