Electronics and Communication Engineering - Microprocessors - Discussion
Discussion Forum : Microprocessors - Section 2 (Q.No. 33)
33.
Consider the following statement in Basic
IF X, Y, Z are 150, 200, 250 then the output will be
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
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers