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

<ul><li><p>1. What program is used to write programs? Fill in one circle. compiler interpreter assembler editor</p><p>2. Match the program on the left with its function on the right.</p><p>3. Which of the following are examples of translators? Tick Compiler Editor Assembler Execution</p><p>4. For each of the following computer languages, tick as to whether theyare compiled, interpreted or assembled languages. Tick once</p><p>Compiled InterpretedPHPC#Python</p><p>5. Using which method will result in programs to run the slowest? Interpreted Compiled Assembled</p><p>A 49</p><p>Compiler</p><p>Assembler</p><p>Interpreter</p><p>Executes one line at a time</p><p>Translates high level sourcecode into machine code</p><p>Translates low level assemblycode into machine code</p><p>1. What program is used to write programs? Fill in one circle.</p><p>its function on the right.</p><p>3. Which of the following are examples of translators? Tick two boxes.</p><p>4. For each of the following computer languages, tick as to whether theyare compiled, interpreted or assembled languages. Tick once per row.</p><p>Assembled</p><p>5. Using which method will result in programs to run the slowest?Assembled</p><p>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.</p><p>____________________________</p><p>7. Complete the text below with the words beneath.</p><p>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.</p><p>High level language compilerSource code object code</p><p>8. Some code is written using mnemonics that correspond withinstructions that the processor can carry out.</p><p>a) What type of code is this? ____________________ code</p><p>b) What program is used to translate this code into machine code?_________________</p><p>Assemblers, Compilers &amp; Interpreters</p><p>Executes one line at a time</p><p>Translates high level sourcecode into machine code</p><p>Translates low level assemblycode into machine code</p><p>[1]</p><p>[3]</p><p>[1]</p><p>[3]</p><p>[1]</p><p>___10</p><p>Syntax highlighting</p><p>compiler source codehigh level language translatesobject code</p><p>linkerexecutable program</p><p>Assembly</p><p>An assembler</p><p>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</p><p>____________________________</p><p>with the words beneath.</p><p>____________________ which is in a____________________ it into</p><p>. Object code is combined with other object code____________________. The result after linking is an</p><p>. This program will have been created for a</p><p>executable program linkertranslates</p><p>8. Some code is written using mnemonics that correspond withinstructions that the processor can carry out.</p><p>a) What type of code is this? ____________________ code</p><p>b) What program is used to translate this code into machine code?_________________</p><p>Assemblers, Compilers &amp; Interpreters - Answers</p><p>[1]</p><p>[7]</p><p>[1]</p><p>[1]</p><p>___10</p><p>Syntax highlighting</p><p>source codetranslates</p><p>Assembly</p><p>An assembler</p><p>169Licensed to St Joseph's Catholic School, Salisbury, #3431435</p></li></ul>

Recommended

View more >