1.2 Software And Development Flashcards
The need for operating systems
The OS’s job is to control and communicate with the computers hardware. Its main functions are memory management, peripheral management, multitasking and user management.
Key parts of procedural programming
- functions and procedures
- selection, sequence and iteration
Key parts of object oriented programming
- objects and classes
- supports well structured code and reusability
Modes of addressing memory
Intermediate
Direct
Indirect
Indexed
Intermediate memory addressing
Loads the memory address that is being loaded
Direct memory addressing
Does exactly what it should do and loads the contents inside the memory address that is being loaded.
Indirect memory addressing
Uses the contents inside the memory address to create another memory address and then loads the contents of that memory address
Indexed memory addressing
Uses the index and adds the index to the memory address before reading from it and loading the contents
What is a programming paradigm?
Different styles of programming.
Three main ones:
- assembly language
- procedural programming
- object oriented programming
The need for different programming paradigms
Some pieces of code are easier to write with different kinds of programming paradigms
Class
A class is a template or blueprint for an object
Instantiation
The process creating an object from a class
Encapsulation
Bundling data and methods that work on the data within one unit
Attributes
Characteristic of an object
Methods
Functions defined inside the body of a class