Computer Science, asked by singhjaskaran3250, 7 months ago

witch of the following is not arithmetic opertor​

Answers

Answered by jmakima55
0

Answer:

C Programming Questions and Answers – Arithmetic Operators – 2

« PrevNext »

Sanfoundry’s 1000+ MCQs on C helps anyone preparing for placement in Infosys and other companies. Anyone looking for Infosys placement papers should practice these 1000+ questions continuously for 2-3 months, thereby ensuring a top position in placements.

Here is a listing of C test questions on “Arithmetic Operators” along with answers, explanations and/or solutions:

1. What will be the output of the following C code?

   #include <stdio.h>

   void main()

   {

       int a = 3;

       int b = ++a + a++ + --a;

       printf("Value of b is %d", b);

   }

a) Value of x is 12

b) Value of x is 13

c) Value of x is 10

d) Undefined behaviour

View Answer

Answer: d

Explanation: None.

2. What is the precedence of arithmetic operators (from highest to lowest)?

a) %, *, /, +, –

b) %, +, /, *, –

c) +, -, %, *, /

d) %, +, -, *, /

View Answer

Answer: a

Explanation: None.

3. Which of the following is not an arithmetic operation?

a) a * = 10;

b) a / = 10;

c) a ! = 10;

d) a % = 10;

View Answer

Answer: c

Explanation: None.

4. Which of the following data type will throw an error on modulus operation(%)?

a) char

b) short

c) int

d) float

View Answer

Answer: d

Explanation: None.

5. Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?

a) +, –

b) +, -, %

c) +, -, *, /

d) +, -, *, /, %

View Answer

Answer: a

Explanation: None.

Similar questions