7 - Object Oriented Design Flashcards

1
Q

All parameters are passed

A

by value.

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

When we pass an object to a method we are actually passing

A

a reference to that object. They become aliases of each other.

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

Method overloading

A

using the same method name with different parameter lists

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

method’s signature

A

A methods name, along with the number, type, and order of its parameter

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

The compilers uses the method signature to

A

bind a method invocation to the appropriate definition.

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

A good test

A

is one that uncovers an error.

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

Regression testing

A

is a type of software testing to confirm that a recent program or code change has not adversely affected existing features.

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

Defect testing

A

testing to find errors

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

test case and test suites

A

A test case consists of a set of inputs, user actions, or other initial conditions, along with the expected output. (Test suites are series of these tests)

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

black box testing

A

the inputs are from the user and it produces the correct output. No regard for the internal workings inside the method.

-done through equivalence category – collection of inputs that are expected to produce similar outputs.

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

White box testing

A

aka glass box testing exercises the internal structure and implementation of a method. Done through statement coverage. It tests every path the code goes.

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