GO BOTTOM and SKIP-3 commands are given one after another in a database file…

2013

GO BOTTOM and SKIP-3 commands are given one after another in a database file of 30 records. It shifts the control to

  1. A.

    28th record

  2. B.

    27th record

  3. C.

    3rd record

  4. D.

    4th record

Attempted by 55 students.

Show answer & explanation

Correct answer: B

Solution: Determine the position after each command.

  • Step 1: GO BOTTOM moves the pointer to the last record, which is record number 30.

  • Step 2: SKIP -3 moves three records backward from the current position.

  • Step 3: Calculate the result: 30 (current) - 3 = 27, so the control shifts to the 27th record.

Note: A positive SKIP n moves forward n records; a negative SKIP (for example SKIP -3) moves backward n records.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…