Full width home advertisement

Grade 10 Revision

Post Page Advertisement [Top]

Outputs Class 9

Outputs Class 9









QBASIC OUTPUTS

Note: For better results, try the code on your Q-BASIC compiler.

1.Write down the output of the given program. Show with dry run in table.
CLS
A=10
B=20
C=30
Avg= (A+B+C)/3
PRINT “Average of three numbers is ” ; Avg
END

2. Write down the output of the given program. Show with dry run in table.
CLS
P=100
T=5
R=10
I= (P*T*R)/100
PRINT “Simple Interest is ” ; I
END


3. Write down the output of the given program. Show with dry run in table.
CLS
A= 256
WHILE A<>0
R=A MOD 10
S = S+R
A=A\10
WEND
PRINT”THE RESULT IS”;S
END

4. Write down the output of the given program. Show with dry run in table.
CLS
A= 555
S=1
WHILE A<>0
R=A MOD 10
S = S*R
A=A\10
WEND
PRINT”THE RESULT IS”;S
END




5.Write down the output of the given program. Show with dry run in table.
CLS
U=10
T=30
A=5
V= U + A * T
PRINT “Final Velocity is ” ; V
END


6. Write down the output of the given program. Show with dry run in table.
CLS
A= 123
WHILE A<>0
R=A MOD 10
S = S+R^2
A=A\10
WEND
PRINT”THE RESULT IS”;S
END

No comments:

Post a Comment

Bottom Ad [Post Page]