2.5 Programming Languages and IDEs Flashcards
What is machine code?
Binary
What is assembly code?
Low level language, harder to understand.
What is source code?
Python and other languages like C sharp
How does assembly code convert into binary?
Uses translator assembler to convert into binary
How does source code convert into binary?
Uses translator either interpreter or compiler to convert into binary
What is the difference between interpreter and compiler?
a compiler translates an entire program into machine code before execution, creating an executable file, while an interpreter translates and executes code line by line during runtime
Is python interpreter or compiler?
Interpreter
What will happen with a syntax error on both compiler and interpreter ( different for both)?
Interpreter - Will not run with syntax error
Compiler - produces code then tells you at the end
Advantages and disadvantages of compiler?
AD - Faster, no RAM is wasted, kept secret
DISAD - wont run with syntax errors, designed for a specific processor, code needs to be recompiled
Advantages and disadvantages of interpreter?
AD - Easy to write, beginners can learn because it stops when an error occurs
DISAD - Slower to execute, Code is not optimised, source code must be available
What does IDE stand for and what does it do?
Piece of software that provides all the tools required to develop computer programs
What are the features of IDEs?
Why is it beneficial?
Automatic highlighting of syntax errors, easy for the programmer to know where they went wrong
Comment out sections of code, other developers can understand
Coloured keywords in source code - helps to show if you mis-spelt something