选择题 某二叉树的前序序列为ABCDEFG,中序序列为DCBAEFG,则该二叉树的后序序列为______。
选择题 对两个数组a和b进行下列初始化:
char m[]='1234567';
char n[]={'1', '2', '3', '4, '5', '6', '7'};
则下列叙述正确的是______。
选择题 结构化程序由顺序、选择、循环三种基本结构组成,以下相关叙述中错误的是______。
选择题 以下选项中,能用作用户标识符的是______。
选择题 以下叙述正确的是______。
选择题 有以下程序
#include<stdio.h>
#include<string.h>
typedef struct stu {
char name[10];
char gender;
int score;
} STU;
void f(char*name, char gender, int score)
{ strcpy(name, 'Qian');
gender='f';
score=350;
}
main()
{ STU a={'Zhao','m',290},b;
b=a;
f(b.name.b.gender,b.score);
printf('%s,%c,%d,', a.name,a.gender,a.score);
printf('%s,%c,%d\n',b.name,b.gender,b.score);
}
程序的运行结果是______。
选择题 已知大写字母A的ASCII码值是65,小写字母a的ASCII码值是97。以下不能将变量c中的大写字母转换为对应小写字母的语句是______。
选择题 若有以下程序段:
char str[4][12]={'aaa','bbbb','ccccc','dddddd'},*strp[4];
int i;
for(i=0;i<4;i++)strp[i]=str[i];
则以下错误引用字符串的选项是(其中0≤k<4)______。
选择题 若有定义:char c;double d;,程序运行时输入:1 2<回车>,能把字符1输入给变量c、数值2输入给变量d的输入语句是
选择题 有以下程序:
#include <stdio.h>
main()
{char a='H';
a=(a>='A'a<='Z')?(a+32):a;
printf('%c\n',a);
}
程序运行后的输出结果是______。
选择题 下列数组定义中错误的是 。
选择题 有以下程序:
#include <stdio.h>
main ()
{ FILE *pf;
char *s1='China', *s2='Beijing';
pf=fopen('abc.dat', 'wb+');
fwrite(s2, 7, 1, pf);
fwrite(s1, 3, 1, pf);
fclose (pf);
}
以上程序运行后,abc.dat文件的内容是 。
选择题 以下选项中不能作为C语言合法常量的是______。
选择题 fun函数的功能是:通过键盘输入给x所指的整型数组所有元素赋值。在横线处应填写的是______。
#include<stdio.h>
#define N 5
void fun(int x[N])
{ int m;
for(m=N-t; m>=0; m-)scanf('%d', ______);
}
选择题 关于程序设计基本概念,以下叙述错误的是______。
选择题 下列叙述中正确的是______。
选择题有三个关系R、S和T如下:则由关系R和S得到关系T的操作是______。
选择题 深度为7的二叉树共有127个结点,则下列说法中错误的是______。
选择题 以下叙述中正确的是______。
选择题 结构化分析可以使用的工具是