Variables & Assignments (2) Flashcards

1
Q

Assignment
Arithmetic
Equality
Logical

Are types of ____ used to perform in-built calculations

A

Operators

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

A named value item that holds a value that cannot change

A

Constant

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

______ are commonly used in programs to hold the value of mathematical or physical constants, such as Pi, the speed of light, or kilograms per pound. Used for values that should never change during the program’s execution.

A

Constants

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

This equality operator checks if two values are identical.

A

==

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

This equality operator compares two values to see if they are different

A

=!

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

What kind of number do float type variables store?

A

floating-point numbers/floating type literals

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

All numbers, including negative, that are whole are what kind of number

A

Integers

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

10.0, 5.6, 39085973.0, 72.0001, 0.08 are all possible examples of a ____ type variable.

A

float

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

The ____ data type is a specific sequence of characters, words, or other data. Can be a constant or a variable. The number of characters (including invisible ones like space) in it is its length, can even have nothing at all giving the ____ a length of 0.

A

String

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