Adama Science and Technology University Unit 2: Overview of Language Processors System Programming Quiz
16 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of programming languages?

  • To allow the computer to give instructions to the programmer
  • To translate high level language into machine language
  • To enable the programmer to give instructions to the computer in a way that is understandable (correct)
  • To create a mapping between machine language and assembly language
  • Which statement best describes assembly language?

  • It does not need translation as it directly communicates with the computer
  • It requires rewriting for each machine due to differences in machine languages (correct)
  • It is translated into machine language by a program called a compiler
  • It is a high level language used for complex programming tasks
  • What does a compiler do in relation to high level languages?

  • Executes high level language directly without any translation
  • Translates high level language into machine language (correct)
  • Rewrites the program for different machines
  • Converts high level language into assembly language
  • Why were high level languages created?

    <p>To avoid constantly rewriting the program for different machines (C)</p> Signup and view all the answers

    What is the role of an assembler in programming?

    <p>Converts assembly code into machine language (C)</p> Signup and view all the answers

    What problem do language processing activities aim to address?

    <p>Differences in software design and hardware design (C)</p> Signup and view all the answers

    What is the semantic gap in software design?

    <p>The difference between the application domain and execution domain (C)</p> Signup and view all the answers

    What are the consequences of covering a semantic gap by the programmer?

    <p>Large development time, large development effort, poor quality, and less reliable software (D)</p> Signup and view all the answers

    What introduces a new domain between the application domain and execution domain?

    <p>Software implementation using PL (A)</p> Signup and view all the answers

    What is the specification language of the PL domain?

    <p>The programming language itself (D)</p> Signup and view all the answers

    What is the purpose of a language processor?

    <p>To bridge a specification or execution gap (C)</p> Signup and view all the answers

    What does a detranslator do?

    <p>Bridges an execution gap in the reverse direction (B)</p> Signup and view all the answers

    Which version of a language processor is not a language translator?

    <p>Preprocessor (D)</p> Signup and view all the answers

    What does a language migrator bridge?

    <p>Specification gap between two PLs (D)</p> Signup and view all the answers

    What activity can a preprocessor perform?

    <p>Bridging an execution gap that is not language translation (C)</p> Signup and view all the answers

    What introduces new domains in software engineering?

    <p>PL implementation steps (B)</p> Signup and view all the answers

    More Like This

    Assembly Language Basics
    10 questions
    Introduction to Machine and Assembly Language
    40 questions
    Intro to Machine and Assembly Language
    13 questions
    Use Quizgecko on...
    Browser
    Browser