
【名词&注释】
字符串(string)、表达式、线性表(linear list)、每一个(every single)、线性数据结构(linear data structure)
[单选题]表达式LEN(SPACE(0))的运算结果是A).NULL. B)1 C)0 D)” ”
A. C
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]以下程序的输出结果是 ______。define NULL 0includevoid main(){ int a[]={1,2,3,
以下程序的输出结果是 ______。 #define NULL 0 #includeiostream.h> void main(){ int a[]={1,2,3,4,5,6,7,8,9,10}; int *p=a+5,*q=NULL; *q=*(p+5); cout*p’ ’*q; }
A. 运行后报错
B. 6 6
C. 6 11
D. 5 5
[单选题]有以下程序: int fa(int x) { return x*x; } int fb(int x) { return x*x*x; } int f(int (*f1)(),int (* f2)(),int x) { return (*f2)(x)-(*f1)(x); } main() { int i; i=f(fa,fb,2); printf("%d\n",i); } 程序运行后的输出结果是( )
A. -4
B. 1
C. 4
D. 8
[单选题]以下数据结构中属于线性数据结构(linear data structure)的是
A. 集合
B. 线性表
C. 二叉树
D. 图
[单选题]如下的代码段中,如果方法unsafe()正常运行,那么结果是( )。 public void example() { try { unsafe(); System.out.println("Testl"); }catch(SafeException e) { System.out.println("Test 2"); }finally{ System.out.println("Test 3'); } System.out.println("Test 4"); }
A. Test 3 Test 4
B. Test1 Test3 Test4
C. Test1 Test3
D. Test1 Test4
本文链接:https://www.zhukaozhuanjia.com/download/zdroy5.html