1/3
Looks like no tags are added yet.
What categories are programming languages divided into? Explain each one (2)
low-level languages, e.g. assembly language, machine code (binary) - is translated using an assembler. One statement translates into one binary instruction.
high-level languages, e.g. python, C# - independent of hardware. Translated using a compiler / interpreter. One statement translates to numerous binary instructions.
advantages of high-level languages (3)
easy to learn and faster to code in
easy to read and understand
high-level languages are developed to make coding very quick and easy
advantages of low-level languages (3)
gives programmer complete control over components in embedded systems - can be used to control and manipulate specific hardware.
Very efficient code can be written for particular processors
occupies less memory and executes faster
what are the different types of translators (3) and what do they do?
assemblers - convert assembly language into machine code (binary)
compilers - translate programs written in high-level languages into machine code. The translation is complex, as one instruction translates to many machine code instructions.
interpreters - also translate high-level languages into machine code. interpreters execute programs directly. Translates each instruction to a sequence of calls to several subroutines compiled into machine code