Call Support +91-85588-96644
TCYonline

Login

Sign Up

Please enter a Username or Email ID
Please enter a password
Keep me logged in
Please enter your name
Please enter your mobile number
You can't leave Captcha Code empty
By submitting this form, you agree to the Terms & Privacy Policy.
OR

Sign Up via Facebook

Sign Up via Google

Sign Up via Twitter

Download Software
Tests given

Download TCY App

App Image

What will be the output of the following algorithm?
STEP 1: Start
STEP 2: Let a = 1
STEP 3: Print a
STEP 4: Let b = 1
STEP 5: Print b
STEP 6: Let i = 5
STEP 7: Let the value of c = a + b
STEP 8: Let the value of i = i - 1
STEP 9: If the value of i = 0 then goto STEP 14
STEP 10: Print the value of c
STEP 11: Let the value of a = b
STEP 12: Let the value of b = c
STEP 13: Goto STEP 7
STEP 14: Stop

 
1 1 2 3 5 8
1 1 2 3 5
1 1 2 3 5 8 13
None of these

Reply


Please type your answer before submitting.
Submit

? is printed in que instead of - in step 8