IB Computer Science Option D - OOP (SL)

Guess the terms of these definitions
Source: Core Computer Science
NB: In addition to remembering OOP definitions, make sure you are practising Java!!
Quiz by KRQC2000
Rate:
Last updated: May 6, 2018
You have not attempted this quiz yet.
First submittedApril 26, 2018
Times taken142
Average score38.1%
Report this quizReport
7:00
Enter answer here
0
 / 42 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
Definition
Term
D.1 - Objects as a Programming Concept
Abstract entity that has data (properties and attributes) and can perform actions/methods.
Object
"General blueprint"/Template for creating above. Example: Door
Class
Specific objects of above. Example: Screen door
Instantiation
Represents classes as three compartments: Name, data/variables, actions/methods. Also depicts connections between multiple classes.
UML class diagram
Breaking down problem into related objects in order to reduce complexity
Decomposition
One object depends on other objects, cannot function otherwise; this increases maintenance overheads. Represented with dashed arrow. Example: Vehicle uses an Engine
Dependency/Uses
One object belongs to another object and none other. Example: Department has a Teacher, who cannot belong to another department unless this Department no longer exists.
Aggregation/Has a(n)
Child/Subclass is a specialized form of parent/superclass, i.e. child/subclass has all data and actions/methods of parent/superclass; code will not have to be rewritten. Example: Student is a Person
Inheritance/Is a(n)
Whole numbers. Represented by int or long, for example.
Integer
Numbers with decimal or fractional values.
Real number
Only holds two conditions: true or false.
Boolean
Series of characters. Not really a primitive data type but a reference class
String
Name of information passed to method
Parameter
Value passed onto method via above
Argument
D.2 - Features of OOP
Inclusion of both data and actions/methods into single component; access to such data and actions from outside of class is thereby restricted.
Encapsulation
When multiple methods have same name but with different parameters (static), or when subclass overrides method of its superclass such that new method has different functions (dynamic).
Polymorphism
Collections of pre-written classes that can be used by programmer while developing program.
Libraries of objects
Contrary to solo developer, can handle larger projects with more ideas but effective communication is required.
Programming team
Dividing complex and large program into smaller sub-programs that can be implemented and tested on their own. These sub-programs may be reused in other programs.
Modularity
D.3 - Program Development
Identifies an entity (as name suggests). Examples: name, gender, age
Identifier
Keyword that serves as basic building block. Examples: char, int, double, boolean
Primitive
Values of data from class unique to each object. Example: age
Instance variable
Data items passed to and from actions/methods. Can only be accessed inside the method that declares it.
Parameter variable
Declared inside blocks/scope of code such as in methods/actions or loops.
Local variable
When called, reads specific data value of object.
Accessor method
When called, modifies data value of object.
Mutator method
Special methods that allow creation of instantiations of objects to be created
Constructor
Includes method name, parameters, and types. Example: setPrice(int price)
Signature
Value that is passed back when method is called
Return value
Can only be accessed by class defining it
private
Above condition + subclasses
protected
Any class can access it
public
"Inherits from"
extends
Belongs to class instead of specific instance; all objects share same value.
static
Holds any value from -2^31 to (2^31)-1, inclusive
int
Holds any value from -2^63 to (2^63)-1, inclusive
long
Can represent decimals
double
Represents Unicode character
char
Runs by: 1 - Declaring and initializing control variable, 2 - Checking if boolean expression is true (runs if true, terminates otherwise), 3 - After code is run, control variable is updated, 4 - Repeat 2. Common example: (int i = 0; i < n; i++)
for loop
Runs if boolean expression evaluates to true.
while loop
Holds fixed number of elements of same type (length is established during array initialization). Example: int[] ages = new int[10];
Static array
Examples include support for non-English text, date and time formatting, complex symbols, and localized content.
Internationalization
No comments yet