Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 2 (Q.No. 33)
33.
Consider the following statement in Basic

15 INPUT X, Y, Z
20 IF Y > X THEN 25
21 IF Z > Y THEN 30
25 PRINT Y
30 PRINT Z, X
35 END


IF X, Y, Z are 150, 200, 250 then the output will be
200, 250, 150 respectively
150, 200, 250 respectively
250, 200, 150 respectively
200, 150, 250 respectively
Answer: Option
Explanation:

In this case Y > X , so the control goes to 25. The output is Y , Z , X which are 200 , 250 , 150.

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.