1. [单选题]下列关于报表的说法中,正确的是( )。
A. 报表必须是多栏报表
B. 报表的数据源不可以是视图
C. 报表的数据源可以是临时表
D. 必须设置报表的数据源
2. [单选题]有以下程序: #include stdio.h> char fun(char x,char y) { if(xy) return x; return y; } main() { int a='9',b='8',c='7'; printf("%c\n",fun(fun(a,b),fun(b,c))); } 程序的执行结果是( )。
A. 8
B. 9
C. 7
3. [单选题]下列程序的输出结果是 #include"stdio.h" main() { int i,a=0,b=0; for(i=1;i10;i++) { if(i%2==0) {a++; continue;} b++;} printf("a=%d,b=%d",a,b);}
A. a=4,b=4
B. a=4,b=5
C. a=5,b=4
D. a=5,b=5
4. [单选题]如下代码定义了一个类Test: class Test { private int y; Test (int x) { y:x; } }现在为Test 类生成一个对象,正确的语句是( )。
A. Test t = new Test( );
B. Test t=new Test(10, 20);
C. Test t;
D. Test t=new Test(10);
5. [单选题]要强制显示声明变量,可在窗体模块或标准模块的声明段中加入语句( )。
A. Option Base 0
B. Option Explicit
C. Option Base 1
D. Option Compare
6. [单选题]对"将信电系98年以前参加工作的教师的职称改为教授"合适的查询方式为
A. 生成表查询
B. 更新查询
C. 删除查询
D. 追加查询
7. [单选题]假定n=3,,下列程序的运行结果是( )。 #includeiostream.h> int Fun(int m) void main() { cout"Please input a number:"; int n,s=0; cin>>n; s=Fun(n); coutsendl; } int Fun(int m) { iht p=1,s=0; for (int I=1;I=m;I++) { p*=I; S+=p; } return s; }
A. 9
B. 8
C. 10
8. [多选题]标签中内容的对齐方式,由()属性值决定。
A. Text
B. Name
C. Caption
D. Alignment
9. [单选题]所有在函数中定义的变量及函数的形式参数,都属于
A. 全局变量
B. 局部变量(local variable)
C. 静态变量
D. 常量
10. [单选题]当执行下面的程序时,如果输入ABC,则输出结果是 ( ) include include
当执行下面的程序时,如果输入ABC,则输出结果是 ( ) # includestdio.h> # includestring.h> main( ) { char ss [10] ="12345"; gets(ss);strcat(ss"6789");printf("%s\n",ss); }
A. ABC6789
B. ABC67
C. 12345ABC6
D. ABC456789