【单选题】【消耗次数:1】
队列的插入操作是在( )。
队尾
队头
队列任意位置
队头元素后
参考答案:
复制
纠错
相关题目
【判断题】 以下说法不正确的是队列的插入操作在队尾进行,删除操作在队头进行。
①  正确
②  错误
【单选题】 用不带头结点的单链表存储队列时,其队头指针指向队头结点,其队尾指针指向队尾结点,则在进行删除操作时( )。
①  仅修改队头指针
②  仅修改队尾指针
③  队头、队尾指针都要修改
④  队头、队尾指针都可能要修改
【判断题】 队列的插入操作在队尾进行。
①  正确
②  错误
【单选题】 循环队列A[m] 存放其元素,用front和rear分别表示队头及队尾,则循环队列满的条件是( )。
①  A.(rear+1)%m=front
②  B.rear=front+1
③  C.rear=front
④  D.(rear+1)%m-1=front
【判断题】 用循环单链表表示的链队列中,可以不设队头指针,仅在队尾设置队尾指针。
①  正确
②  错误
【单选题】 最大容量为n的循环队列,队尾指针是rear,队头是front,则队空的条件是( )。
①  (rear+1) % n==front
②  rear==front
③  rear+1==front
④  (rear-1) % n==front
【单选题】 最大容量为n的循环队列,队尾指针是rear,队头是front,则队满的条件是( )。
①  (rear+1) % n==front
②  rear==front
③  rear+1==front
④  (rear-l) % n==front
【单选题】 设顺序循环队列Q[0:M-1]的头指针和尾指针分别为F和R,头指针F总是指向队头元素的前一位置,尾指针R总是指向队尾元素的当前位置,则该循环队列中的元素个数为()。
①  R-F
②  F-R
③  (R-F+M)%M
④  (F-R+M)%M
【单选题】 循环队列的队头和队尾指针分别为front和rear,则判断循环队列为空的条件是( )。
①  front==rear
②  front==0
③  rear==0
④  front=rear+1
【单选题】 用单链表表示的链式队列的队头在链表的( )位置。
①  A.链头
②  B.链尾
③  C.链中
④  D.任意位置
【单选题】 设指针变量front表示链式队列的队头指针,指针变量rear表示链式队列的队尾指针,指针变量s指向将要入队列的结点X,则入队列的操作序列为()。
①  front-next=s;front=s;
②  s-next=rear;rear=s;
③  rear-next=s;rear=s;
④  s-next=front;front=s;
随机题目
【单选题】 Notuntilherclassmatecriticizedher______ toadmithermistake.
①  does she begin
②  did she begin
③  began she
④  had she begun
【单选题】 Were it not for the rainny weather, they______ all right.
①  would be
②  may be
③  would have been
④  were
【单选题】 OK, 1000 Yuan for one rug. That’s the ______!
①  dear
②  deal
③  trade
④  trading
【单选题】 Keeping eye contact ______ respect for the interviewer and your confidence.
①  says
②  pays
③  throws
④  shows
【单选题】 Seeing the enemy, the hero was behaving as though nothing______.
①  was happening
②  would happen
③  had happened
④  happened
【单选题】 __Why didn’t John call me ? __Oh, his cell-phone ran out of power, otherwise he______ you.
①  had called
②  would have called
③  called
④  would call
【单选题】 I enjoyed the movie very much. I wish I______ the book from which it was made.
①  have read
②  had read
③  should have read
④  are reading
【单选题】 Silveristhebestconductorofelectricity,copper_______itclosely.
①  followed
②  following
③  to follow
④  being followed
【单选题】 But for the party, the old man______of hunger fifteen years ago.
①  must die
②  must have died
③  would die
④  would have died
【单选题】 _____withthesizeofthewholeearth,thehighestmountaindoesnotseemhighatall.
①  When compared
②  Compare
③  While comparing
④  Comparing