选择题软件详细设计产生的图如下:该图是______。
选择题 有以下程序:
#include <stdio.h>
main()
{ int findmax(int,int,int),m;
┋
m=findmax(a,b,e);
┋
}
int findmax(int x,int y,int z)
{ … }
则以下叙述正确的是______。
选择题 有以下程序
#include<stdio.h>
#include<string.h>
typedef struct { char name[9]; char sex; int score[2]; } STU;
STU f(STU a)
{ STU b={'Zhao','m',85,90};
int i;
strcpy(a.name,b.name);
a.sex=b.sex;
for(i=0;i<2; i++)
a.score[i]=b.score[i];
return a;
}
main()
{ STU c={'Qian','f',95,92),d;
d=f(c);
printf ('%s,%c,%d,%d,', d.name,d.sex, d.score[0]. d.score[1]);
printf ('%s,%c,%d,%d\n', c.name,c.sex, c.score[0], c.score[1]);
}
程序运行后的输出结果是______。
选择题 若有以下程序:
#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>
main()
{int a[]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, *p=a+5;
*q=NULL; *q=*(p+5);
printf('%d%d\n', *q, *q);
}
程序运行后的输出结果是______。
选择题 以下叙述中不正确的是______。
选择题 关系模型允许定义3类数据约束,下列不属于数据约束的是______。
选择题 以下选项中叙述错误的是______。
选择题 有以下程序:
#include <stdio.h>
typedef struct stu {
char name[10];
char gender;
int score;
} STU;
void f(STU a, STU *b)
{ *b = a;
printf('%s,%c,%d,',b->name, b->gender,b->score);
}
main( )
{ STU a={'Zhao','m',290},b=5{'Qian','f',350};
f(a,b);
printf('%s,%c,%din',b.name,b.gender,b.score);
}
程序运行后的输出结果是______。
选择题 下列一维数组中的声明中正确的是______。
选择题 设有定义:int x=0,'p;,立刻执行以下语句,正确的语句是______。
选择题 若有以下程序:
#include<stdio.h>
main()
{printf('%d\n', NULL); }
程序的输出结果是______
选择题 若有以下程序:
#include <stdio.h>
main( )
{ int y=9;
for( ; y>0; y--)
if(y%3= =0) printf('%d', --y);
}
则程序的运行结果是______。
选择题 表达式3.6-5/2+1.2+5%2的值是______。
选择题 结构化程序设计的基本原则不包括______。
选择题 软件按功能可以分为:应用软件、系统软件和支撑软件(工具软件)。下面属于应用软件的是______。
选择题 以下程序运行后的输出结果是______。
int d=1:
fun(int p)
{static int d=5;d+=p;
printf('%d',d);return d;
}
main()
{int a=3;printf('%d\n',fun(a+fun(d)));}
选择题 有以下程序段
char ch;int k;
ch='a';k=12;
printf('%c,%d,',ch,ch,k);
printf('k=%d\n',k);
已知字符a的ASCII十进制代码为97,则执行上述程序段后输出结果是______。
选择题 若变量已正确定义,则在if(W)pfintf('%d\n',k);中,以下不可替代W的是______。
选择题 设有定义:
int a=1, b=2, c=3;
以下语句中执行效果与其它三个不同的是______。
