Internet Computing - Quiz 1

5.0(1)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/42

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

43 Terms

1
New cards
False
To program in Java we must have an IDE (true/false)
2
New cards
compiled, interpreted
Java program is \____ and \____ to native machine code
3
New cards
attributes, methods
In the context of Object oriented programming, classes have \____ and \_____
4
New cards
false
Objects are templates for Classes (true/false)
5
New cards
true
Objects are instances of classes and objects have an identity (true/false)
6
New cards
Writing, compilation, interpretation, execution
Steps for running a java program
7
New cards
true
The file name must match the name of the public class defined in a file (true/false)
8
New cards
Aggregation
If a class has an attribute of which is another class, the relationship is called:
9
New cards
implements
\____ is the keyword used to connect classes and interfaces
10
New cards
Private, Protected, "Default", Public
The order of access modifiers from most restrictive to not restrictive
11
New cards
Encapsulation
Interfaces are provided for clients to access a component. Interfaces ensure a proper \____ of the component
12
New cards
allows
List \______ duplicate entries
13
New cards
does not allow
Set \____ duplicates
14
New cards
final
\_____ is the keyword if you do not want a class to be inherited by others
15
New cards
Packages
\______ are used to organize related classes
16
New cards
"has a"
Aggregation in OOAD defines \____ relationship between 2 classes
17
New cards
"is a"
Inheritance in OOAD defines \____ relationship between 2 classes
18
New cards
true
A superclass implements an interface in Java (true/false)
19
New cards
super()
Keyword to invoke the constructor of the superclass
20
New cards
Overriding
\______ is termed as creating a new method with the same signature as a method in the superclass
21
New cards
Use case diagram
To describe the interactions between actors and use cases in a system
22
New cards
Association
Which type of relationship in a use case diagram indicates that an actor is involved in a use case?
23
New cards
Arrays
Not a part of the Java collection framework
24
New cards
Inheritance
The method to create hierarchy between classes by inheriting other classes
25
New cards
Abstract classes
base class used to provide common interface/behavior for its subclasses; cannot be instantiated
26
New cards
Abstract methods
Methods declared in an abstract class do not have any implement; signature of a method
27
New cards
extends
Keyword to implement inheritance
28
New cards
Public
Accessible to everyone
29
New cards
Default
Protected access; only access to classes in a current package
30
New cards
Protected
Can only be accessed within the class or classes that are inheriting from classes
31
New cards
Private
Can only be accessed within the class
32
New cards
Constructors
Methods used to initiate a class and its attribute
33
New cards
Static
Creates one copy for the entire scope (class)
34
New cards
Final
Prohibits overriding of method and extensions of classes
35
New cards
Interfaces
A collection of abstract methods and static final variables that defines a set of behaviors for a class to implement;
36
New cards
Interfaces
Utilized in polymorphism to set up methods to be overridden later with actual class instantiations
37
New cards
Polymorphism
Allows objects of different classes to be treated as if they were objects within the same class
38
New cards
Overloading
Same method name, different parameters
39
New cards
Overriding
Same method but subclass overwrites superclass's method
40
New cards
List
Prioritizes the order of elements, contains null and duplicates
41
New cards
Sets
Order does not matter and can only have unique values
42
New cards
Sets
Allows a null
43
New cards
Maps
key-value pairs, keys cannot be duplicates but values can