0
0
Intro to Computingfundamentals~20 mins

High-level vs low-level languages in Intro to Computing - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Language Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Language Abstraction Levels

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

AHigh-level languages run faster than low-level languages because they are simpler.
BHigh-level languages are closer to human language and easier to read, while low-level languages are closer to machine code and harder to read.
CLow-level languages are only used for web development, while high-level languages are used for system programming.
DLow-level languages do not require a compiler, but high-level languages always do.
Attempts:
2 left
💡 Hint

Think about how easy it is for humans to understand the code.

trace
intermediate
2:00remaining
Output of Assembly vs Python Code

Consider the following two code snippets. What will be the output of each?

Python code:

print('Hello, World!')

Assembly code (conceptual):

MOV AH, 09h
LEA DX, message
INT 21h
message DB 'Hello, World!$'
ABoth print 'Hello, World!' to the screen.
BPython prints 'Hello, World!', assembly code causes an error.
CNeither prints anything because both need a compiler.
DPython prints nothing, assembly prints 'Hello, World!'.
Attempts:
2 left
💡 Hint

Think about what each code snippet is designed to do.

identification
advanced
2:00remaining
Identifying Language Type from Code Snippet

Look at the following code snippet and identify whether it is written in a high-level or low-level language:

LOAD R1, #5
ADD R1, R2
STORE R1, 1000h
ALow-level language
BHigh-level language
CMarkup language
DScripting language
Attempts:
2 left
💡 Hint

Notice the use of registers and memory addresses.

Comparison
advanced
2:00remaining
Comparing Execution Speed and Ease of Use

Which of the following correctly compares high-level and low-level languages in terms of execution speed and ease of use?

ABoth have the same speed and ease of use.
BHigh-level languages are faster and easier to use; low-level languages are slower and harder to use.
CHigh-level languages are slower but easier to use; low-level languages are faster but harder to use.
DLow-level languages are easier to use but slower; high-level languages are harder to use but faster.
Attempts:
2 left
💡 Hint

Think about what happens when code is closer to machine instructions.

🚀 Application
expert
3:00remaining
Choosing Language for a Task

You need to write a program that controls a robot's hardware directly for precise timing and performance. Which type of language should you choose and why?

AHigh-level language, because it is easier to write and debug.
BScripting language, because it runs faster than compiled languages.
CMarkup language, because it structures the robot's commands clearly.
DLow-level language, because it allows direct hardware control and better performance.
Attempts:
2 left
💡 Hint

Consider the need for precise control and speed.