• edited ago by
1,370 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. 

$\text{ONWARD, 25 ; REGRESS, 10.}$ which of the following statements is true? 

  1. $n1=n2$ if $M=10$ and $n1=0$ 
  2. $M=20$ provided $n1>0$ 
  3. $n1>30$ provided $M=900$ 
  4. $n1=37$ provided $M=25$ 

1 Answer

0 0 votes

Let the current page be $p$. The instructions are:
ONWARD, 25: The new page is $\min(p+25, M)$.
REGRESS, 10: The new page is $\max(p-10, 0)$.

The sequence of instructions starts at page $n1$.

  1. After ONWARD, 25, the page number becomes $p_{intermediate} = \min(n1 + 25, M)$.
  2. After REGRESS, 10, the final page number is $n2 = \max(p_{intermediate} - 10, 0)$.

Combining these, we get the formula for $n2$:
$n2 = \max(\min(n1 + 25, M) - 10, 0)$.

Now, we evaluate each option:

A. $n1=n2$ if $M=10$ and $n1=0$.
Let's substitute $M=10$ and $n1=0$ into the formula for $n2$:
$n2 = \max(\min(0 + 25, 10) - 10, 0)$
$n2 = \max(\min(25, 10) - 10, 0)$
$n2 = \max(10 - 10, 0)$
$n2 = \max(0, 0) = 0$.
Since $n1=0$, we have $n2=0$, so $n1=n2$. This statement is true.

B. $M=20$ provided $n1 \gt 0$.
This means that if $n1 \gt 0$, then $M$ must be $20$. This is not a necessary condition imposed by the problem. We can have a valid scenario with $n1=5$ and $M=100$. Thus, the statement is false.

C. $n1 \gt 30$ provided $M=900$.
This means that if $M=900$, then $n1$ must be greater than $30$. This is also not a necessary condition. We can have a valid scenario with $M=900$ and $n1=10$. Thus, the statement is false.

D. $n1=37$ provided $M=25$.
This means that if $M=25$, then $n1$ must be $37$. This is impossible. If the maximum page number $M$ is $25$, the pages are numbered $0, 1, ..., 25$. The initial page $n1$ must be in this range, so it cannot be $37$. Thus, the statement is false.

Only statement A is true.

ago
Position:
Show:
Answer:

Related questions

1 1 vote
1 1 answer
3.1k
3.1k views
go_editor asked Apr 27, 2016
3,133 views
Answer the questions based on following data.A dealer deals only in colour TVs and VCRs. He wants to spend up to $Rs.12$ lakhs to buy $100$ pieces. He can purchase a colo...
1 1 vote
1 1 answer
1.9k
1.9k views
go_editor asked Apr 27, 2016
1,889 views
Answer the questions based on following data.A dealer deals only in colour TVs and VCRs. He wants to spend up to $Rs.12$ lakhs to buy $100$ pieces. He can purchase a colo...
0 0 votes
1 1 answer
1.4k
1.4k views
go_editor asked Apr 27, 2016
1,429 views
Directions for Questions:Answer the following questions based on the information from an airline about their passengers (pax) in particular sectors is given below: The pr...
1 1 vote
1 answers 1 answer
2.1k
2.1k views
go_editor asked Apr 27, 2016
2,149 views
Directions for Questions:Answer the following questions based on the information from an airline about their passengers (pax) in particular sectors is given below: The pr...
0 0 votes
1 1 answer
1.4k
1.4k views
go_editor asked Apr 27, 2016
1,423 views
Directions for Questions:Answer the following questions based on the information from an airline about their passengers (pax) in particular sectors is given below: The pr...

Add Synced Question

×