





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






define attribute - ANSvalue held by an object/link to variable define instantiation - ANScreating an object/a new instance of a class define method - ANSan action an object performs/link to procedure/function define object - ANSan instance of a class define opcode - ANSspecifies the instruction to be performed from list of mnemonics define operand - ANSholds a value which is related to the data on which the instruction is to be performed discuss the use of OOP and procedural programming to create and manipulate queue data structures - AO1 - ANS- OOP defines an object as an independent entity
discuss the use of OOP and procedural programming to create and manipulate queue data structures - AO2 - ANS- OOP allows for an object to be created from the queue
what is immediate addressing? - ANSthe operand is the actual value upon which the the instruction is to be performed, represented in binary what is indexed addressing? - ANSan index register is used, which stores a certain value. the address of the data is determined by adding the operand to the index register. this is necessary to add an offset in order to access data stored contiguously in memory such as in arrays what is indirect addressing? - ANSthe operand gives the address of a data register which holds another address, where the data is located what is information hiding? - ANSwhere a class cannot directly access the attributes of another class when they are declared private what is inheritance? - ANSthe subclass (or derived class) gains all of the public methods and attributes of the superclass (or parent class) and can have its own additional properties. this allows you to modify and add extra functionality to a class (polymorphism). by using inheritance with a logical hierarchy of classes, a project can model the real world more closely. this makes the coding more modular allows programmers to effectively reuse certain components and properties while making some changes what is object-oriented programming? - ANSa programming paradigm which uses classes to model real-world objects. a class is a blueprint design/template for an object which contains public methods, private attributes, and public properties
focuses on making programs that are reusable and easy to update and maintain. therefore is applicable to certain types of problems which use lots of reusable components or similar characteristics e.g Python, Delphi, Java what is overloading? - ANSpassing in different parameters into a method e.g. different number or different type what is overriding? - ANSredefining a method within a subclass and altering the code so that it functions differently and produces a different output what is polymorphism? - ANSobjects can behave/be processed differently depending on their class. this can result in the same method producing different outputs depending on the object involved e.g. a child class can have modified methods to gain extra functionality what is procedural programming? - ANSa type of imperative programming which uses a sequence of instructions which may be contained within procedures. these instructions are carried out in a step by step manner can be applied to a wide range of problems and is relatively easy to write and interpret e.g. Pascal. Python, Logo