Principles of Programming Flashcards
Addressing
refers to assigning/retrieving data from memory locations
Direct Addressing
tells CPU the addressing that contains necessary data, limiting the amount of addressable memory
Immediate Addressing
value to be loaded is included as part of the instruction, not in memory
Indexed Addressing
address is accessed and modified by addition to numbers in the index together, increasing the amount of addressable memory
Indirect Addressing
contains address that contains the address where memory is stored, allowing easy relocation
Assembler
translates assembly code into machine code
Assembly Language
a low-level, second-generation programming language designed for a specific type of processor that can be converted to machine code using an assembler, written in mnemonic codes
Comments in Assembly Language
help people understand the code
Labels in Assembly Language
highest item, identifies sections of code
Operands in Assembly Language
what the command will be carried out on
Operations in Assembly Language
command to be carried out
Attribute
data in an object
Backus-Naur Form
used by the developers of programming languages to specify the syntax rules of a language
Class
a template used to create objects of that class
Conjunction
here digits are anded
CSS
Cascading Style Sheets
designs the website’s visual style
De Facto Standard
a standard that has no formal approval, but is generally done
Derived Class
specialised class based on a superclass with attributes and methods, inheriting all the attitudes and methods of the superclass
Disjunction
where digits are or’d
Dynamic Typing
there is no need to specify variable types
Encapsulation
hiding attributes and objects so they can only be accessed or changed using methods defined for the class, therefore maintaining data integrity and avoiding errors
Event
signal generated by an external action, eg mouse movement/keystroke to the program so it can respond to events by event handling
Event-Driven Programming
consists of a series of event handlers that runs relevant code when an event occurs
Event Handling
subroutines that respond to an event