Important MCQ

The value of 7 / 2.0 is

Q.The value of 7 / 2.0 is

A) 4
B) 3.5
C) 3
D) 2
Correct Answer:
Option B
Detailed Explanation:
B) 3.5 is correct. Arithmetic operators include +, -, *, /, %, ++ and --. Integer division produces an integer result; postfix uses the old value before updating, while prefix updates first.