77范文网 - 专业文章范例文档资料分享平台

2007--2011国家计算机二级c语言历年真题及答案

来源:网络收集 时间:2019-04-02 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

conferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be \n different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage you, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other people's development approach, and then come back to guide our work. Second, we must think. \ng without thought to overshadow, thinking without learning is perilous.\he character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masses with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus problem, more to active research, caught not put. Dare to innovate, in our work, often remain \old way doesn't work, the new approach would not\on, the reason, the key is that many people know that copying other people's ideas, mechanically, using someone else's old ways. To change this predicament, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and 2011年3月计算机等级考试二级C语言笔试

一、 选择题

(1)下列关于栈叙述正确的是 A)栈顶元素最先能被删除 B)栈顶元素最后才能被删除 C)栈底元素永远不能被删除 D)以上三种说法都不对 (2)下列叙述中正确的是

A)有一个以上根结点的数据结构不一定是非线性结构 B)只有一个根结点的数据结构不一定是线性结构 C)循环链表是非线性结构 D)双向链表是非线性结构

(3)某二叉树共有7个结点,其中叶子结点只有1个,则该二叉树的深度为(假设根结点在第1层)

A)3 B)4 C)6 D)7 (4)在软件开发中,需求分析阶段产生的主要文档是 A)软件集成测试计划 B)软件详细设计说明书 C)用户手册 D)软件需求规格说明书

(5)结构化程序所要求的基本结构不包括 A)顺序结构 B)GOTO跳转

C)选择(分支)结构 D)重复(循环)结构 (6)下面描述中错误的是

A)系统总体结构图支持软件系统的详细设计

B)软件设计是将软件需求转换为软件表示的过程 C)数据结构与数据库设计是软件设计的任务之一 D)PAD图是软件详细设计的表示工具

(7)负责数据库中查询操作的数据库语言是 A)数据定义语言 B)数据管理语言 C)数据操纵语言 D)数据控制语言

(8)一个教师可讲授多门课程,一门课程可由多个教师讲授。则实体教师和课程间的联系是

A)1:1联系 B)1:m联系 C)m:1联系 D)m:n联系 (9)有三个关系R、S和T如下:

则由关系R和S得到关系T的操作是 A)自然连接 B)交 C)除 D)并

ccording to Office Party of mass line education practice activities led group of unified arrangements, units main led to for cadres workers Shang a times party lecture, due to himself level limited, only put this stage concentrated learning of experience today and everyone common with learning exchange, purpose is let we further deep understanding mass line of connotation, insisted party of mass line, do masses work, following main from four a aspects told: a, and full awareness party of mass line education practice activities of major meaning Party's 18 major distinct proposed to focus on the party's advanced nature and purity, in the party, with \c and clean for the people\content of the party's mass line and educational practice. This is comrade XI Jinping as party General Secretary and adhere to strictly administering the party, strengthen the party's major decision is in line with the public expectations and strengthening the construction of learning-oriented service innovation of Marxist party's major deployment, is the important measure to advance the great cause of socialism with Chinese characteristics. First, carry out the party's mass line in education practice, was carrying 18 of the party spirit, summon a powerful force for realizing the great rejuvenation of the Chinese nation the Chinese dream of urgent needs. Party's 18 to promote strategic deployment to building socialism with Chinese characteristics, presents two 100-year goal, namely, by 2020 China's gross domestic product and per capita income of urban and rural residents in 2010 on the basis of double complete the building of a well-off society; the middle of this century into a prosperous, democratic, civilized and harmonious Socialist modern country, and on this basis, the Chinese dream of realizing the great rejuvenation of the Chinese nation. 18 Congress of the party, Comrade XI Jinping repeatedly expounded the Chinese dream. The basic connotation of the Chinese dream, is the national prosperity, national revitalization, the happiness of the people, China important to follow is to keep China Road, carry forward the spirit and cohesion strength of China, dream dreams of the people of China, but determined confidence, enhance self-awareness, achieve self-reliance, to build a stronger China, civilization, harmony, beauty, China, China, China. Strategic conception of China was 18 the spirit of the enrichment and development of the party, conscientiously study the Chinese dream, leading people to hard to realize the Chinese dream, mass education activities in depth the fundamental starting point and ending point. Strengthen the education of the party's mass line, helps to train the collective consciousness of the unity of the party and the people, playing the Chinese dream ideological bases. Comrade Mao Zedong stressed that parties should have \mon language\have \History haconferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be \n different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage you, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other people's development approach, and then come back to guide our work. Second, we must think. \ng without thought to overshadow, thinking without learning is perilous.\he character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masses with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus problem, more to active research, caught not put. Dare to innovate, in our work, often remain \old way doesn't work, the new approach would not\on, the reason, the key is that many people know that copying other people's ideas, mechanically, using someone else's old ways. To change this predicament, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and (10)定义无符号整数类为UInt,下面可以作为类UInt实例化值的是 A)-369 B)369 C)0.369 D)整数集合{1,2,3,4,5}

(11)计算机高级语言程序的运行方法有编译执行和解释执行两种,以下叙述中正确的是

A)C语言程序仅可以编译执行 B)C语言程序仅可以解释执行

C)C语言程序既可以编译执行又可以解释执行 D)以上说法都不对

(12)以下叙述中错误的是

A)C语言的可执行程序是由一系列机器指令构成的 B)用C语言编写的源程序不能直接在计算机上运行 C)通过编译得到的二进制目标程序需要连接才可以运行

D)在没有安装C语言集成开发环境的机器上不能运行C源程序生成的.exe文件

(13)以下选项中不能用作C程序合法常量的是 A)1,234 B)'123' C)123 D)\

(14)以下选项中可用作C程序合法实数的是 A).1e0 B)3.0e0.2 C)E9 D)9.12E

(15)若有定义语句:int a=3,b=2,c=1;,以下选项中错误的赋值表达式是 A)a=(b=4)=3; B)a=b=c+1;

C)a=(b=4)+c; D)a=1+(b=c=4); (16)有以下程序段 char name[20]; int num;

scanf(\

当执行上述程序段,并从键盘输入:name=Lili num=1001<回车>后,name的值为

A)Lili B)name=Lili

C)Lili num= D)name=Lili num=1001

(17)if语句的基本形式是:if(表达式)语句,以下关于“表达式”值的叙述中正确的是

A)必须是逻辑值 B)必须是整数值

C)必须是正数 D)可以是任意合法的数值 (18)有以下程序 #include main()

{ int x=011;

printf(\ }

程序运行后的输出结果是 A)12 B)11 C)10 D)9 (19)有以下程序

ccording to Office Party of mass line education practice activities led group of unified arrangements, units main led to for cadres workers Shang a times party lecture, due to himself level limited, only put this stage concentrated learning of experience today and everyone common with learning exchange, purpose is let we further deep understanding mass line of connotation, insisted party of mass line, do masses work, following main from four a aspects told: a, and full awareness party of mass line education practice activities of major meaning Party's 18 major distinct proposed to focus on the party's advanced nature and purity, in the party, with \c and clean for the people\content of the party's mass line and educational practice. This is comrade XI Jinping as party General Secretary and adhere to strictly administering the party, strengthen the party's major decision is in line with the public expectations and strengthening the construction of learning-oriented service innovation of Marxist party's major deployment, is the important measure to advance the great cause of socialism with Chinese characteristics. First, carry out the party's mass line in education practice, was carrying 18 of the party spirit, summon a powerful force for realizing the great rejuvenation of the Chinese nation the Chinese dream of urgent needs. Party's 18 to promote strategic deployment to building socialism with Chinese characteristics, presents two 100-year goal, namely, by 2020 China's gross domestic product and per capita income of urban and rural residents in 2010 on the basis of double complete the building of a well-off society; the middle of this century into a prosperous, democratic, civilized and harmonious Socialist modern country, and on this basis, the Chinese dream of realizing the great rejuvenation of the Chinese nation. 18 Congress of the party, Comrade XI Jinping repeatedly expounded the Chinese dream. The basic connotation of the Chinese dream, is the national prosperity, national revitalization, the happiness of the people, China important to follow is to keep China Road, carry forward the spirit and cohesion strength of China, dream dreams of the people of China, but determined confidence, enhance self-awareness, achieve self-reliance, to build a stronger China, civilization, harmony, beauty, China, China, China. Strategic conception of China was 18 the spirit of the enrichment and development of the party, conscientiously study the Chinese dream, leading people to hard to realize the Chinese dream, mass education activities in depth the fundamental starting point and ending point. Strengthen the education of the party's mass line, helps to train the collective consciousness of the unity of the party and the people, playing the Chinese dream ideological bases. Comrade Mao Zedong stressed that parties should have \mon language\have \History has conferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be \n different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage you, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other people's development approach, and then come back to guide our work. Second, we must think. \ng without thought to overshadow, thinking without learning is perilous.\he character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masses with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus problem, more to active research, caught not put. Dare to innovate, in our work, often remain \old way doesn't work, the new approach would not\on, the reason, the key is that many people know that copying other people's ideas, mechanically, using someone else's old ways. o change this predicament, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and

#include main() { int s;

scanf(\while(s>0) { switch(s)

{ case1:printf(\

case2:printf(\case3:printf(\

default:printf(\}

scanf(\} }

运行时,若输入1 2 3 4 5 0<回车>,则输出结果是 A) B)66656 C)66666 D) (20)有以下程序段 int i,n;

for(i=0;i<8;i++) { n=rand()%5; switch (n) { case 1:

case 3:printf(\ case 2:

case 4:printf(\ case 0:exit(0); }

printf(\ }

以下关于程序段执行情况的叙述,正确的是 A)for循环语句固定执行8次

B)当产生的随机数n为4时结束循环操作

C)当产生的随机数n为1和2时不做任何操作 D)当产生的随机数n为0时结束程序运行 (21)有以下程序 #include main()

{ char s[]=\ int i,n=0;

for(i=0;s[i]!=0;i++)

if(s[i]>='0'&&s[i]<='9') n++; printf(\ }

程序运行后的输出结果是 A)0 B)3 C)7 D)8

ccording to Office Party of mass line education practice activities led group of unified arrangements, units main led to for cadres workers Shang a times party lecture, due to himself level limited, only put this stage concentrated learning of experience today and everyone common with learning exchange, purpose is let we further deep understanding mass line of connotation, insisted party of mass line, do masses work, following main from four a aspects told: a, and full awareness party of mass line education practice activities of major meaning Party's 18 major distinct proposed to focus on the party's advanced nature and purity, in the party, with \c and clean for the people\content of the party's mass line and educational practice. This is comrade XI Jinping as party General Secretary and adhere to strictly administering the party, strengthen the party's major decision is in line with the public expectations and strengthening the construction of learning-oriented service innovation of Marxist party's major deployment, is the important measure to advance the great cause of socialism with Chinese characteristics. First, carry out the party's mass line in education practice, was carrying 18 of the party spirit, summon a powerful force for realizing the great rejuvenation of the Chinese nation the Chinese dream of urgent needs. Party's 18 to promote strategic deployment to building socialism with Chinese characteristics, presents two 100-year goal, namely, by 2020 China's gross domestic product and per capita income of urban and rural residents in 2010 on the basis of double complete the building of a well-off society; the middle of this century into a prosperous, democratic, civilized and harmonious Socialist modern country, and on this basis, the Chinese dream of realizing the great rejuvenation of the Chinese nation. 18 Congress of the party, Comrade XI Jinping repeatedly expounded the Chinese dream. The basic connotation of the Chinese dream, is the national prosperity, national revitalization, the happiness of the people, China important to follow is to keep China Road, carry forward the spirit and cohesion strength of China, dream dreams of the people of China, but determined confidence, enhance self-awareness, achieve self-reliance, to build a stronger China, civilization, harmony, beauty, China, China, China. Strategic conception of China was 18 the spirit of the enrichment and development of the party, conscientiously study the Chinese dream, leading people to hard to realize the Chinese dream, mass education activities in depth the fundamental starting point and ending point. Strengthen the education of the party's mass line, helps to train the collective consciousness of the unity of the party and the people, playing the Chinese dream ideological bases. Comrade Mao Zedong stressed that parties should have \mon language\have \History has conferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be \n different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage you, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other people's development approach, and then come back to guide our work. Second, we must think. \ng without thought to overshadow, thinking without learning is perilous.\he character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masses with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus problem, more to active research, caught not put. Dare to innovate, in our work, often remain \old way doesn't work, the new approach would not\on, the reason, the key is that many people know that copying other people's ideas, mechanically, using someone else's old ways. To change this predicament, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and (22)若i和k都是int类型变量,有以下for语句 for(i=0,k=-1;k=1;k++) printf(\ 下面关于语句执行情况的叙述中正确的是 A)循环体执行两次 B)循环体执行一次

C)循环体一次也不执行 D)构成无限循环 (23)有以下程序 #include main()

{ char b,c; int i; b='a'; c='A'; for(i=0;i<6;i++)

{ if(i%2) putchar(i+b); else putchar(i+c); } printf(\ }

程序运行后的输出结果是

A)ABCDEF B)AbCdEf C)aBcDeF D)abcdef

(24)设有定义:double x[10],*p=x;,以下能给数组x下标为6的元素读入数据的正确语句是

A)scanf(\ C)scanf(\

(25)有以下程序(说明:字母A的ASCII码值是65) #include

void fun(char *s) { while(*s)

{ if(*s%2) printf(\ s++; } }

main()

{ char a[]=\fun(a); printf(\ }

程序运行后的输出结果是 A)BY B)BT C)YT D) YE (26)有以下程序段 #include main() {

while( getchar()!='\\n'); }

ccording to Office Party of mass line education practice activities led group of unified arrangements, units main led to for cadres workers Shang a times party lecture, due to himself level limited, only put this stage concentrated learning of experience today and everyone common with learning exchange, purpose is let we further deep understanding mass line of connotation, insisted party of mass line, do masses work, following main from four a aspects told: a, and full awareness party of mass line education practice activities of major meaning Party's 18 major distinct proposed to focus on the party's advanced nature and purity, in the party, with \c and clean for the people\content of the party's mass line and educational practice. This is comrade XI Jinping as party General Secretary and adhere to strictly administering the party, strengthen the party's major decision is in line with the public expectations and strengthening the construction of learning-oriented service innovation of Marxist party's major deployment, is the important measure to advance the great cause of socialism with Chinese characteristics. First, carry out the party's mass line in education practice, was carrying 18 of the party spirit, summon a powerful force for realizing the great rejuvenation of the Chinese nation the Chinese dream of urgent needs. Party's 18 to promote strategic deployment to building socialism with Chinese characteristics, presents two 100-year goal, namely, by 2020 China's gross domestic product and per capita income of urban and rural residents in 2010 on the basis of double complete the building of a well-off society; the middle of this century into a prosperous, democratic, civilized and harmonious Socialist modern country, and on this basis, the Chinese dream of realizing the great rejuvenation of the Chinese nation. 18 Congress of the party, Comrade XI Jinping repeatedly expounded the Chinese dream. The basic connotation of the Chinese dream, is the national prosperity, national revitalization, the happiness of the people, China important to follow is to keep China Road, carry forward the spirit and cohesion strength of China, dream dreams of the people of China, but determined confidence, enhance self-awareness, achieve self-reliance, to build a stronger China, civilization, harmony, beauty, China, China, China. Strategic conception of China was 18 the spirit of the enrichment and development of the party, conscientiously study the Chinese dream, leading people to hard to realize the Chinese dream, mass education activities in depth the fundamental starting point and ending point. Strengthen the education of the party's mass line, helps to train the collective consciousness of the unity of the party and the people, playing the Chinese dream ideological bases. Comrade Mao Zedong stressed that parties should have \mon language\have \History has conferences, learned superiors policies; reports, you can learn to deal with problems, art, just wanted to learn, to learn at any time. To continuously expand the scope of the study. The complexity and comprehensiveness of our work, decided to not only do we want to be \n different areas of knowledge. Mastery of knowledge not only to have knowledge to rational analysis. This on requirements we, not only to learning national of route, and approach, and policy, also to learning national of legal, and regulations; not only to with political theory armed mind, also to with economic theory guide work; not only to read history, also to read history; not only to absorption SM of mirror, also to gets is of road; not only to from local learn, also to to outside learn; not only to to books learn, also to field study learn. Therefore, I would encourage you, and more to the outside world when I have time to take a look at, take a stroll, outside developments, learn other people's development approach, and then come back to guide our work. Second, we must think. \ng without thought to overshadow, thinking without learning is perilous.\he character of advancing with the times, forge ahead, often reflect themselves in adapting to the new situation on whether there are delays, have anything to fear in the reform and innovation, whether in terms of accelerating the development of a relaxation, keep promising State of mind. In order to do investigations, investigations is the road to heaven, God disposes of the base. To wants to real heard truth, and justice to truth, and get truth, received effectiveness, on must in-depth actual, and outreach, and in-depth masses, worship masses for Division, and masses heart, with masses with discussion everyone care of problem, listening they of calls, understand they of mood, feel they of suffering, summary they of experience, concentrated they of wisdom, especially on masses most hope, and most urgent, and most worries, and most complained of hot, and difficulties and focus problem, more to active research, caught not put. Dare to innovate, in our work, often remain \old way doesn't work, the new approach would not\on, the reason, the key is that many people know that copying other people's ideas, mechanically, using someone else's old ways. o change this predicament, requires us to break the shackles of traditional concepts to overcome conservative, conformist, good at finding new problems and to accept new things, summarize new experience, new ideas, developing new programmes and Maverick, a new approach to solve problems, speed up development. Especially in implement superior policy spirit of process in the, both implementation, and cannot mechanically, to to extraordinary of courage and develop enterprising of spirit, put flexibility and principle combined up, put superior of spirit and local reality combined up, Yong conspiracy to breakthrough of policy, and exercise innovation of lift, developed out development works of, and grass-roots welcomes of, and 以下叙述中正确的是

A)此while语句将无限循环

B) getchar()不可以出现在while语句的条件表达式中 C)当执行此while语句时,只有按回车键程序才能继续执行 D)当执行此while语句时,按任意键程序就能继续执行 (27)有以下程序 #include main()

{ int x=1,y=0; if(!x) y++; else if(x==0) if (x) y+=2; else y+=3;

printf(\ }

程序运行后的输出结果是 A)3 B)2 C)1 D) 0

(28)若有定义语句:char s[3][10],(*k)[3],*p;,则以下赋值语句正确的是 A)p=s; B)p=k; C)p=s[0]; D)k=s; (29)有以下程序 #include

void fun(char *c) { while(*c)

{ if(*c>='a'&&*c<='z') *c=*c-('a'-'A'); c++; } }

main()

{ char s[81];

gets(s); fun(s); puts(s): }

当执行程序时从键盘上输入Hello Beijing<回车>,则程序的输出结果是 A)hello beijing B)Hello Beijing C)HELLO BEIJING D)hELLO Beijing (30)以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。 #include #define N 10

void fun(int x[N]) { int i=0; while(i }

在程序中下划线处应填入的是 A)x+i B)&x[i+1]

C)x+(i++) D)&x[++i]

ccording to Office Party of mass line education practice activities led group of unified arrangements, units main led to for cadres workers Shang a times party lecture, due to himself level limited, only put this stage concentrated learning of experience today and everyone common with learning exchange, purpose is let we further deep understanding mass line of connotation, insisted party of mass line, do masses work, following main from four a aspects told: a, and full awareness party of mass line education practice activities of major meaning Party's 18 major distinct proposed to focus on the party's advanced nature and purity, in the party, with \c and clean for the people\content of the party's mass line and educational practice. This is comrade XI Jinping as party General Secretary and adhere to strictly administering the party, strengthen the party's major decision is in line with the public expectations and strengthening the construction of learning-oriented service innovation of Marxist party's major deployment, is the important measure to advance the great cause of socialism with Chinese characteristics. First, carry out the party's mass line in education practice, was carrying 18 of the party spirit, summon a powerful force for realizing the great rejuvenation of the Chinese nation the Chinese dream of urgent needs. Party's 18 to promote strategic deployment to building socialism with Chinese characteristics, presents two 100-year goal, namely, by 2020 China's gross domestic product and per capita income of urban and rural residents in 2010 on the basis of double complete the building of a well-off society; the middle of this century into a prosperous, democratic, civilized and harmonious Socialist modern country, and on this basis, the Chinese dream of realizing the great rejuvenation of the Chinese nation. 18 Congress of the party, Comrade XI Jinping repeatedly expounded the Chinese dream. The basic connotation of the Chinese dream, is the national prosperity, national revitalization, the happiness of the people, China important to follow is to keep China Road, carry forward the spirit and cohesion strength of China, dream dreams of the people of China, but determined confidence, enhance self-awareness, achieve self-reliance, to build a stronger China, civilization, harmony, beauty, China, China, China. Strategic conception of China was 18 the spirit of the enrichment and development of the party, conscientiously study the Chinese dream, leading people to hard to realize the Chinese dream, mass education activities in depth the fundamental starting point and ending point. Strengthen the education of the party's mass line, helps to train the collective consciousness of the unity of the party and the people, playing the Chinese dream ideological bases. Comrade Mao Zedong stressed that parties should have \mon language\have \History has

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库2007--2011国家计算机二级c语言历年真题及答案在线全文阅读。

2007--2011国家计算机二级c语言历年真题及答案.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/565583.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: