CAT Quant Practice Problems

Question: The pages of a book are numbered 0, 1, 2 … up to 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. OPEN : Position the book at page No. 1

2. CLOSE : Position the book at page No. 0

3. FORWARD, n :From the current page move forward by n pages; if, in this process, page number M is reached, stop at M.

4. BACKWARD, 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 n1be the page number before the instructions are executed and n2be the page number at which the book is positioned after the instructions are executed.

BACKWARD, 5; FORWARD, 5. Which of the following statements is true about the above set of instructions?

n1 = n2provided n1\( \ge \) 5
n1= n2provided n1> 0
n2= 5 provided M > 0
n1> n2provided M > 0
Show Answer
Please Login to see the answer

Back to Main Page

CAT Quant Online Course

  • 1000+ Practice Problems
  • Detailed Theory of Every Topics
  • Online Live Sessions for Doubt Clearing
  • All Problems with Video Solutions
₹ 2999
CAT Quant Practice Problems
4.7 (94.55%) 11 votes