单选题合法的C语言数据常量是( )。
单选题若有以下程序段: int r=8; printf("%d\n",r>>1); 输出结果是( )。
单选题有以下程序: #include <stdio.h> int fun(int a,int b) if(b==0) return a; else return( fun(--a,--b)); main() printf("%d/n",fun(4,2)); 程序的运行结果是 A) 1 B) 2 C) 3 D) 4
单选题若要使用C数学库中的sin函数,需要在源程序的头部加上#include<math.h>。关于引用数学库,以下叙述中正确的是( )。
单选题有以下程序
#include
void main()
{int s;
scanf("%d",&s);
while(s>0)
{switch(s){
case 1:printf("%d",s+5);
case 2:printf(“%d”,s+4);break;
case 3:printf(“%d”,s+3);
default:printf(“%d”,s+1);break;
}
scanf(“%d”,&s);}}
运行时,若输入1 2 3 4 5 0,则输出结果是
单选题已知“int a[4][4];”,则不能等价表示数组元素a[3][3]的是______。
单选题有以下程序:
#include
main()
{
char x=2,y=2,z;
z=(y>1);
printf("%d\n",z);
}
程序的输出结果是( )。
单选题有以下程序:
#include
main()
{int a=7;
while(a--);
printf(''%d\n'',++a);
}
程序运行后的输出结果是( )。
单选题下列选项中,不属于数据库管理的是( )。
单选题若a=3,b=4,c=5,d=6,则条件表达式a<b?a:c<d?c:d的值是______。
单选题为了提高软件模块的独立性,模块之间最好是( )。 A) 控制耦合 B) 公共耦合 C) 内容耦合 D) 数据耦合
单选题十进制整数设为整数类I,则下面属于类I的实例的是
单选题执行以下程序时输入1234567<CR>,则输出结果是 #include
<stdio.h> main() { int a=1,b;
scanf("%3d%2d", printf("%d%d/n",a,b);
}
A. 12367
B. 12346
C. 12312
D. 12345
单选题有下列程序:
#include<stdio.h>
main()
{ int c=0,k,
for(k-1;k<3;k++)
switch(k)
{ default:c+=k;
case 2:C++;break;
case 4:c+=2;break;
}
printf("%d/n",C) ;
}
程序运行后的输出结果是( )。
单选题在数据处理中,其处理的最小单位是( )。 A) 数据 B) 数据项 C) 数据结构 D) 数据元素
单选题下列对软件测试和软件调试叙述中错误的是( )。
单选题若有以下程序:
#include <stdio.h>
main( )
{
int i,j;
for(i=1; i<4; i + +)
{
for(j=i; j<4; j + +) pfinff("%d*%d=%d",i,j,i*j);
printf("/n");
}
}
则程序运行后的输出结果是______。
单选题有以下程序:
#include <stdio.h>
#include <string.h>
typedef struct {
char name[10];
char sex;
int age;
} STU;
void fun(STU t)
{ strcpy(t.name,"Tong");
t.age++;
}
main()
{ STU s[2]=t"Hua","m",18,"Qin","f",19};
fun(s[1]);
printf("%s,%d,%s,%d\n",s[0].name,s[0].age,s[1].name,s[1].age);
}
程序运行后的输出结果是______。
单选题下列所述中,是软件调试技术的是( )。 A) 错误推断 B) 集成测试 C) 回溯法 D) 边界值分析
单选题若变量已正确定义,则以下for循环______:
for(x=0,y=0;(y!=123)&&(x<4);x++);