C++ Flashcards

(30 cards)

1
Q

a++

A

returns value before ‘a’ being incremented

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

returns value before ‘a’ being incremented

A

a++

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

++a

A

returns incremented value of ‘a’

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

returns incremented value of ‘a’

A

++a

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

a–

A

returns value before ‘a’ is decremented

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

returns value before ‘a’ is decremented

A

a–

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

–a

A

returns decremented value of ‘a’

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

returns decremented value of ‘a’

A

–a

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

&&

A

and statement

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

and statement

A

&&

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

||

A

or statement

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

or statement

A

||

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

!

A

not

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

not

A

!

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

log

A

calculates log

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

fmax

A

calculates max among the numbers passed to it

17
Q

fmin

A

calculates the min among the numbers passed to it

18
Q

round

A

rounds to the nearest integer

19
Q

calculates log

20
Q

calculates max among the numbers passed to it

21
Q

calculates the min among the numbers passed to it

22
Q

rounds to the nearest integer

23
Q

takes square root of

24
Q

sqrt

A

take square root of

25
pow
raise to power (a,b) thus a raised to b
26
raise to power (a,b) thus a raised to b
pow
27
ceil
calculates the number which is equal to the integer just greater than the passing value
28
calculates the number which is equal to the integer just greater than the passing value
ceil
29
floor
calculates number which is equal to the integer lesser then the passing value
30
calculates number which is equal to the integer lesser then the passing value
floor