2.5 Programming Languages and Integrated Development Environments Flashcards

1
Q

High - Level Languages

A

Source code is easy for humans to read and write
Computers need to translate it before it can read or run it

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

Low - Level Languages

A

Tricky for humans to read and write
Computers can run directly
Consists of machine code

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

Example of High - Level Language

A

Python

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

Features of High-Level Language

A
  • One instruction in high - level language = many instruction in machine code
  • Same code can work with many different machines
  • Code is easy to understand, read, write
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Disadvantages of High - Level Language

A

Not much control over what the CPU does so less memory efficient
Must be translated before computer can read it

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

Features of Low - Level Languages

A
  • One instruction assembly code = one instruction machine code
  • Computer does not need to translate code
  • You control exactly what the CPU does so programs are memory efficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disadvantages of Low - Level Languages

A
  • Only works for one type of machine
  • Code is difficult to read and write and modify
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Types of Translators

A
  • Compilers
  • Interpreters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Translator: Compiler

A

Translate high - level code -> machine code
Create an executable file

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

Translator: Interpreter

A

Take each instruction in code and call machine subroutines to carry out that instruction

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

Features of a Compiler

A
  • Translate all the source code at once
  • Only needed once to create executable file
  • Returns list of errors for the entire program once compiling is complete
  • Compiling takes a long time, but program runs quickly afterwards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Features of an Interpreter

A
  • Translates and runs source code one instruction at a time
  • Needed every time you want to run the program
  • Interpreter will find 1 error then stop (used for debugging)
  • Program runs slowly, as code is translated whilst running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

IDE full form

A

Integrated Development Environment

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

Integrated Development Environment

A

Piece of software that provides features to help programmer to develop a program

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

Features of IDEs

A
  • Translator
  • Auto - documentation
  • GUI builder
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Features of IDEs: Translators

A

Allows source code to be understood by computer

17
Q

Features of IDEs: Auto-Documentation

A

Maintains the program
Extracts certain features of a program (e.g. names of variables, names of sub programs, comments) and stores in separate document to give summary of code

18
Q

Features of IDEs: GUI builder

A

Helps programmer design a UI graphically instead of using source code
Can drag and drop objects and customise them