What are the two main catergories of programming languages [2]
What is high level language [2]
advantages of high level languages [2]
disadvatages of high level language [2]
What is low level language
closer to machine code (binary)
Advantages of low level language (2)
disadvanages of low level language [2]
What is assembly language?
What are assemblers?
what is the relationship between assebly language and machine code
1:1 relationship
- each mnemonic instruction is a single machine code
What are compilers? [3]
What are interpreters [3]
C vs I- starting of traslation
compiler checks source code for errors before translation
interpreter starts translation immediately
C vs I- execution of program
compiler translates entire source code at once before executing
interpreter check each line, then translates, then executes
C vs I- need of source code
compiler dont need source code present for execution of translated code
interpreter must have source code present during execution
C vs I- protection of source code
compilers protects source from extraction
interpreters offer little protection
What is an IDE [3]
Common functions of IDE
Code editor (IDE)
provides a space to write + edit code
- syntax highlighting + line numbering
Run-time environment (IDE)
allows the program to be run and tested withing the IDE- can see hwo it behaves without leaving environment
Translators (IDE)
convert source code to machine code using compiler/interpreter
Error diagnostics (IDE)
Identify and display the errors in the code
-giving details about problem
Auto-completion (IDE)
suggests or completes code elements
- reduces mistakes and saves time
Auto-correction (IDE)
Automatically fixes minor errors (missing brackets/typos)