Week 3 PRELIMS Flashcards

1
Q

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.

A

Data Type

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

It can only hold whole numbers; numbers with decimal points will be converted into whole numbers.

A

Integer

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

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

A

int

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

A ______________ variable can hold a real number, such as 420.0, -3.33, or 0.03325.

A

floating point type variable

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

refers to the fact that a varying number of digits can appear before and after the decimal point.

A

floating point

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

You could say that the decimal has the ability to “_________”.

A

float

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

three different floating point data types

A

Float
Double
Long Double

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

In most modern architectures, a ________ is 4 bytes, a __________ is 8, and a _________ can be equivalent to a double (8 bytes), or 16 bytes.

A

float
double
long double

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

It is a data type represents a series of characters.

A

Strings

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

It must have its value enclosed in double-quotes.

A

Strings

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

What are the 6 Data Types

A

Boolean
Character
Integer
Floating point
Double Floating Point
Texts

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

What is keyword for Boolean

A

bool

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

What is keyword for Character

A

char

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

What is keyword for Integer

A

int

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

What is keyword for Floating point

A

float

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

What is keyword for Double Floating Point

A

double

17
Q

What is keyword for Texts

A

string

18
Q

this data type represents a single character.

A

Character

19
Q

It must have its value enclosed in single-quotes.

A

Character

20
Q

This data type represents two states: true and false.

A

Boolean

21
Q

It can also accept values 0 and 1; wherein 0 can represent false, and 1 as true.

A

Boolean

22
Q

It is said to be “connected to” the standard output device, which usually is the display screen.

A

Standard Output Stream (cout)

23
Q

is used in conjunction with the stream insertion operator, which is written as &laquo_space;which are two less than signs

A

Standard Output Stream (cout)

24
Q

It is said to be “attached to” the standard input device, which usually is the keyboard.

A

Standard Input Stream (cin)

25
Q

It is used in conjunction with the stream extraction operator, which is written as&raquo_space; which are two greater than signs

A

Standard Input Stream (cin)