ITE MIDTERMS Flashcards

1
Q

the representation of object characteristics on java programming

A

INSTANCE FIELDS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the keyword that is used to attach a method to the class, not an instance

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

the abstraction of a real world concept into programming

A

OBJECT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

capabilities of an object

A

BEHAVIOR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_________ is represented by methods

A

BEHAVIOR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

___________ is represented by variables

A

STATES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

provides the output of the method

A

return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

the keyword that points to the current instance

A

this

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

this works as input for the method

A

PARAMETER LIST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

blueprint of an object

A

CLASS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

this property states that objects are smart on their own but requires other to tell what it needs to do

A

ANTHROPOMORPHIC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

the keyword used in creating object instance

A

new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

the concept of hiding details you do not care about as a user

A

BLACK BOX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

other than the usage of the new keyword, it is another way of declaring and filling up the array

A

INITIALIZER LIST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

the field that tells how many elements are there in an array

A

LENGTH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

thrown whenever an invalid index is accessed from the array

A

ArrayIndexOutOfBoundsException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

a collection of similar types of data

A

ARRAY

18
Q

means the creation of a constructor

A

INSTANTIATION

19
Q

A method that is called to create a certain object

A

CONSTRUCTOR

20
Q

The _________ or ________is assigned to each element of the array

A

INDEX, SUBSCRIPT

21
Q

This is to allow the program to access an individual member of the array

A

INDEX OR SUBSCRIPT

22
Q

The length field of an array

A

ARRAY LENGTH

23
Q

________ is a mechanism of creating an array of objects with different data types

A

ARRAY OF OBJECT

24
Q

this type of array can be seen as a table with ‘x’ rows and ‘y’ columns where the row number ranges from 0 to (x-1) and column number ranges from 0 to (y-1).

A

Two-dimensional array

25
Q

an event that disrupts the normal flow of the program. It is an object which is thrown at runtime

A

exception

26
Q

one of the powerful mechanisms to handle runtime errors so that the normal flow of the application can be maintained.

A

Exception handling

27
Q

this keyword is used to specify a block where we should place the exception code.

A

try

28
Q

This block is used to handle the exception

A

catch block

29
Q

This block is used to execute the important code of the program. It is executed whether an exception is handled or not.

A

finally

30
Q

The ______ keyword is used to throw an exception

A

throw

31
Q

The _____ keyword is used to declare exceptions. It doesn’t throw an exception. It specifies that there may occur an exception in the method.

A

throws

32
Q

this type of exception is typically a user error or a problem that cannot be foreseen by the programmer. It is a type of exception that is checked at compile time

A

Checked Exception

33
Q

this type of exception is an exception that occurs that probably could have been avoided by the programmer. It is a type of exception that is checked at runtime. As opposed to checked exceptions, runtime exceptions are ignored at the time of compilation.

A

Unchecked Exception

34
Q

used in a method declaration to explicitly specify the exceptions that a particular method might throw

A

Throws

35
Q

A ________ catches an exception using a combination of the try and catch keywords.

A

methods

36
Q

______ provides a more meaningful message for each exception type. This is used for someone to easily understand an error.

A

Try catch

37
Q

It describes the current characteristics of the specified

A

Attributes or state

38
Q

These are the possible actions that your object is able to do.

A

Behavior

39
Q

an optional special method is called when an instance is being created in a process called INSTANTIATION

A

constructors

40
Q

the process of restricting the access to data within the object

A

Encapsulation

41
Q

method for data retrieval.

A

Accessor/Getter

42
Q

method for data modification

A

Mutator/Setter