Objects and Classes
Features of OOP
Program Development
Coding Concepts
Ethical & Practical Considerations
100

Data and actions (methods).

What are the two main components of an object?

100

Encapsulation.

What OOP feature restricts access to an object's data?

100

A special method used to initialize an object when instantiated.

What is a constructor?

100

Integer, real (double), string, Boolean.

What are the four primary data types used in IB CS OOP?

100

It allows software to work across different languages and cultures using features like Unicode.

Why is internationalization important in programming?

200

Instantiation.

What is the term for creating an instance of a class?

200

When a child class derives common data and methods from a parent class.

What is inheritance?

200

A method that retrieves (but does not modify) an object's attribute values.

What is an accessor method?

200

It defines a method or variable that belongs to a class rather than an instance.

What is the purpose of the static keyword?

200

To encourage software collaboration, free distribution, and accessibility.

What is the primary goal of the Open Source movement?

300

One is a template, while the other is an instance of the first that is created.

What is the difference between an object and a class?

300

The ability for methods to have the same name but different parameter lists or behaviors.

What is polymorphism?

300

extends

What keyword is used in Java to inherit a class?

300

The first copies the data, while the other passes a memory address.

What is the difference between pass-by-value and pass-by-reference?

300

They provide reliable, reusable solutions for common tasks like sorting and searching.

What are the advantages of using pre-built libraries in OOP?

400

Used to visually represent object relationships.

What is UML (Unified Modeling Language) used for?

400

It limits side effects and dependencies, improving code security and maintainability.

Why is encapsulation beneficial?

400

The first variable exists only within a method, while the second variable is tied to an object and persists throughout its lifetime.

What is the difference between a local variable and an instance variable?

400

These are three types of loops commonly used in Java.

What are for, while, and do-while?

400

Ensuring software reliability, avoiding plagiarism, and acknowledging contributions.

What are the ethical obligations of programmers?

500

Three main relationships between objects.

What are Dependency ("uses"), Aggregation ("has a"), and Inheritance ("is a")?

500

It allows an external program to use the method(s) of different objects without knowing the implementation details.

What is the purpose of Abstraction?

500

It makes debugging, testing, and collaboration easier by breaking code into reusable components.

Why is modularity important in program development?

500

These are the typical selection statement constructs used in development of algorithms using the Java programming language.

What are the if, the if-else, and switch-case constructs?

500

This helps with the code's readability that can impact team collaboration.

How can clear naming conventions, proper indentation, and comments improve maintainability when working in terms?

M
e
n
u