【判断题】【消耗次数:1】
队列的插入操作在队尾进行。
正确
错误
参考答案:
复制
纠错
相关题目
【判断题】 以下说法不正确的是队列的插入操作在队尾进行,删除操作在队头进行。
①  正确
②  错误
【单选题】 用不带头结点的单链表存储队列时,其队头指针指向队头结点,其队尾指针指向队尾结点,则在进行删除操作时( )。
①  仅修改队头指针
②  仅修改队尾指针
③  队头、队尾指针都要修改
④  队头、队尾指针都可能要修改
【单选题】 队列的插入操作是在( )。
①  队尾
②  队头
③  队列任意位置
④  队头元素后
【判断题】 在队列中允许删除的一端称为队尾。
①  正确
②  错误
【判断题】 用循环单链表表示的链队列中,可以不设队头指针,仅在队尾设置队尾指针。
①  正确
②  错误
【单选题】 设指针变量front表示链式队列的队头指针,指针变量rear表示链式队列的队尾指针,指针变量s指向将要入队列的结点X,则入队列的操作序列为()。
①  front-next=s;front=s;
②  s-next=rear;rear=s;
③  rear-next=s;rear=s;
④  s-next=front;front=s;
【判断题】 在链队列上进行出队操作时,会改变front指针的值。
①  正确
②  错误
【单选题】 在一个链队列中,假定front和rear分别为队首和队尾指针,则删除一个结点的操作为( )。
①  front=front->next
②  rear=rear->next
③  rear=front->next
④  front=rear->next
【单选题】 循环队列的队头和队尾指针分别为front和rear,则判断循环队列为空的条件是( )。
①  front==rear
②  front==0
③  rear==0
④  front=rear+1
【单选题】 循环队列A[m] 存放其元素,用front和rear分别表示队头及队尾,则循环队列满的条件是( )。
①  A.(rear+1)%m=front
②  B.rear=front+1
③  C.rear=front
④  D.(rear+1)%m-1=front
随机题目
【单选题】 _______ smart the driverless car is!
①  What a
②  How a
③  What
④  How
【单选题】 Last month, the little girl _______ well enough by the neighbors while her parents were volunteering.
①  is cared for
②  was cared for
③  will be cared for
④  cares for
【单选题】 ______ a year does your school have sports meeting?Twice a year.
①  How often
②  How soon
③  How long
④  How many times
【单选题】 Don’t worry. We have _______ to finish the work carefully.
①  enough time
②  less time
③  little time
④  few times
【单选题】 ______ either you or I good at drawing?
①  Am
②  Are
③  Is
④  Do
【单选题】 The room ______ as a meeting room.
①  used to being used
②  was used to being used
③  used to be used
④  was used to be used
【单选题】 Don’t _______ our hopes. As long as we pull together, we’ll make it.
①  give up
②  give out
③  give back
④  give away
【单选题】 Every morning, Tim often sees groups of middle-aged women _______ in the square.
①  dance
②  to dance
③  dances
④  danced
【单选题】 We decided to _______ to help the sick children with their homework.
①  go to the hospital
②  went to a hospital
③  going to a hospital
④  went to the hospital
【单选题】 You should _______ your shoes before you enter the dancing room.
①  get off
②  put off
③  take off
④  fall off