Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
44 Cards in this Set
- Front
- Back
OOP |
Programming that uses objects to model problems and solutions. |
|
Procedural Programming |
Programming that organizes instructions into groups of code that perform specific tasks. |
|
What is a Class? |
Template or pattern describing an object. |
|
What is an Object? |
An instance of a class. |
|
Encapsualtion |
Packaging info about objects so it's hidden and protected. |
|
Benefit of encapsulation? |
Protecting the object, hiding its data; reusability in other projects. |
|
Inheritance |
Inclusion of characters in a hierarchical setting. |
|
Benefit of inheritance? |
All sub-classes can acquire new characteristics by editing the parent class; less coding. |
|
Polymorphism |
Ability to change based on context. |
|
Benefit of polymorphism? |
Helps remodel real world situations. |
|
Term for creating a new object? |
Instantiation |
|
What is a constructor? |
A method to instantiate a new object. |
|
What is a rule about naming constructors? |
Has to match the name of the class. |
|
What is an accessor method? |
A method that gets or retriees info from an object. |
|
What is a mutator method? |
Changes or sets info of an object. |
|
What is the extension on the file for the Java source code? |
.java |
|
What type of file is created when a Java source file is compiled? |
Java bytecode |
|
What is the extension on the file for Java bytecode? |
.class |
|
What is the JVM |
Java Virtual Machine |
|
What is the grouping character in Java? |
Curly braces, {} |
|
What is the purpose of an import statement? |
Includes classes from other locations outside the project, in the Java class libraries. |
|
What does the keyword PUBLIC mean? |
The item is visible and available to all other classes. |
|
What does PRIVATE mean? |
The item in not visible or available outside of its class. |
|
What does the keyword VOID mean? |
No data is returned from the method. |
|
What does STATIC mean? |
The item is unique, there is only one in the project, instead of one for each instance of the item. |
|
What are the 2 types of data in Java? |
Primitive variables and objects or reference variables. |
|
List the 4 main primitive data types in Java. |
Integer, double, character, boolean |
|
Which programming language has the most operators? |
C |
|
C is an extension of C++ |
False |
|
What is #include in C |
Preproccessor Directive |
|
What does a preprocessor directive do? |
Inserts another file in the current file during compilation. |
|
What is not a data type in C? |
String |
|
What is the difference between printf() and scanf()? |
printf() prints to the screen, scanf() reads user input.
|
|
Abstraction |
Keeping internals of an object hidden |
|
Class |
Definition of a related group |
|
Inheritance |
Ability to create a new class |
|
What is operator overloading? |
Assigning multiple behaviors to the same operator, such as "+" behaving as normal mathematical addition and also concatenating strings |
|
True or False: Because of the differences between the languages, you must have separate compilers for C and C++. |
False |
|
True or False: There are input and output operators in C++, which are << and >>. |
True |
|
Which term from OOP vocabulary is demonstrated when programmers don't have to write the same code for new objects? |
(FIND ANSWER) |
|
How does the compiler know which method to execute when there are multiple methods with the same name? |
It finds the method with the same number and data type of parameters.
|
|
True or False: You cannot overload both methods and operators. |
False |
|
True or False: A class can inherit only half of the variables and methods of a base class. |
False |
|
True or False: A class that extends another class is the parent of that other class. |
False |