A.are
B. was
C. were
D. is
参考答案:C
第1题:
已知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;
第2题:
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题:
定义状态机当前状态为state ,次态为next _state; 输入a,输出b, 则下列为Mealy状态机的写法是:
A.always@(posedge clk) case (state ) 0:next_state<=1; 1:next_state<=x;#B.always@(posedge clk) case (state ) 0: if(a==0)next_state<=1; else next_state<=x; 1:next_state<=x;#C.always@(posedge clk) case (state ) 0: if(state==0)next_state<=1; else next_state<=x; 1:next_state<=x;#D.以上都不对第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题:
已知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;
第6题:
定义状态机当前状态为state ,次态为next _state; 输入a,输出b, 则下列为Mealy状态机的写法是:
A.always@(posedge clk) case (state ) 0:next_state<=1; 1:next_state<=x;#B.always@(posedge clk) case (state ) 0: if(a==0)next_state<=1; else next_state<=x; 1:next_state<=x;#C.always@(posedge clk) case (state ) 0: if(state==0)next_state<=1; else next_state<=x; 1:next_state<=x;#D.以上都正确