Math, asked by maepedere22, 1 month ago

Given the following declarations and intials assignments inta=4 b= 21 c= 10 determine the value of each of the following arithemtic expressions a.a+2b-c
b. 5(a+c+b)-b
c. ac-ab
d.(a+b)%c
e.c (a+b)(a+b)​

Answers

Answered by prajapatikausha53
2

Answer:

Choose a correct statement.

int a = 12 + 3 * 5 / 4 - 10

A) 12, 3, 5, 4 and 10 are Operators.

+, -, * and / are Operands.

= is an increment operator.

B) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Operators.

= is decrement operator.

C) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Operators.

= is an assignment operator.

D) 12, 3, 5, 4 and 10 are Operands.

+, -, * and / are Logical Operators.

= is an assignment operator.

Answer[=]

2) Operator % in C Language is called.?

A) Percentage Operator

B) Quotient Operator

C) Modulus

D) Division

Answer[=]

3) Output of an arithmetic expression with integers and real numbers is ___ by default.?

A) Integer

B) Real number

C) Depends on the numbers used in the expression.

D) None of the above

Answer[=]

4) Choose a right statement.

int a = 10 + 4.867;

A) a = 10

B) a = 14.867

C) a = 14

D) compiler error.

Answer[=]

5) Choose a right statement.

int a = 3.5 + 4.5;

A) a = 0

B) a = 7

C) a = 8

D) a = 8.0

Answer[=]

6) Choose a right statement.

float var = 3.5 + 4.5;

A) var = 8.0

B) var = 8

C) var = 7

D) var = 0.0

Answer[=]

7) Choose right statement.

int main()

{

float c = 3.5 + 4.5;

printf("%f", c);

return 0;

}

A) 8.0

B) 8.000000

C) 8

D) 7

Answer[=]

Similar questions