Chapter 5: Decisions Flashcards

1
Q

relational operator

A

An operator that compares two values, yielding a Boolean result.

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

lexicographic order

A

Ordering strings in the same order as in a dictionary, by skipping all matching characters and comparing the first non-matching characters of both strings. For example, “orbit” comes before “orchid” in lexicographic ordering. Note that in Java, unlike a dictionary, the ordering is case sensitive: Z comes before a.

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

null reference

A

A reference that does not refer to any object.

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

black-box testing

A

Testing a method without knowing its implementation.

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

white-box testing

A

Testing methods by taking their implementations into account, in contrast to black-box test ing; for example, by selecting boundary test cases and ensuring that all branches of the code are covered by some test case.

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

code coverage

A

A measure of the amount of source code that has been executed during testing.

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

boundary test cases

A

A test case involving values that are at the outer boundary of the set of legal values. For example, if a method is expected to work for all nonnegative integers, then 0 is a boundary test case.

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

trace messages

A

A message that is printed during a program run for debugging purposes.

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

Boolean operator

A

An operator that can be applied to Boolean values. Java has three Boolean operators: &&, ||, and !.

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

De Morgan’s Law

A

A law about logical operations that describes how to negate expressions
formed with and and or operations.

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