Microprocessors - Engineering

Q1:

Consider the following program in Basic

10 READ X, Y, Z
15 DATA 20, 30, 10
20 S = X + Y + Z
30 A = S/3
35 PRINT S, A, X, Y, Z
40 END


The output will be

A 60, 20, 20, 30, 10

B 10, 30, 20, 20, 60

C 60, 20, 30, 10, 20

D 60, 30, 10, 20, 20

ANS:A - 60, 20, 20, 30, 10

.