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.

21
Q

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

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

25
When variables of one type are mixed with variables of another type, what will occur?
a type conversion
26
C++ facilitates the type conversion into the following two forms:
Implicit Type Conversion Explicit Type Conversion
27
also known as automatic type conversion
implicit
28
a conversion | performed by the compiler without programmer's intervention.
implicit
29
It is applied generally whenever differing data types are intermixed in an expression, so as not to lose information.
implicit
30
Conversion from one data | type to another is prone to
data loss
31
This happens when data of a larger type is converted to data of a smaller type.
data loss
32
data type heirarchy
long double, double, float, long, int, short, char
33
When the user manually changes data from one type to another, this is known as
explicit conversion
34
forces an expression to be of specific data type.
explicit conversion
35
is used to find the power of the given number
pow()
36
returns the square root | of value.
sqrt()
37
math functions are part of X header.
38
both are used to retrieve or calculate the absolute value
abs() and fabs () functions
39
X is used to calculate the absolute value for integer type numbers
abs()
40
X are used for | floating type numbers.
fabs()
41
map a real number to the greatest preceding or the least succeeding integer, respectively
The floor and ceiling | functions
42
is used to round the value toward zero and returns the nearest integral value.
trunc()
43
is used to round the given number to the closest integer.
round()
44
sets the decimal precision to be used to format | floating-point values on output operations
setprecision
45
setprecision when used along with X provides precision to floating point numbers correct to decimal numbers mentioned in the brackets of the setprecision.
‘fixed’
46
setprecision function is part of X header