Boolean expressions Flashcards

1
Q

True and True

A

True

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

False and True

A

False

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

1 == 1 and 2 == 1

A

False

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

“test” == “test”

A

True

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

1 == 1 or 2 != 1

A

True

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

True and 1 == 1

A

True

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

False and 0 != 0

A

False

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

True or 1 == 1

A

True

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

“test” == “testing”

A

False

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

1 != 0 and 2 == 1

A

False

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

“test” != “testing”

A

True

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

“test” == 1

A

False

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

not (True and False)

A

True

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

not (1 == 1 and 0 != 1)

A

False

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

not (10 == 1 or 1000 == 1000)

A

False

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

not (1 != 10 or 3 == 4)

A

False

17
Q

not (“testing” == “testing” and “Zed” == “Cool Guy”)

A

True

18
Q

1 == 1 and not (“testing” == 1 or 1 == 0)

A

True

19
Q

“chunky” == “bacon” and not (3 == 4 or 3 == 3)

A

False

20
Q

3 == 3 and not (“testing” == “testing” or “Python” == “Fun”)

A

False