
【名词&注释】
初始化(initialization)、第一次(the first time)、逻辑运算符(logical operator)、修饰符(modify symbol)、执行命令(executive command)、单精度(single precision)
[单选题]下列程序段的输出结果是int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);
A. 无输出
B. 12,123.5,12345.5
C. 1234,123.5,12345.5
D. 1234,123.4,12345.5
查看答案&解析
举一反三:
[单选题]删除视图myview的命令是( )。
A. DELETE myview VIEW
B. DELETE myview
C. DROP myview VIEW
D. DROP VIEW myview
[单选题]以下正确的程序段是
A. char str1[ ]="12345",str2[ ]="abcdef";
B. char str[10],*st="abcde";strcat(str,st);
C. char str[10]=" "。*st="abcde";strcat(str,st);
D. char*st1="12345",*st2="abcde";strcat(st1,st2);
[单选题]Java中定义常量的保留字是( )。
A. const
B. final
C. finally
D. native
[单选题]下列不属于逻辑运算符的是( )。
A. t
B. ||
C. &&
D. I
[单选题]下面程序的运行结果是( )。 #include intfun(inta[],intn) { intresult=1; for(inti=1;i(n;i++) result=result*a[i]; returnresult; } voidmain( ) { inta[3]={3,4,5); coHt$amp;
A. 12B. 15
B. 20
C. 60
[多选题]重载输入流运算符>>必须使用的原型为
A. istream& operator >> (istream&,&);B.重载输入流运算符>>必须使用的原型为
B. istream& operator >> (istream&,类名>&);
C. istream& operator >>(istream,类名>);
D. istream operator>>(istream,类名>&);
E. 类名>operator >>(istream &,类名>&);
[单选题]在学生表中共有100条记录,执行如下命令,执行结果将是 INDEX ON-总分TO ZF SET INDEX TO ZF GO TOP DISPLAY
A. 显示的记录号是1
B. 显示分数最高的记录号
C. 显示的记录号是100
D. 显示分数最低的记录号
本文链接:https://www.zhukaozhuanjia.com/download/30d3pr.html