Flashcards
1.2.4 Types of programming language
Cards in this deck (32)
- 1Programming paradigm,An approach to solve problems by using programming languages
- 2Assembly language,use mnemonics, instructions vary for each processor, controlled so less memory consumption higher efficiency.
- 3Procedural paradigm,instructions are given in sequence, can be grouped into subroutines
- 4Object-orientated paradigm,solution is represented by objects
- 5Functional paradigm,the problem is built up through a collection of functions, some can call other functions
- 6Declarative paradigm,the characteristics of a solution are stated, rather than stating how the problem is solved
- 7What does machine code use to represent instructions and data,Uses binary sequences to represent instructions (opcodes) and data (operand)
- 8ADD,adds
- 9SUB,subtracts
- 10STA,stores the value of the accumulator to memory
- 11LDA,Loads value from memory to accumulator
- 12BRA,Branches always
- 13BRZ,Branches if the value is 0
- 14BRP,Branches if the value is positive
- 15INP,input
- 16OUT,outputs
- 17HLT,Ends program
- 18DAT,data location
- 19Memory addressing,Different ways of referring to locations
- 20Symbolic addressing,refers to memory locations using names
- 21Direct addressing,the address given is the locations of the data used
- 22Indirect addressing,the address given is the memory location that holds the location of the data
- 23Indexed addressing,the value given is added to the value stored in the index register to give the memory location
- 24Immediate addressing,the address given is the required value, not the location
- 25Classes,template used to define an object and specifies its attributes and methods
- 26Object,an instance of a class
- 27Attribute,Variables contained within and associated to an object
- 28Method,sub-routine associated with an object
- 29Encapsulation,Private attributes can only be amended through public methods, prevents it being directly manipulated
- 30Inheritance,A class that inherit the methods and attributes of a parent class
- 31Polymorphism,objects of different classes that have the same method can be treated the same way
- 32Overriding,A subclass has a method of the same name as a method in the parent class, the subclasss method takes precedence
Information
- Description
- A level Computer Science Flashcards on 1.2.4 Types of programming language, created by Ben Rawlins on 09/04/2024.
- Created by
- Ben Rawlins
- Views
- 2
- Rating
More on Programming Language Types and Generations