2.5- Languages and IDEs

studied byStudied by 1 person
5.0(1)
Get a hint
Hint

Low Level Language

1 / 24

flashcard set

Earn XP

Description and Tags

25 Terms

1

Low Level Language

A language that is close to what a CPU would actually do and written for specific hardware

New cards
2

Examples of low level language

  • machine code

  • assemble language

New cards
3

Machine Code

the lowest level programming language consisting of 0s and 1s. CPUs can directly process it as a string of CPU instructions. 1st generation

New cards
4

pros of machine code

  • more flexibility with commands

  • commands can be directly executed without a translator

  • faster to process as CPU doesn’t have to translate

  • more memory efficient

New cards
5

cons of machine code

  • usually written for 1 type of machine or processor- wont work on others

  • very hard for programmers to read and understand

  • programmer requires knowledge of internal structure of CPU

New cards
6

Assembly Language

2nd generation language that uses mnemonics to form instructions. Each mnemonic corresponds with a machine code instruction.

New cards
7

pros of assembly language

  • much easier to read and understand that machine code

  • more accessible to programmers

New cards
8

cons of assembly language

  • not as easy to use as high level languages

  • requires translation

  • requires an assembler

New cards
9

high level languages

3rd gen programming languages that are easy for humans to understand

New cards
10

examples of high level languages

  • python

  • java

  • C++

New cards
11

pros of high level languages

  • one instruction of high level=many instructions of machine code

  • portable- same code works for many different machines and processers

  • easy for programmer to store data (e.g. in arrays) without knowledge of memory structure

  • code is close to english so is easy to read and understand

New cards
12

cons of high level languages

  • must be translated for computer to understand

  • programs are less memory efficient and slower to execute

New cards
13

translator

a program that allows source code to be understood and executed by the computer

New cards
14

types of translator

  • compiler

  • interpreter

New cards
15

compiler

type of translator that translates all of the source code at once and creates one executable file

New cards
16

pros of compiler

  • only required once to create executable file

  • returns a list of errors for the entire program once compiling is complete

  • once compiled program runs quickly

New cards
17

cons of compiler

  • compiling can take a long time, so program isn’t immediately executed

  • not good for debugging

New cards
18

interpreter

translates and runs the source code of one instruction at a time

New cards
19

pros of interpreters

  • will return first error it finds and then stop-good for debugging

  • more immediate execution of the program

New cards
20

cons of interpreters

  • doesn’t create an executable file

  • needed every time you want to run the program

  • programs will run more slowly

New cards
21

IDE

Integrated Development Environment- A piece of software to help a programmer develop programs

New cards
22

features of IDEs

  • code editor

  • run-time environment

  • error diagnostics and debugging tools

  • breakpoints

  • translator

  • GUI

New cards
23

Code Editor

  • where code is written

  • will usually have:

    • line numbering

    • colour coding

    • auto-correct

    • auto-indentation

    • auto-complete

New cards
24

runtime environment

allows code to be run quickly within IDEs- done using start/run button.

can help identify logic errors as programmer can see which part of code is running when errors occur.

New cards
25

GUI

helps programmer design a user interface by building it up graphically rather than having to design it using source code.

New cards

Explore top notes

note Note
studied byStudied by 42 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(2)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 74 people
... ago
5.0(1)
note Note
studied byStudied by 119 people
... ago
5.0(3)
note Note
studied byStudied by 58 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (55)
studied byStudied by 11 people
... ago
4.0(1)
flashcards Flashcard (52)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 27 people
... ago
5.0(2)
flashcards Flashcard (92)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (42)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (94)
studied byStudied by 33 people
... ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (101)
studied byStudied by 22 people
... ago
5.0(1)
robot