Math Flashcards

1
Q

abs

A

returns absolute value

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

random

A

return’s random value

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

squrt

A

returns square root of positive number

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

round

A

round real number to nearest integrar

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

int abs(int num)

A

returns the absolute value.

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

double pow(double num, double power)

A

returns number to the power.

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

double sqrt(double num)

A

returns square root of positive number

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

What are three things for defining a variable?

A
  1. Type
  2. Variable name
  3. Value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

PEMDAS

A

Parenthesis, Exponents, Multiplication, Division, Addition and Subtraction.

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

+

A

Addition

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

Subtraction

A

-

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

*

A

Multiplication

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

÷

A

Division

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

%

A

Modulus(to get the remainder.)

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

1 + 2 × 3 + 7 x 2 % 5

A

11

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

What is casting?

A

Casting is converting one date type to another.

17
Q

Which of the following choices is the correct syntax for declaring a real number variable?
a. int grade : 4.0;
b. 4.0 = grade;
c. double grade = 4.0;
d. grade = 4;