Boolean Operators Flashcards

1
Q

What Boolean operators do we use?

A

AND, OR, NOT

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

You can use multiple boolean operators at once, but how?

A

Use brackets when they’re long so the computer knows which to do first and are carried out in the order: NOT, AND, OR

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

What can boolean operators be used for?

A
  • in conditions

- used to make all the different selection statements and iteration statements more efficient and versatile.

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

How do algorithms make use of booleans?

A

When they search databases they use the operators in search queries.

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