Search Header Logo
Y11-02-P9+10 Low-level and high-level languages , Translators

Y11-02-P9+10 Low-level and high-level languages , Translators

Assessment

Presentation

Computers

9th - 10th Grade

Practice Problem

Hard

Created by

Kenneth Li

Used 1+ times

FREE Resource

25 Slides • 22 Questions

1

media

2

media

3

media

4

media

5

Multiple Choice

Which of the following statements about binary patterns in memory is correct?

1

They represent instructions that are fetched, decoded, and executed by the CPU.

2

They are only used for storing images.

3

They are not related to program execution.

4

They are used exclusively for network communication.

6

Fill in the Blank

An instruction set is all the different instructions a microprocessor (CPU) can ___ .

7

media

8

Multiple Choice

Why it is challenging for humans to understand programs written in machine code.

1
Machine code is a high-level language that simplifies programming for humans.
2
Humans find machine code intuitive because it uses familiar symbols and words.
3
It is easy for humans to understand programs written in machine code due to its clear structure.
4

It is challenging for humans to understand programs written in machine code because it is binary.

9

media

10

media

11

media

12

Fill in the Blank

The following assembly code use ___ (short abbreviation) in the instruction.
MOV x0, #12
MOV x1, #8
ADD x2, x0, x1

13

media

14

Multiple Select

Define ‘low-level’ programming language.

1

Both assembly code and machine are low-level programming language.

2
A low-level programming language is primarily used for web development and scripting tasks.
3
A low-level programming language is one that operates independently of hardware and machine code.
4

A low-level programming language is one that is closely related to machine code.

15

media

16

Multiple Select

Which of the following are features of a high-level programming language?

1

Requires the programmer to understand hardware details

2

Uses English-like statements

3

Requires a translator to convert source code to machine code

4

Examples include Python and Java

17

media

18

Fill in the Blank

Question image

What does the given Java program output?

.

19

media

20

Multiple Choice

Why does each microprocessor require its own unique instruction set?

1
A unique instruction set is only needed for high-performance computing.
2
Each microprocessor requires its own unique instruction set to match its specific architecture and optimize performance.
3
Microprocessors share the same instruction set to simplify programming.
4
Each microprocessor uses a universal instruction set for compatibility.

21

media

22

Multiple Select

Which of the following are features of low-level programming languages?

1

Mnemonics

2

Microprocessor specific

3

One line generates multiple instructions in machine code

4

No strings or real numbers, just binary

23

media

24

Fill in the Blank

Fill in the blank: In high-level programming languages, English-like keywords make it easier to ___ and understand source code.

25

media

26

Multiple Select

Select all tasks that are best suited for high-level programming languages.

1

Operating systems GUI

2

GPU device driver

3

Games

4

Office productivity software

27

Multiple Choice

Which of the following tasks is best suited for a low-level programming language?

1

Web browser

2

OS kernel

3

Office productivity software

4

Flight simulator

28

Open Ended

Describe one key difference between writing a program in a low-level language and a high-level language.

29

media

30

Multiple Choice

Explain why computers need source code translators to execute programs written by humans.

1
Source code translators are used to enhance the speed of program execution on computers.
2
Computers can directly execute human-written programs without any translation.
3

To convert programming languages into machine code that they can execute.

4
High-level programming languages are already in machine code format for computers to use.

31

media

32

Multiple Select

Which type of translator is required for high-level languages?

1

Assembler

2

Compiler

3

Interpreter

4

Linker

33

Fill in the Blank

A translator that converts assembly code into machine code is called an ___.

34

media

35

Multiple Choice

What is the main purpose of a translator in computer programming?

1

To convert source code into machine code

2

To create user interfaces

3

To store data

4

To manage memory

36

media

37

media

38

media

Interpreter

​https://onlinegdb.com/NttUTHjx-

media

Compiler

​https://onlinegdb.com/sKBsOwrwb

39

Multiple Select

Which of the following are considerations when choosing between a compiler and an interpreter?

1

Speed

2

Portability

3

Error handling

4

Secrecy

40

media

41

media

42

Fill in the Blank

A low-level language sits close to the hardware and is either binary machine code or ___ code.

43

Multiple Choice

Which of the following best describes the main difference between high-level and low-level programming languages?

1

High-level languages are closer to human language, while low-level languages are closer to machine code.

2

High-level languages are only used for web development, while low-level languages are used for hardware programming.

3

Low-level languages are easier to learn than high-level languages.

4

High-level languages do not require translators, while low-level languages do.

44

Multiple Select

Which of the following statements about compiled and interpreted languages are correct?

1

Compiled languages execute quicker and are more secure

2

Interpreted languages are quicker to develop in and are more portable

3

Compiled languages are always easier to debug

4

Interpreted languages always produce faster code

45

Fill in the Blank

High-level and low-level language translators are essential for converting code written by humans into machine-readable instructions. Fill in the blank: The translation process of converting source code into machine code, all lines together, is called ___.

46

media

47

media
media

Show answer

Auto Play

Slide 1 / 47

SLIDE