Home
Class 14
MATHS
In following algorithm x,y and z are var...

In following algorithm x,y and z are variables which change their values in each step such that the value of the expression on the right hand side is assigned to the variable on the left hand side of the equation. Each cycle consists of 5 steps. `S_1, S_2, S_3`,....are the sum of each corresponding cycle 1,2,3...
START
Step 0. x=1, y=-2, z=3
Step 1. x=y-z
Step 2. y=z-x
Step 3. z=x-y
Step 4. S=x+y+z
Step 5. Go to step 1.
What is the value of `S_4` ?

A

987

B

754

C

-178

D

none of these

Text Solution

Verified by Experts

The correct Answer is:
B
Promotional Banner

Topper's Solved these Questions

  • ELEMENTS OF ALGEBRA

    QUANTUM CAT|Exercise QUESTION BANK|196 Videos
  • GEOMETRY

    QUANTUM CAT|Exercise QUESTION BANK|547 Videos
QUANTUM CAT-FUNCTIONS AND GRAPHS-QUESTION BANK
  1. A on reaction with Br-Cl gives :

    Text Solution

    |

  2. In following algorithm x,y and z are variables which change their valu...

    Text Solution

    |

  3. In following algorithm x,y and z are variables which change their valu...

    Text Solution

    |

  4. If x+y +z=0, then (x+y) (y+z) (z+x) is equal to which of the followin...

    Text Solution

    |

  5. How much water would be there in bottle labelled L after the execution...

    Text Solution

    |

  6. After executing a sequence of 6 instructions, bottle K has half of the...

    Text Solution

    |

  7. In which of the following both pairs have correct combination ?

    Text Solution

    |

  8. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  9. Solve the following questions on the basis of following functions P(...

    Text Solution

    |

  10. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  11. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  12. Solve the following questions on the basis of following functions P(...

    Text Solution

    |

  13. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  14. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  15. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  16. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  17. Solve the following questions on the basis of the following questions ...

    Text Solution

    |

  18. If x^(y) =k, then

    Text Solution

    |

  19. If x^(y) =k, then

    Text Solution

    |

  20. If x^(y) =k, then

    Text Solution

    |