Chapter 10 - Programming language translators

Chapter 10 - Programming language translators

Assessment

Flashcard

Created by

Natasha Stephenson

Computers

11th Grade

Hard

Student preview

quiz-placeholder

27 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the role of an assembler in programming language translation?

Back

An assembler translates assembly code into machine code or intermediate bytecode.

2.

FLASHCARD QUESTION

Front

What is the difference between source code and object code?

Back

Source code is the code written by the programmer in a high-level or assembly language, while object code is the machine code output produced after translation by a compiler or assembler.

3.

FLASHCARD QUESTION

Front

Which of the following best describes a compiler?

Back

Translates high-level language into machine code

4.

FLASHCARD QUESTION

Front

Before an assembly code program can be executed, it must be translated into the equivalent machine code, or an intermediate form called ________.

Back

bytecode

5.

FLASHCARD QUESTION

Front

The input to the assembler is called the ________ and the output (machine code) is the ________.

Back

source code, object code

6.

FLASHCARD QUESTION

Front

Describe the stages of compilation: lexical analysis, syntax analysis, code generation and optimisation.

Back

The stages of compilation are lexical analysis (breaking code into tokens), syntax analysis (parsing tokens into grammatical structure), code generation (producing machine code), and optimisation (improving code efficiency).

7.

FLASHCARD QUESTION

Front

What are the three main stages shown in the diagram?

Back

Input (Source code), Process (Compile), Output (Object code)

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?