Operators and Data Types Flashcards

(8 cards)

1
Q

What is a string?

A

A data type used to store text.

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

What is an integer?

A

A whole number (positive or negative, no decimals).

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

What is a boolean?

A

A data type that can only be true or false.

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

Give an example of a comparison operator.

A

== != > < >= <=

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

Give an example of an arithmetic opertor.

A

+ - / *

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

What does the = operator do?

A

Assigns a value to a variable.

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

What is a real number?

A

A positive or negitive whole number.

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

Give an examle of a logical operator.

A

AND NOT OR

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