1.4 Flashcards
1
Q
Low Level Languages
A
- Unique for each CPU Type
- Each has it’s own Assembler
- Generates one machine code instruction per 1 assembly instruction
EG Assembly
2
Q
Low Level Languages Uses
A
- Device Drivers
- Embedded Systems
- Custom Hardware
3
Q
Low Level Advantage
A
- Small Storage Requirements (Embedded Systems)
- Fast Execution Speed (Fighter Jet Eject System)
4
Q
High Level Languages
A
- Uses Human-like commands (English)
- Generates many machine code instruction per 1 line of code
EG Java
5
Q
High Level Languages Advantages
A
- Easier to learn/program
- Identifiers can be long and meaningful (classes, variables, methods)
- They allow the use of powerful in-built commands that perform quite complex tasks e.g. random( )
- Allows creation of modules that can be re-used and accessed by other parts of the program
6
Q
High Level Languages Use
A
General applications
EG Payroll
7
Q
Procedural Programming Paradigms
A
- The programmer defines how they want the program to run
- Based on algorithms
- Obey (ordered) instructions
- Carrying out actions / calculations etc.
8
Q
Procedural Paradigm Advatages
A
- Logical Step-by-step process for solving a problem
- Allows the programmer a way to define precisely each step when performing a task
- Close control over the operation of hardware
- Similar operations may be carried out at varying stages of the program execution
9
Q
Event Driven Programming Paradigms
A
- High level programming language
- Waits for a user interaction (Button Click, Keyboard Press)
- Particularly suitable for developing GUI and Games
- Programmer must think of events and triggers
10
Q
Visual Programming Paradigms
A
- High level programming language (EG Scratch: Also Event-Driven)
- Manipulate program constructs graphically rather than textually (EG Drag and drop blocks of code)
- Easier to learn
- More intuitive because visual (no syntax)
- Very good help systems
11
Q
Visual Paradigms Disadvantages
A
- Limited Screen Space
- Not ideal for larger programs
- Takes longer than typing for experienced programmers
12
Q
Markup Programming Paradigms
A
- Includes HTML, XML (Microsoft Word: .docx (Uses XML))
- Used to add meaning to text (link, bold etc)
- Changes the format/display of the text
- HTML (HyperText Markup Language)
– Commands such as <h1> or <href>
-- A start tag and end tag <h1>My Heading</h1></href> - XML (eXtensible Markup Language)
–Structuring and marking up data for storage, not display
–Developer can create own tags - Often combined with languages such as Javascript
13
Q
Class
A
- Is a template for creating objects
- An object is built from a class
- Can have many instances of the same class
14
Q
Object
A
- Is an instance of a class
- Contains both attributes and methods
15
Q
Method
A
- A program routine within an object to carry out a particular task on an object
- Can be inherited from a superclass (Parent)