Internet Computing - Quiz 1

studied byStudied by 7 people
5.0(1)
Get a hint
Hint

False

1 / 42

flashcard set

Earn XP

Description and Tags

43 Terms

1

False

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

New cards
2

compiled, interpreted

Java program is ____ and ____ to native machine code

New cards
3

attributes, methods

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

New cards
4

false

Objects are templates for Classes (true/false)

New cards
5

true

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

New cards
6

Writing, compilation, interpretation, execution

Steps for running a java program

New cards
7

true

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

New cards
8

Aggregation

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

New cards
9

implements

____ is the keyword used to connect classes and interfaces

New cards
10

Private, Protected, "Default", Public

The order of access modifiers from most restrictive to not restrictive

New cards
11

Encapsulation

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

New cards
12

allows

List ______ duplicate entries

New cards
13

does not allow

Set ____ duplicates

New cards
14

final

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

New cards
15

Packages

______ are used to organize related classes

New cards
16

"has a"

Aggregation in OOAD defines ____ relationship between 2 classes

New cards
17

"is a"

Inheritance in OOAD defines ____ relationship between 2 classes

New cards
18

true

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

New cards
19

super()

Keyword to invoke the constructor of the superclass

New cards
20

Overriding

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

New cards
21

Use case diagram

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

New cards
22

Association

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

New cards
23

Arrays

Not a part of the Java collection framework

New cards
24

Inheritance

The method to create hierarchy between classes by inheriting other classes

New cards
25

Abstract classes

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

New cards
26

Abstract methods

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

New cards
27

extends

Keyword to implement inheritance

New cards
28

Public

Accessible to everyone

New cards
29

Default

Protected access; only access to classes in a current package

New cards
30

Protected

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

New cards
31

Private

Can only be accessed within the class

New cards
32

Constructors

Methods used to initiate a class and its attribute

New cards
33

Static

Creates one copy for the entire scope (class)

New cards
34

Final

Prohibits overriding of method and extensions of classes

New cards
35

Interfaces

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

New cards
36

Interfaces

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

New cards
37

Polymorphism

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

New cards
38

Overloading

Same method name, different parameters

New cards
39

Overriding

Same method but subclass overwrites superclass's method

New cards
40

List

Prioritizes the order of elements, contains null and duplicates

New cards
41

Sets

Order does not matter and can only have unique values

New cards
42

Sets

Allows a null

New cards
43

Maps

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

New cards

Explore top notes

note Note
studied byStudied by 132 people
... ago
5.0(1)
note Note
studied byStudied by 55 people
... ago
4.5(2)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 30 people
... ago
5.0(1)
note Note
studied byStudied by 37 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 23129 people
... ago
4.8(187)

Explore top flashcards

flashcards Flashcard (21)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (93)
studied byStudied by 13 people
... ago
5.0(2)
flashcards Flashcard (27)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (58)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (68)
studied byStudied by 29 people
... ago
5.0(2)
robot