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
- A.
28th record
- B.
27th record
- C.
3rd record
- 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.
Loading lesson…