According to the last paragraph, “paper plates” is to “china” as ________.
[A] “temporary” is to “permanent”
[B] “radical” is to “conservative”
[C] “functional” is to “artistic”
[D] “humble” is to “noble”
第1题:
数组q[M]存储一个循环队,first和last分别是首尾指针。当前队中元素个数为_____。
A.(last- first+M)%M
B.last-first+1
C.last-first-1
D.last-first
第2题:
已知last指向单向简单链表的尾结点,将s所指结点加在表尾,正确的操作是____。
A.s->next=s,last=s,last->next=NULL;
B.last->next=s,s->next=NULL,last=s;
C.s->next=NULL, last->next=s, s=last;
D.s->next=last, last->next=NULL,last=s;
第3题:
已知last指向单向简单链表的尾结点,将s所指结点加在表尾,不正确的操作是____。
A.s->next=NULL, last->next=s,last=s;
B.s->next=NULL, last->next=s, s=last;
C.last->next=s,s->next=NULL,last=s;
D.last->next=s,last=s,last->next=NULL;
第4题:
已知last指向单向简单链表的尾结点,将s所指结点插入在表尾,正确的操作是____。
A.s->next=s,last=s,last->next=NULL;
B.last->next=s,s->next=NULL,last=s;
C.s->next=NULL, last->next=s, s=last;
D.s->next=last, last->next=NULL,last=s;
第5题:
2、已知last指向单向简单链表的尾结点,将s所指结点插入在表尾,正确的操作是____。
A.s->next=s,last=s,last->next=NULL;
B.last->next=s,s->next=NULL,last=s;
C.s->next=NULL, last->next=s, s=last;
D.s->next=last, last->next=NULL,last=s;
第6题:
11、数组q[M]存储一个循环队,first和last分别是首尾指针。如果使元素x出队操作的语句为“first=(first+1)%m, x=q[first];”。那么元素x进队的语句是_____。
A.last=(last+1)%m,q[last]=x;
B.x=q[last], last =(last+1)%m;
C.q[last+1]=x;
D.q[(last+1)%m]=x;