对
错
第1题:
在一个单链表中,p、q分别指向表中两个相邻的结点,且q所指结点是p所指结点的直接后继,现要删除q所指结点,可用的语句是()。
A.p=q->next
B.p->next=q
C. p->next=q->next
D.q->next=NULL
第2题:
A、p->next=q->next
B、q->next=NULL
C、p->next=q
D、p=q->next
第3题:
第4题:
A.p=s->next
B.p->next=s;s->next=p->next
C.p->next=s->next;
D.s->next=p->next;p->next=s;
第5题:
A、q->next=x->next;x->next=p;
B、s->next=p;q->next=x->next;
C、p->next=x->next;x->next=p;
D、x->next=q;p->next=x->next;
第6题:
A.p->next=q;q->prior=p;p->next->prior=q;q->next=q;
B.p->next=q;p->next->prior=q;q->prior=p;q->next=p->next;
C.q->prior=p;q->next=p->next;p->next->prior=q;p->next=q;
D.q->prior=p;q->next=p->next;p->next=q;p->next->prior=q;
第7题:
此题为判断题(对,错)。
第8题:
A、p->next=q;q->prior=p;p->next->prior=q;q->next=q;
B、q->prior=p;q->next=p->next;p->next->prior=q;p->next=q;
C、q->next=p->next;q->prior=p;p->next=q;p->next=q;
D、p->next=q;p->next->prior=q;q->prior=p;q->next=p->next;
第9题:
A、p->next=p->next->next;
B、p->next=p->next;
C、p=p->next;
D、p=p->next->next;
第10题:
A、s->next=p->next;p->next=s
B、q->next=s;s->next=p
C、p->next=s->next;s->next=p
D、p->next=s;s->next=q