【单选题】【消耗次数:1】
4个元素按:A,B,C,D顺序连续进队Q,则队尾元素是( )。
A
B
C
D
参考答案:
复制
纠错
相关题目
【单选题】 若进队的序列为:A,B,C,D,则出队的序列是( )。
①  B,C,D,A
②  A,C,B,D
③  A,B,C,D
④  C,B,D,A
【单选题】 4个元素按A,B,C,D顺序进S栈,执行两次Pop(S,x)运算后,栈顶元素的值是( )。
①  A
②  B
③  C
④  D
【单选题】 设有一个顺序栈S,元素A,B,C,D,E,F,依次进栈,如果6个元素出栈的顺序是B,D,C,F,E,A,则栈的容量至少应是-( )。
①  3
②  4
③  5
④  6
【单选题】 元素a,b,c,d按顺序依次进栈,则该栈的可能输出序列是( )(进栈出栈可以交替进行)。
①  A.c,a,b,d
②  B.d,b,c,a
③  C.a,c,b,d
④  D.d,c,a,b
【单选题】 元素a,b,c,d按顺序依次进栈,则该栈的输出序列有可能是( )(进栈出栈可以交替进行)。
①  A.c,a,b,d和 d,b,a,c
②  B.d,b,c,a和 c,a,d,b
③  C.a,c,b,d 和c,b,d,a
④  D.d,c,a,b 和 a,c,b,d
【单选题】 依次在初始为空的队列中插入元素a,b,c,d以后,紧接着做了两次删除操作,此时的队头元素是( )。
①  a
②  b
③  c
④  d
【单选题】 设格中元素a,b,c,d,若a ≤ b和c ≤ d,下面哪个性质不满足:
①  a*c ≤ b*d;
②  a?c ≤ b?d;
③  a*c ≤ b?d;
④  a?c ≤ b*d。
【单选题】 设有一个栈,元素的进栈次序为A, B, C, D, E,下列是不可能的出栈序列( )。
①  A, B, C, D, E
②  B, C, D, E, A
③  E, A, B, C, D
④  E, D, C, B, A
【单选题】 设a=1,b=2,c=3,d=4,则表达式:a>b?a:c>d?a:d的结果为()
①  4
②  3
③  2
④  1
【单选题】 设顺序循环队列Q[0:M-1]的头指针和尾指针分别为F和R,头指针F总是指向队头元素的前一位置,尾指针R总是指向队尾元素的当前位置,则该循环队列中的元素个数为()。
①  R-F
②  F-R
③  (R-F+M)%M
④  (F-R+M)%M
随机题目
【单选题】 —Where is John? I couldn’t find him.— .
①  He is very busy
②  I suppose he could have gone to the meeting room
③  I couldn’t agree more
④  He is good.
【单选题】 —The advancement of technology has boosted the pace of our lives, and requires us to learn something new every day.— I have chosen the online program at OU.
①  Because
②  Now that
③  That is the reason why
④  For
【单选题】 But the Internet can bring some ________ effects, too. The most common one, some teenagers are addicted to computer games on the Internet.
①  negative
②  positive
③  important
④  excite
【单选题】 We can certainly deliver high-quality education to many students at much ________ cost.
①  low
②  lowest
③  lower
④  lowed
【单选题】 -Im sorry for breaking the cup.-Oh, ____ . Ive got plenty.
①  forget it
②  my pleasure
③  help yourself
④  try it
【单选题】 – What are your great strengths?–
①  I am very shy.
②  My job offers me high income.
③  I am very active in discussion.
④  I was very shy.
【单选题】 It is an open secret _____he is not a qualified manager.
①  that
②  which
③  what
④  when
【单选题】 The more peopleyou know, ___________knowledgeyouget.
①  the much
②  the more
③  more
④  much
【单选题】 -Weve worked for a long time, what about stopping a while to have a rest?-_____________________.
①  I like it.
②  You are wonderful.
③  Thats a good idea.
④  ok
【单选题】 We can certainly deliver high-quality education to many students at much ________cost.
①  low
②  lowest
③  lower
④  lowing