edited by
1,836 views
0 0 votes

Answer the questions based on following data.

The pages of a book are numbered $0, 1, 2 …$ upto $M, M >0$. There are four categories of instructions that direct a person in positioning the book at a page. The instruction types and their meanings are :

  1. NEW : Position the book at page No. $1$ 
  2. END : Position the book at page No. $0$ 
  3. ONWARD, $n$ :From the current page move forward by $n$ pages; if, in this process, page number $M$ is reached, stop at $M$. 
  4. REGRESS, $n$ : From the current page, move backward by $n$ pages; if in this process, page number $0$ is reached, stop at page number $0$.

In each of the following questions, you will find a sequence of instructions formed from the above categories. In each case, let $n1$ be the page number before the instructions are executed and $n2$ be the page number at which the book is positioned after the instructions are executed. 

ONWARD, $10$; ONWARD, $10$. Which of the following statements about the above instructions is true? 

  1. $n2 - n1=20$ only if $n1=0$ 
  2. $n2 - n1=20$ if $M>20$ and $n1=1$ 
  3. $n2 - n1=10$ if $M=21$ and $n1=0$ 
  4. $n2 > n1$ if $M > 0$ 

1 Answer

0 0 votes

ONWARD, 10 ; ONWARD, 10 would effectively mean a ONWARD 20 i.e. n2-n1 = 20, (if M n1
≥ 20) .or n2 = M (if M n1 < 20). if M>20 and n1=1,then M n1 > 20, and hence n2-n1 = 20.

Ans is (B)

Position:
Show:

Related questions

0 0 votes
0 0 answers
1.7k
1.7k views
Misbah Ghaya asked Jan 17, 2016
1,663 views
Hidden Island is an obscure island which is inhabited by two types of people: the 'Yes‘ type and the 'No‘ type. Native of type 'Yes‘ ask only questions the right answer t...
1 1 vote
0 0 answers
1.1k
1.1k views
Anjana5051 asked Jul 14, 2022
1,122 views
Directions for questions: Answer the questions based on the following information. $A$ and $B$ are two sets (e.g. A = Mothers, B = Women). $C = A . B \implies$ The elemen...
1 1 vote
0 0 answers
1.2k
1.2k views
Anjana5051 asked Jul 14, 2022
1,209 views
Directions for questions: Answer the questions based on the following information. $A$ and $B$ are two sets (e.g. A = Mothers, B = Women). $C = A . B \implies$ The elemen...
0 0 votes
0 0 answers
1.1k
1.1k views
Anjana5051 asked Jul 14, 2022
1,111 views
Directions for questions: Answer the questions based on the following information. $A$ and $B$ are two sets (e.g. A = Mothers, B = Women). $C = A . B \implies$ The elemen...
0 0 votes
0 0 answers
1.4k
1.4k views
Anjana5051 asked Jul 14, 2022
1,421 views
Recently, Rajesh visited the local casino where he came across a new card game. Two players, using a normal deck of $52$ playing cards, play this game. One player is call...