This topic contains 0 replies, has 0 voices, and was last updated by  EduGorilla 1 year, 11 months ago.

  • Author
    Posts
  • #742944 Reply
     EduGorilla 
    Keymaster
    Select Question Language :


    While (x > 0)
    {
    y=x;
    x=x-1;
    }

    Which of the following group contains equivalent for loops to the above while loop?
    P.        for (; x>0; x- -) y=x;
    Q.        for (; x>0;){y=x; x=x-1;}
    R.        for (;;){y=x; x=x-1; if (x<=0) break;}
    S.        for (;;x- -) {y= x; if (x<=0) break;}

    Options :-

    1. P, Q
    2. P, R
    3. R, S
    4. Q, R
    Post your Training /Course Enquiry
    Are You looking institutes / coaching center for
    • IIT-JEE, NEET, CAT
    • Bank PO, SSC, Railways
    • Study Abroad
    Select your Training / Study category
Reply To: While (x > 0){y=x;x=x-1;}Which of the following group contains equivalent for loops to the above ….
Your information:




GET UPTO 50%    OFF!
Verify Yourself




Log in with your credentials

or    

Forgot your details?

Create Account