Assembly Languages & Language Translators

8 Questions | Total Attempts: 436

SettingsSettingsSettings
Programming Quizzes & Trivia

Study the topics CPU II: Assembly Languages and Language Translators before trying this test.


Questions and Answers
  • 1. 
    In the Assembly Language instruction LDA X
    • A. 

      LDA is the opcode and X is the operand

    • B. 

      LDA is the operand and X is the opcode

    • C. 

      LDA is a symbolic address

    • D. 

      X is a direct address

  • 2. 
    Assembly language is a Low Level Language because
    • A. 

      It uses symbolic addressing.

    • B. 

      It is very English-like.

    • C. 

      It is a machine-oriented language that requires a good knowledge of machine architecture to code in.

    • D. 

      All of the above

  • 3. 
    Compilers and Interpreters are different because
    • A. 

      Compilers are used for Special Purpose Languages while interpreters are used for General Purpose Langauges

    • B. 

      Compilers are written for translating LLLs and Interpreters for translating HLLs.

    • C. 

      Compilers are written for translating HLLs and Interpreters for translating LLLs.

    • D. 

      Compilers translate a whole program before starting execution while interpreters translate and execute line by line.

  • 4. 
    Programs written in assembly language
    • A. 

      Are not portable

    • B. 

      Make use of mnemonics

    • C. 

      Run faster and require less storage space than those written in HLLs

    • D. 

      All of the above

  • 5. 
    If a HLL program is to be run a number of times
    • A. 

      An interpreter can produce object code that may be saved and run straight away.

    • B. 

      An interpreter would have to translate it each time it is run

    • C. 

      It is best to use an assembler.

    • D. 

      An interpreter would translate it once and then produce object code that can be saved and afterwards run directly (without needing further translation)

  • 6. 
    Advantages of using Assembly Language rather than an HLL include
    • A. 

      Assembly programs are simpler to translate and occupy less storage space.

    • B. 

      Assembly languages are easier to code in.

    • C. 

      Assembly language programs are portable.

    • D. 

      Assembly is simpler to translate and easier to code in.

  • 7. 
    Which of the following is/are used in translating HLLs?
    • A. 

      Compilers only.

    • B. 

      Compilers, Interpreters and Assemblers.

    • C. 

      Compilers and Interpreters.

    • D. 

      Compilers and Assemblers.

  • 8. 
    Assembly language is easier to code in than machine code because
    • A. 

      Assembly language is a High Level Language.

    • B. 

      Each assembly code instruction is equivalent to 1 machine code instruction.

    • C. 

      Machine code is a HLL

    • D. 

      Assembly language makes use of mnemonics

Back to Top Back to top