• edited ago by
1,505 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, $5$; REGRESS, $4$. Which of the following statements about the above instructions is true? 

  1. $n2 = n1+4$ Provided $1 < n1 < 7$
  2. $n2 = n1$ provided $M < 6$
  3. $n2 = n1 + 1$ provided $M - n1 > 5$ 
  4. $n2 - n1 < 0$ provided $M > 0$ 

1 Answer

0 0 votes

Let the initial page number be $n1$ and the final page number be $n2$. The total number of pages is $M+1$, numbered $0$ to $M$.

The sequence of instructions is: ONWARD, 5; REGRESS, 4.

  1. Starting from page $n1$, the instruction ONWARD, 5 is executed. The new page number, let's call it $p_{intermediate}$, is given by:
$p_{intermediate} = \min(n1 + 5, M)$
  1. From page $p_{intermediate}$, the instruction REGRESS, 4 is executed. The final page number, $n2$, is given by:
$n2 = \max(p_{intermediate} - 4, 0)$

Combining these two steps, we get a single formula for $n2$:
$n2 = \max(\min(n1 + 5, M) - 4, 0)$

Now, we will evaluate each of the given options using this formula.

A. $n2 = n1+4$ Provided $1 \lt n1 \lt 7$
Let's test this with a value. Let $M=20$ and $n1=2$. The condition $1 \lt n1 \lt 7$ is met.
$n2 = \max(\min(2 + 5, 20) - 4, 0) = \max(\min(7, 20) - 4, 0) = \max(7 - 4, 0) = 3$.
Here, $n2 = 3$ and $n1 = 2$. So, $n2 = n1 + 1$, which is not equal to $n1+4$. Thus, this statement is false.

B. $n2 = n1$ provided $M \lt 6$
The condition is $M \lt 6$, which means $M \le 5$.
Since $n1 \ge 0$, we have $n1 + 5 \ge 5$.
Therefore, $n1 + 5 \ge M$. This implies $\min(n1 + 5, M) = M$.
The formula for $n2$ becomes $n2 = \max(M - 4, 0)$.
The value of $n2$ depends only on $M$, not on $n1$. The statement claims $n2 = n1$, which cannot be true for all possible values of $n1$. For instance, if $M=5$ and $n1=1$, then $n2 = \max(5-4, 0) = 1$. In this case, $n2=n1$. But if $n1=2$, $n2$ is still $1$. So $n2 \ne n1$. Thus, this statement is false.

C. $n2 = n1 + 1$ provided $M - n1 \gt 5$
The condition $M - n1 \gt 5$ is equivalent to $M \gt n1 + 5$.
With this condition, $\min(n1 + 5, M) = n1 + 5$.
The formula for $n2$ becomes $n2 = \max((n1 + 5) - 4, 0) = \max(n1 + 1, 0)$.
Since page numbers are non-negative, $n1 \ge 0$. This implies $n1 + 1 \ge 1$.
Therefore, $\max(n1 + 1, 0) = n1 + 1$.
So, under the given condition, $n2 = n1 + 1$. This statement is true.

D. $n2 - n1 \lt 0$ provided $M \gt 0$
This statement claims that the final page number is always less than the initial one.
As shown in the analysis for option C, if we pick $n1$ and $M$ such that $M - n1 \gt 5$ (for example, $M=10, n1=2$), we get $n2 = n1 + 1$.
In this case, $n2 - n1 = 1$, which is not less than 0. This provides a counterexample. Thus, this statement is false.

ago
Position:
Show:
Answer:

Related questions

1 1 vote
1 1 answer
3.1k
3.1k views
go_editor asked Apr 27, 2016
3,123 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,876 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,418 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,134 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,406 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

×