Categories: Computer Studies WAEC

The last output that will be displayed by the program is?

10 LET K = 2

20 LET L = 9

30 LET SUM = 0

40 FOR J = K TO STEP 2

50 SUM = SUM + J2
60 PRINT “ANSWER =”, SUM

70 NEXT J

80 END

 

A. 20
B. 36
C. 64
D. 120

Correct Answer:

Option D – 120

Sunday

Share
Published by
Sunday

Recent Posts

ETM 312 Theory Questions: Land Law and the Consequences of Unauthorized Land Transfers in Nigeria

300 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago

ETM 312 Theory Questions: Co-Ownership Structures and Land Acquisition Methods in Nigeria

200 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago

ETM 312 Theory Questions: Rights in Community Land and Fundamental Land Concepts in Nigeria

200 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago

ETM 312 Theory Questions: Customary Land Control and the Origins of Nigeria’s Land Use Act

200 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago

ETM 312 Theory Questions: Land Ownership Principles and Transaction Laws in Nigeria

200 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago

ETM 226 Theory Questions: Trespass: Types and Defenses in Property Law

200 Level Estate Management and Valuation Department exam questions and detailed answers. Download the answers…

5 months ago