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

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
an event that disrupts the normal flow of the program. It is an object which is thrown at runtime
exception
26
one of the powerful mechanisms to handle runtime errors so that the normal flow of the application can be maintained.
Exception handling
27
this keyword is used to specify a block where we should place the exception code.
try
28
This block is used to handle the exception
catch block
29
This block is used to execute the important code of the program. It is executed whether an exception is handled or not.
finally
30
The ______ keyword is used to throw an exception
throw
31
The _____ keyword is used to declare exceptions. It doesn't throw an exception. It specifies that there may occur an exception in the method.
throws
32
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
Checked Exception
33
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.
Unchecked Exception
34
used in a method declaration to explicitly specify the exceptions that a particular method might throw
Throws
35
A ________ catches an exception using a combination of the try and catch keywords.
methods
36
______ provides a more meaningful message for each exception type. This is used for someone to easily understand an error.
Try catch
37
It describes the current characteristics of the specified
Attributes or state
38
These are the possible actions that your object is able to do.
Behavior
39
an optional special method is called when an instance is being created in a process called INSTANTIATION
constructors
40
the process of restricting the access to data within the object
Encapsulation
41
method for data retrieval.
Accessor/Getter
42
method for data modification
Mutator/Setter