0
0
Intro to Computingfundamentals~10 mins

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

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify which language is high-level.

Intro to Computing
language = "Python"
if language == [1]:
    print("This is a high-level language.")
Drag options to blanks, or click blank then click option'
ABinary
BPython
CMachine code
DAssembly
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Assembly or Machine code as high-level languages.
2fill in blank
medium

Complete the code to check if a language is low-level.

Intro to Computing
language = "Assembly"
if language == [1]:
    print("This is a low-level language.")
Drag options to blanks, or click blank then click option'
APython
BHTML
CAssembly
DJavaScript
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Assembly with high-level languages like Python or JavaScript.
3fill in blank
hard

Fix the error in the code to correctly identify a high-level language.

Intro to Computing
language = "JavaScript"
if language == [1]:
    print("High-level language detected.")
Drag options to blanks, or click blank then click option'
AAssembly
BJava
CC++
DJavaScript
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '==' in the if condition.
4fill in blank
hard

Fill both blanks to create a dictionary mapping languages to their level.

Intro to Computing
languages = {"Python": [1], "Assembly": [2]
Drag options to blanks, or click blank then click option'
A"high-level"
B"low-level"
C"middle-level"
D"machine-level"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the levels of Python and Assembly.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension filtering high-level languages.

Intro to Computing
high_level = {lang: level for lang, level in languages.items() if level == [1] and lang != [2] and lang != [3]
Drag options to blanks, or click blank then click option'
A"low-level"
B"Assembly"
C"Machine code"
D"high-level"
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'low-level' instead of 'high-level' in the filter.