User Forum

Subject :NCO    Class : Class 6

Given below is an arithmetic expression. Which of the following parts of the expression will be calculated first in QBASIC?
A+B/5*C-D2
AB/3
BD2
CA+B
D5*C


The answer should be B/5 according to BODMAS rule.

Ans 1: (Master Answer)

Class : Class 1
QBASIC can handle arithmetic expression involving the five arithmetic operators + (addition), - (subtraction), * (multiplication, / (division) and ^ (exponentiation). The hierarchy of operations is as follows: Exponential Multiplication and division Addition and subtraction

Post Your Answer