Week 3 PRELIMS Flashcards
Refer to the kinds of data that variable can assume, hold or take on in a programming language and for which operations are automatically provided.
Data Type
It can only hold whole numbers; numbers with decimal points will be converted into whole numbers.
Integer
it can only contain values ranging from -2,147,483,648 to 2,147,483,647… but it has different types, Short, Long, Long Long
int
A ______________ variable can hold a real number, such as 420.0, -3.33, or 0.03325.
floating point type variable
refers to the fact that a varying number of digits can appear before and after the decimal point.
floating point
You could say that the decimal has the ability to “_________”.
float
three different floating point data types
Float
Double
Long Double
In most modern architectures, a ________ is 4 bytes, a __________ is 8, and a _________ can be equivalent to a double (8 bytes), or 16 bytes.
float
double
long double
It is a data type represents a series of characters.
Strings
It must have its value enclosed in double-quotes.
Strings
What are the 6 Data Types
Boolean
Character
Integer
Floating point
Double Floating Point
Texts
What is keyword for Boolean
bool
What is keyword for Character
char
What is keyword for Integer
int
What is keyword for Floating point
float