Topic 9 - IDEs and Programming Languages Flashcards
1
Q
high-level languages
A
programming languages closer to human language that programmers can easily understand
2
Q
low-level languages
A
trickier for humans to read and write but easer for a computer to run
3
Q
examples of high level languages
A
- Python
- Java Script
- C++
- Scratch
4
Q
examples of low-level languages
A
- machine code : binary
- assembly code : uses mnemonics
5
Q
pros of high-level languages
( opposite for cons of low-level languages )
A
- same code works for many different processes and machines
- code is easy to read, understand and modify
- programmer can easily store data in different structures
- one line of high level code represents many instructions of machine code
6
Q
pros of low-level languages
( opposite for cons of high-level languages )
A
- commands in machine code can be executed without need of translator
- you control what the CPU does and how it uses memory
- more memory efficient and faster
7
Q
why do we need translators?
A
- computers only understand instructions in binary machine code
- high level languages need to be translated to machine code
8
Q
2 types of translators
A
- compilers
- interpreters
9
Q
compiler
A
- translates all source code at same time
- creates an executable file
- returns a list of errors once compiling is complete
- only needed once to create executable file
10
Q
interpreter
A
- translates and runs source code 1 line/instruction at a time
- doesn’t create executable file
- returns first error and then stops which is useful for debugging
- needed every time you want to run
11
Q
IDE long form
A
- Integrated Development Environment
12
Q
what is an IDE?
A
- a piece of software that provides programmers to develop their program
13
Q
features of an IDE
A
- code editor
- run time environment
- explorer window
- output window
- error diagnostics and debugging tools
14
Q
code editor
A
- main part of IDE, where code is written
- colour coding for different elements of code
- auto correct, auto indentation and auto completer
15
Q
run time environment
A
- allows code to be run quickly within IDE
- done using start or run button
16
Q
explorer window
A
- helps navigate through programs
17
Q
output window
A
- shows the output from a program when it is run
18
Q
error diagnostics
A
- helps to find errors in program
- tells location of error and suggests ways to fix it