TEST 3 topics and review Flashcards

1
Q

Comparator > meaning?

A

Greater than

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

Comparator < meaning?

A

Less than

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

Comparator == meaning?

A

Equal to

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

Comparator != meaning?

A

Not equal to

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

Comparator >= meaning?

A

Equal to or greater than

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

Comparator <= meaning?

A

Equal to or less than

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

What is a while loop?

A

Loops that repeat the code an indefinite amount of times

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

What is a condition?

A

Conditions control while loops, which will repeat itself if the condition is true. Conditions can be numeric comparisons, string comparisons, and are established by using comparing operators (comparators.)

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

String comparator .equals() meaning?

A

Equal (case sensitive)

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

String comparator !.equals() meaning?

A

Not equal (case sensitive)

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

How to show equal to if the string variable is “Hello”

A

var.equals (“hello”);

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

How to show NOT equal to if the string variable is “Hello”

A

!var.equals (“hello”);

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

Keyword to writing a while loop:

A

while

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

What do you do to control the while loop so that it doesn’t become infinite?

A

Something in the body of the loop should modify the condition variable so the condition will eventually become false.

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

What is the while loop checking process?

A

Checks condition at the start of the loop, and if it’s true it will carry out loop until it reaches the bottom. Then, it will go back to the top again and continue until it becomes false.

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

Minimum times a loop can run?

17
Q

Difference between a do.while loop and a while loop?

A

A do while loop is checked at the bottom, but the while loop is checked at the top.

18
Q

Minimum lines a do.while loop can run?

19
Q

When using a multiple condition, each comparison needs to be checked complete and connected to??

A

Boolean operator.

20
Q

What’s the syntax and explanation of operator AND?

A

Syntax: &&
Explanation: All conditions need to be true for it to be true.

21
Q

What’s the syntax and explanation of operator OR?

A

Syntax: ||
Explanation: At least one condition must be true for it to be true.

22
Q

How are if statements and conditional statements different?

A

Conditional statements are repetition, but if statements are branching.

23
Q

How many conditions do if statements need to be true?

A

At least 1

24
Q

Summarize else if statements

A

Else if statements can be written after an if statement to check additional conditions in the case the first one is false. As many else if statements can be added, but only the first one which is true will be executed.

25
Summarize else statements
An else statement can be added at the end of an if/else if statement. This will run if all of the preceding conditions are false
26
Summarize external libraries
External libraries are components that can add functionality (such as buttons or other components) to a program. These need to be installed to Processing to be used, and then must be imported using an import statement