Concept:QBasic uses the asterisk
∗ for multiplication and the forward slash
/ for division.
Explanation:The mathematical expression is read as
p plus
q multiplied by the fraction
sr.
In ordinary notation, it can be written as
x=p+q×sr.
QBasic does not recognise
× or
÷ as operator symbols.
So multiplication is replaced with
∗, and division is replaced with
/.
The parentheses must be kept to show that
sr is evaluated first.
Thus, the correct QBasic statement is
X=P+Q∗(R/S).
Option A and Option D wrongly introduce an extra equals sign in the expression.
Option C uses a multiplication cross and a backslash, which are not valid QBasic operators.
Therefore, only option B matches the required programming syntax.
Answer:B:
X=P+Q∗(R/S)