M4S2 Flashcards

1
Q

is the process of converting one predefined

type into another.

A

Type Conversion

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

is the process of converting one predefined

type into another.

A

Type Conversion

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

When variables of one type are mixed with variables of another
type, what will occur?

A

a type conversion

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

C++ facilitates the type conversion into the following two forms:

A

Implicit Type Conversion

Explicit Type Conversion

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

also known as automatic type conversion

A

implicit

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

a conversion

performed by the compiler without programmer’s intervention.

A

implicit

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

It is applied generally whenever differing data types are intermixed in
an expression, so as not to lose information.

A

implicit

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

Conversion from one data

type to another is prone to

A

data loss

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

This happens when
data of a larger type is
converted to data of a smaller
type.

A

data loss

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

data type heirarchy

A

long double, double, float, long, int, short, char

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

When the user manually changes data from one type to another, this
is known as

A

explicit conversion

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

forces an expression to be of specific data type.

A

explicit conversion

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

is used to find
the power of the given
number

A

pow()

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

returns the square root

of value.

A

sqrt()

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

math
functions are part of
X header.

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

both
are used to retrieve or calculate
the absolute value

A

abs() and fabs () functions

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

X is used
to calculate the absolute value for
integer type numbers

A

abs()

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

X are used for

floating type numbers.

A

fabs()

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

map a real number
to the greatest preceding or
the least succeeding integer,
respectively

A

The floor and ceiling

functions

20
Q

is used to round the value toward
zero and returns the nearest
integral value.

A

trunc()

21
Q

is used to round the
given number to the closest
integer.

A

round()

22
Q

sets the decimal precision to be used to format

floating-point values on output operations

A

setprecision

23
Q

setprecision when used along with X provides precision to
floating point numbers correct to decimal numbers mentioned in the
brackets of the setprecision.

A

‘fixed’

24
Q

setprecision function is part of X header

A
25
Q

When variables of one type are mixed with variables of another
type, what will occur?

A

a type conversion

26
Q

C++ facilitates the type conversion into the following two forms:

A

Implicit Type Conversion

Explicit Type Conversion

27
Q

also known as automatic type conversion

A

implicit

28
Q

a conversion

performed by the compiler without programmer’s intervention.

A

implicit

29
Q

It is applied generally whenever differing data types are intermixed in
an expression, so as not to lose information.

A

implicit

30
Q

Conversion from one data

type to another is prone to

A

data loss

31
Q

This happens when
data of a larger type is
converted to data of a smaller
type.

A

data loss

32
Q

data type heirarchy

A

long double, double, float, long, int, short, char

33
Q

When the user manually changes data from one type to another, this
is known as

A

explicit conversion

34
Q

forces an expression to be of specific data type.

A

explicit conversion

35
Q

is used to find
the power of the given
number

A

pow()

36
Q

returns the square root

of value.

A

sqrt()

37
Q

math
functions are part of
X header.

A
38
Q

both
are used to retrieve or calculate
the absolute value

A

abs() and fabs () functions

39
Q

X is used
to calculate the absolute value for
integer type numbers

A

abs()

40
Q

X are used for

floating type numbers.

A

fabs()

41
Q

map a real number
to the greatest preceding or
the least succeeding integer,
respectively

A

The floor and ceiling

functions

42
Q

is used to round the value toward
zero and returns the nearest
integral value.

A

trunc()

43
Q

is used to round the
given number to the closest
integer.

A

round()

44
Q

sets the decimal precision to be used to format

floating-point values on output operations

A

setprecision

45
Q

setprecision when used along with X provides precision to
floating point numbers correct to decimal numbers mentioned in the
brackets of the setprecision.

A

‘fixed’

46
Q

setprecision function is part of X header

A