Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

Which of the following option is the correct representation of the following statement? e = a * b + c / d * f
Options
A e = ((a*b) + (c / (d*f)))
Correct Answer
B e = (a*(b + c) / d * f)
C e = (a*b + c) / (d*f)
D e = (a*(b + (c / (d*f))))
Correct Answer

Option A is the correct answer.

Detailed Explanation

Following operator precedence (multiplication and division before addition), the expression e = a * b + c / d * f is correctly represented as e = ((ab) + (c / (df))).

Hint

Remember BODMAS/PEMDAS rules for operator precedence.

Question Info