User Forum

Subject :NCO    Class : Class 6

Study the given QBASIC code carefully and answer the question that follow.
What will this QBASIC code print on screen.
AEven numbers between 1 and 40.
BOdd number between 1 and 40.
CEven numbers between 1 and 41.
DCounting from 1 to 40.


How is this correct ?Could anyone explain me ?

Ans 1:

Class : Class 7
Program is wrong.

Ans 2:

Class : Class 8
Answer is B First the value of b variable is 1. Then according to the TWO label it is 3 . this goes on and on until the value of b variable is 49. After this the program will end

Post Your Answer