What will be the result of arithmetic expression 6+48/4*3?
- A10
- B40.5
- C42
- D41
/ and * go left to right first: 48/4 = 12, 12*3 = 36, then 6 + 36 = 42.
MCQs, short and long questions from lecture 4.Lecture 4 ki MCQs, short aur long sawal.
3 MCQs · 1 short question · 3 MCQs from past papers3 MCQs · 1 short sawal · 3 MCQs past papers se
What will be the result of arithmetic expression 6+48/4*3?
/ and * go left to right first: 48/4 = 12, 12*3 = 36, then 6 + 36 = 42.
In the given expression which operator will be evaluated first? 10 + (6 / 2) - 2 * 3?
The expression inside parentheses, 6 / 2, is evaluated first.
What will be the value of the variable output in the given piece of code? double output = 0; output = (2 + 2) * 4 + 2 / (4 - 2);
(2+2)*4 = 16 and 2/(4-2) = 1, so output is 17.
No MCQs match this filter.Is filter mein koi MCQ nahi.
Which arithmetic operators cannot have a floating point operand?
The modulus operator % works only with integer operands; e.g. 7.5 % 2 is a compile error (use fmod() for floating point remainders).
No long questions added yet.Abhi koi long sawal shamil nahi.