Topic 9 - IDEs and Programming Languages Flashcards

1
Q

high-level languages

A

programming languages closer to human language that programmers can easily understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

low-level languages

A

trickier for humans to read and write but easer for a computer to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

examples of high level languages

A
  • Python
  • Java Script
  • C++
  • Scratch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

examples of low-level languages

A
  • machine code : binary
  • assembly code : uses mnemonics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

2 types of translators

A
  • compilers
  • interpreters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IDE long form

A
  • Integrated Development Environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is an IDE?

A
  • a piece of software that provides programmers to develop their program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

features of an IDE

A
  • code editor
  • run time environment
  • explorer window
  • output window
  • error diagnostics and debugging tools
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

run time environment

A
  • allows code to be run quickly within IDE
  • done using start or run button
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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