This topic contains 0 replies, has 0 voices, and was last updated by  EduGorilla 2 years, 5 months ago.

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


    Directions: The steps of a staircase leading from floor 1 to floor 2 are numbered as 0, 1,……, M. 0 is on level with floor 1 below and M is on level with floor 2. A robot is positioned at step 0. There are 4 instructions, which the robot obeys.
    1.     FORWARD, n    :   Climb up by n steps from current one. If M is reached, stop at M.

    2.     BACKWARD, n :   Climb down by n steps from current one. If 0 is reached, stop at 0.
    3.     HOP UP, n       :   Climb up n times, taking alternate steps. If M is reached, stop at M.
    4.     HOP DOWN, n  :  Climb down n times, taking alternate steps. If 0 is reached stop at 0. If I is reached, stop at 0.

    Let step number, before operation = x1, after operation = x2

    FORWARD, 5
    HOP UP, 2
    BACKWARD, 2
    If x2 = 10, then which of the following is true?

    Options :-

    1. x1 = 6 if M = 12
    2. x1 = 3 if M = 10
    3. Both (1) and (2)
    4. None of these
    5. Can't say
    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: Directions: The steps of a staircase leading from floor 1 to floor 2 are numbered as 0, 1,…&h….
Your information:




Verify Yourself




Log in with your credentials

or    

Forgot your details?

Create Account