Flashcards
1.5 Types of programming language
Cards in this deck (17)
- 1What is meant by assembly languageA low level language closely related to machine code. It uses mnemonics for instructions. Specific to the type of processor. One line of assembly is equivalent to one line of machine code. Assembler used to compile code.
- 2What is an attributeData recorded as a variable associated with an object.
- 3What is a classA template defining the attributes and methods that can be used to create a type of data known as an object
- 4Direct addressingOperand stores the memory address of the value to be operated on by the operator.
- 5EncapsulationA method of maintaining data integrity by only allowing class methods to access data in an object's attributes
- 6Immediate addressingOperand is the value to be operated on by the operator
- 7Indexed addressingAddress of the operand required is calculated by adding a constant from the index register to the address in the instruction
- 8Indirect addressingOperand stores the address of the location holding the memory address of the required data
- 9InheritanceThe concept of subclasses inheriting the methods and attributes of its parent class (superclass)
- 10MethodsA program subroutine that represents an action an object can perform
- 11Object orientated languagesprogramming languages where the code is made of units called objects, which are instances of a class. Objects have their own attributes and behaviours and can interact with each other
- 12ObjectsAn instance of a class. The behaviour of this data item depends on how its attributes were defined
- 13PolymorphismObjects of different classes can use the same method to perform an action
- 14Procedural languagesA high level language where statements are grouped into self-contained blocks known as functions and procedures. They have build in data types and data structures
- 15Programming paradigmsA style of computation and programming, chosen according to the problem at hand
- 16Advantages of OOPHigh level of reusability
Encapsulation makes code reliable
Fewer vulnerabilities
Easy to maintain and update
Classes can be used as a black box which saves time and effort - 17Disadvantages of OOPRequires an alternative style of thinking
Not suited to all types of problems
Generally unsuitable for smaller problems
Information
- Description
- Cambridge Computing SLR 1 Flashcards on 1.5 Types of programming language, created by Alan Szelast on 10/01/2022.
- Created by
- Alan Szelast
- Views
- 3
- Rating