These questions are based on the situation given below: A robot moves on a graph-sheet with x and y axes. The robot is moved by feeding it with a sequence of instructions. The different instructions that can be used in moving it, and their meanings are:
Instruction | Meaning |
---|---|
GOTO(x, y) | Move to point with coordinates (x, y) no matter where you are. |
WALKX(p) | Move parallel to the x-axis through a distance of p, in the positive direction if p is positive, and in the negative direction if p is negative. |
WALKY(p) | Move parallel to the y-axis through a distance of p, in the positive direction if p is positive, and in the negative direction if p is negative. |
When $10^{100}$ is divided by 7, the remainder is ?