Booleans Flashcards

1
Q

solidity is

A

statically typed (similar to c)

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

what needs to be specified or known at compile time

A

the type of each variable

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

booleans

A

bool: variables that’s only values can be true or false

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

what are they commonly used in

A

conditional statements.

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

!

A

logical negation

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

&&

A

“and”

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

| |

|

A

“or”

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

==

A

equality

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