Recognizing Data Types Flashcards

1
Q

[ Identification ]

It describes a specific data that can be stored in a variable.

Defines how the data of a variable will be used by the program.

A

Data Type

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

[ Name the data type being described. ]

Holds and displays unit of information equivalent to one alphabetic letter or symbol.

Examples:

‘J’, ‘R’, ‘U’

‘N’, ‘C’, ‘R’

A

CHARACTER (char)

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

[ Name the data type being described. ]

It refers to a collection or series of characters which represents name of an entity.

Examples:

“JRU”

“ICTS112”

A

STRING

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

[ Name the data type being described. ]

Has a value of real number or whole number.

Examples:
101, 90, 1919
75, 60, 120

A

INTEGER (int)

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

[ Name the data type being described. ]

Recognizes decimals or fractions of numbers.

Examples:
0.95, 70.00, .05
10.5, 1.75, 90.6

A

FLOAT

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

[ Name the data type being described. ]

It contains values with two options.

Example:
TRUE or FALSE

A

Boolean

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

[ Identification ]

A type of declaration for floating numbers which stores 4-byte decimal spaces (32 bits or 2^32).

A

SINGLE

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

[ Identification ]

A type of declaration for floating numbers which stores 8-byte decimal spaces (64 bits or 2^64).

It can hold even the smallest and largest approximation of a real number.

A

DOUBLE

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

[ Identification ]

An integer which can hold a 4-byte place value (32 bits or 2^32 place value)

Range:
-32,768 - 32,768

A

SHORT

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

[ Identification ]

An integer which can hold an 8-byte place value (64 bits or 2^64 place value)

Range:
-2^63 - 2^63

A

LONG

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

[ What are these? ]

  1. The name must begin with a letter.
  2. The name must contain only letters, numbers, and the underscore characters.
  3. The name cannot contain more than 255 characters.
  4. The name cannot be a reserved word.
A

Rules for Naming a Variable

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

______ words are English words used as codes in C++ programming

Examples: main, else, float, if, string

A

Reserved words

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

[ What are these? ]

int grade;
int quiz1, quiz2, quiz3;
string username;
float average;

A

Examples of Declaring a Variable

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