
【名词&注释】
数据结构(data structure)、后进先出(lifo)、不允许(not allow)
[单选题]下列数据结构中,能够按照“先进后出”原则存取数据的是
A. 循环队列
B. 栈
C. 队列
D. s-叉树
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]下面关于C++语言变量的叙述错误的是
A. C++语言中变量分为auto、static、extern和register4种存储类型
B. 自动变量和外部变量的作用域为整个程序
C. 内部静态变量的作用域是定义它的函数
D. 外部静态变量的作用域是定义它的文件
[单选题]下面程序的输出结果是【9】。
A. include
B. void main()
C. {
D. int a[6]={1,2,3,4,5,6};
E. for(int i=0;i <5;i++)
F. cout $amp;cout <
G. }
[单选题]下列程序的输出结果为( )。 public class Reentrant { public synchronized void a() { b(); System.out.println("here I am,in a()"); } public synchronized void b() { System.out.println("here I am,in b()"); } public static void main(String args[]) { Reentrant r=new Reentrant(); r.a(); } }
A. here I am,in a()/here I am,in b()
B. here I am,in b()/here I am,in a()
C. here I am,in a()
D. here I am,in b()
[单选题]用来显示报表的标题,图形或说明性文字的是( )。
A. 报表页眉
B. 页面页眉
C. 页面页脚
D. 报表页脚
[单选题]下列程序是将一个十进制正整数转化为一个八进制数,在程序的空白处应填入的语句是_______。 #includestdio.h> main() { int i=9,a,b[10]={0}; scanf("%d",&A) ; sub(a,B) ; for(;i>=0;i--)printf("%d",b[i]); } sub(int c,int d[]) { int e,i=0; while(c!=0) {e=c%8; d[i]=e; ________. i++; } return; }
A. c=e/8
B. c=c%8
C. c=c/8
D. c=e%8
[单选题]继承诸如WindowAdapter(它继承了WindowListener接口)等适配器类有何好处?
A. 将继承这个类的所有行为
B. 子类将自动成为监听器
C. 不必实现任何恍枰腤indowListener方法
D. 为了层次清楚,美观大方
本文链接:https://www.zhukaozhuanjia.com/download/dl7dqx.html