Consider the following program.
i := 0;
while i<10 do
{ print (i);
i := 5;
print (i);
i := 50;
print (i); }
The output is
begins with the statement p := *p.next. What is the purpose of this statement?
just a pointer. Most of the following statements are correct, but one
is not. Which statement is NOT true?
a register, and it then compares that register with 0 and the maximum
valid command code. If the command is not valid the program skips the
command. Which statement is correct?
several commands (insert, delete, etc.). The choice of command is
specified by an integer chosen from a sequence of consecutive integers
0, 1, 2, ... Which of the following statements is NOT correct?
a value field (containing an integer) and a next field (containing
a pointer to the next node in the list). Suppose R3 contains a pointer
to the list.
Why should the program compare R3 with nil before it performs R3 := (*R3).next?
a value field (containing an integer) and a next field (containing
a pointer to the next node in the list). Suppose R3 contains a pointer
to a node in the list.
Which of the following will implement R3 := (*R3).next?
A linked list consists of nodes, where each node is a record with
a value field (containing an integer) and a next field (containing
a pointer to the next node in the list). Suppose R3 contains a pointer
to a list.
Which of the following will jump to Done if the list is empty?