Assembly Languages & Language Translators

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Marlenegalea
M
Marlenegalea
Community Contributor
Quizzes Created: 16 | Total Attempts: 112,701
| Attempts: 525
SettingsSettings
Please wait...
  • 1/8 Questions

    In the Assembly Language instruction LDA X

    • LDA is the opcode and X is the operand
    • LDA is the operand and X is the opcode
    • LDA is a symbolic address
    • X is a direct address
Please wait...
Programming Quizzes & Trivia
About This Quiz

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


Quiz Preview

  • 2. 

    Assembly language is a Low Level Language because

    • It uses symbolic addressing.

    • It is very English-like.

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

    • All of the above

    Correct Answer
    A. It is a machine-oriented language that requires a good knowledge of machine architecture to code in.
    Explanation
    Assembly language is considered a Low Level Language because it is a machine-oriented language that requires a good knowledge of machine architecture to code in. Unlike high-level languages, assembly language is closely related to the hardware and provides direct access to the computer's memory and registers. It uses mnemonic codes and symbolic addressing to represent machine instructions, making it more readable than machine language but still requiring an understanding of the underlying hardware. Therefore, the correct answer is "It is a machine-oriented language that requires a good knowledge of machine architecture to code in."

    Rate this question:

  • 3. 

    Compilers and Interpreters are different because

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

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

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

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

    Correct Answer
    A. Compilers translate a whole program before starting execution while interpreters translate and execute line by line.
    Explanation
    The correct answer states that compilers translate a whole program before starting execution while interpreters translate and execute line by line. This is a key difference between compilers and interpreters. Compilers analyze the entire source code and generate an executable file, which can be executed independently. On the other hand, interpreters analyze and execute the source code line by line, without generating an executable file beforehand. This fundamental difference in their approach to translating and executing code is what sets compilers and interpreters apart.

    Rate this question:

  • 4. 

    Programs written in assembly language

    • Are not portable

    • Make use of mnemonics

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

    • All of the above

    Correct Answer
    A. All of the above
    Explanation
    Programs written in assembly language are not portable because they are specific to a particular computer architecture and cannot be easily executed on different systems. They make use of mnemonics, which are human-readable representations of machine instructions, making them easier to understand and write. Additionally, programs written in assembly language generally run faster and require less storage space compared to those written in high-level languages (HLLs) because they directly interact with the hardware of the computer. Therefore, the correct answer is "all of the above."

    Rate this question:

  • 5. 

    If a HLL program is to be run a number of times

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

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

    • It is best to use an assembler.

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

    Correct Answer
    A. An interpreter would have to translate it each time it is run
    Explanation
    The correct answer is that an interpreter would have to translate the program each time it is run. This means that the interpreter would need to go through the process of analyzing and executing the code every time it is executed, which can be time-consuming and inefficient. On the other hand, if the interpreter translates the program once and produces object code that can be saved, it can be run directly without needing further translation, saving time and resources. Therefore, it is more efficient to use an interpreter that can produce object code that can be saved and run straight away.

    Rate this question:

  • 6. 

    Advantages of using Assembly Language rather than an HLL include

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

    • Assembly languages are easier to code in.

    • Assembly language programs are portable.

    • Assembly is simpler to translate and easier to code in.

    Correct Answer
    A. Assembly programs are simpler to translate and occupy less storage space.
    Explanation
    Assembly language is a low-level programming language that is closely related to the machine language of a specific computer architecture. It uses mnemonic codes to represent machine instructions, making it easier for programmers to understand and write code. Compared to high-level languages (HLL), assembly language programs are simpler to translate into machine code because they have a one-to-one correspondence with the machine instructions. Additionally, assembly programs tend to occupy less storage space since they do not require a compiler or interpreter, resulting in more efficient memory usage.

    Rate this question:

  • 7. 

    Which of the following is/are used in translating HLLs?

    • Compilers only.

    • Compilers, Interpreters and Assemblers.

    • Compilers and Interpreters.

    • Compilers and Assemblers.

    Correct Answer
    A. Compilers and Interpreters.
    Explanation
    Compilers and interpreters are both used in translating High-Level Languages (HLLs). Compilers translate the entire program into machine code before execution, while interpreters translate and execute the program line by line. Assemblers, on the other hand, are used to translate Assembly language into machine code. Therefore, the correct answer is "Compilers and Interpreters."

    Rate this question:

  • 8. 

    Assembly language is easier to code in than machine code because

    • Assembly language is a High Level Language.

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

    • Machine code is a HLL

    • Assembly language makes use of mnemonics

    Correct Answer
    A. Assembly language makes use of mnemonics
    Explanation
    Assembly language is easier to code in than machine code because it makes use of mnemonics. Mnemonics are symbolic representations of machine code instructions that are easier for humans to understand and remember. By using mnemonics, programmers can write code in assembly language that is more readable and intuitive compared to directly writing machine code instructions. This simplifies the coding process and reduces the chances of errors, making assembly language a more user-friendly option compared to machine code.

    Rate this question:

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 08, 2009
    Quiz Created by
    Marlenegalea
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.