Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

Which of the following is a valid BASIC expression
Options
A A-2*3*r
B A:=2*3.14 r
C A=2*3.14*r
Correct Answer
D A:-2*8*r
Correct Answer

Option C is the correct answer.

Detailed Explanation

In traditional BASIC, the assignment operator is often the equals sign '='. The expression 'A=23.14r' correctly assigns the result of the calculation to variable A.

Hint

BASIC uses '=' for assignment in most classic versions.

Question Info