Internet Computing - Quiz 1

studied byStudied by 6 people
5.0(1)
get a hint
hint

False

1 / 42

Studying Progress

0%
New cards
43
Still learning
0
Almost done
0
Mastered
0
43 Terms
1
New cards

False

To program in Java we must have an IDE (true/false)

New cards
2
New cards

compiled, interpreted

Java program is ____ and ____ to native machine code

New cards
3
New cards

attributes, methods

In the context of Object oriented programming, classes have ____ and _____

New cards
4
New cards

false

Objects are templates for Classes (true/false)

New cards
5
New cards

true

Objects are instances of classes and objects have an identity (true/false)

New cards
6
New cards

Writing, compilation, interpretation, execution

Steps for running a java program

New cards
7
New cards

true

The file name must match the name of the public class defined in a file (true/false)

New cards
8
New cards

Aggregation

If a class has an attribute of which is another class, the relationship is called:

New cards
9
New cards

implements

____ is the keyword used to connect classes and interfaces

New cards
10
New cards

Private, Protected, "Default", Public

The order of access modifiers from most restrictive to not restrictive

New cards
11
New cards

Encapsulation

Interfaces are provided for clients to access a component. Interfaces ensure a proper ____ of the component

New cards
12
New cards

allows

List ______ duplicate entries

New cards
13
New cards

does not allow

Set ____ duplicates

New cards
14
New cards

final

_____ is the keyword if you do not want a class to be inherited by others

New cards
15
New cards

Packages

______ are used to organize related classes

New cards
16
New cards

"has a"

Aggregation in OOAD defines ____ relationship between 2 classes

New cards
17
New cards

"is a"

Inheritance in OOAD defines ____ relationship between 2 classes

New cards
18
New cards

true

A superclass implements an interface in Java (true/false)

New cards
19
New cards

super()

Keyword to invoke the constructor of the superclass

New cards
20
New cards

Overriding

______ is termed as creating a new method with the same signature as a method in the superclass

New cards
21
New cards

Use case diagram

To describe the interactions between actors and use cases in a system

New cards
22
New cards

Association

Which type of relationship in a use case diagram indicates that an actor is involved in a use case?

New cards
23
New cards

Arrays

Not a part of the Java collection framework

New cards
24
New cards

Inheritance

The method to create hierarchy between classes by inheriting other classes

New cards
25
New cards

Abstract classes

base class used to provide common interface/behavior for its subclasses; cannot be instantiated

New cards
26
New cards

Abstract methods

Methods declared in an abstract class do not have any implement; signature of a method

New cards
27
New cards

extends

Keyword to implement inheritance

New cards
28
New cards

Public

Accessible to everyone

New cards
29
New cards

Default

Protected access; only access to classes in a current package

New cards
30
New cards

Protected

Can only be accessed within the class or classes that are inheriting from classes

New cards
31
New cards

Private

Can only be accessed within the class

New cards
32
New cards

Constructors

Methods used to initiate a class and its attribute

New cards
33
New cards

Static

Creates one copy for the entire scope (class)

New cards
34
New cards

Final

Prohibits overriding of method and extensions of classes

New cards
35
New cards

Interfaces

A collection of abstract methods and static final variables that defines a set of behaviors for a class to implement;

New cards
36
New cards

Interfaces

Utilized in polymorphism to set up methods to be overridden later with actual class instantiations

New cards
37
New cards

Polymorphism

Allows objects of different classes to be treated as if they were objects within the same class

New cards
38
New cards

Overloading

Same method name, different parameters

New cards
39
New cards

Overriding

Same method but subclass overwrites superclass's method

New cards
40
New cards

List

Prioritizes the order of elements, contains null and duplicates

New cards
41
New cards

Sets

Order does not matter and can only have unique values

New cards
42
New cards

Sets

Allows a null

New cards
43
New cards

Maps

key-value pairs, keys cannot be duplicates but values can

New cards

Explore top notes

note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 349 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 19 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 198 people
Updated ... ago
5.0 Stars(4)
note Note
studied byStudied by 108 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard85 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard85 terms
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard54 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard970 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard36 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard41 terms
studied byStudied by 2260 people
Updated ... ago
4.2 Stars(47)