Unit 3 Flashcards

1
Q

boolean value

A

true or false

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

< (less than operator)

A

(when r=5) radius < 0 = false

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

<= (less than or equal to)

A

(r=5) radius <= 0 false

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

> (greater than)

A

(r=5) radius > 0 = true

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

> = (greater than or equal to)

A

(r=0) radius >= 0 true

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

== (equal to)

A

radius == 0 is false

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

!= (not equal t0)

A

radius != 0 is true

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

selection statements

A

allow programs to run statements based on a condition, must be boolean

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

if statement

A

specifies alternate routes to a program

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

one-way if statement

A

only one decision bridge made in a program

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

two-way if-else statement

A

catches for true or false scenario

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

curly braces for logic

A

Logic statements must have their own curly braces in the program

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

redundancy tests

A

ensure that your logic statements are not overly complicated

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

multi-way if-else statement

A

if any of the conditions are true, then none of the other conditions will be met

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

dangling else

A

not adding curly braces to the logic statement

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

nested if statements

A

logic if statements nested inside each other

17
Q

System.exit(status)

A

Status 0 indicates that the program exits properly. Nonzero status code indicates abnormal termination. (think of C-style functions)