C语言程序设计和基础练习题 下载本文

内容发布更新时间 : 2024/5/18 9:00:01星期一 下面是文章的全部内容请认真阅读。

promotion of employment, form a reasonable and orderly pattern of income distribution, build a more fair and sustainable social security systems, medical and health system reform. The plenary, innovation of social governance, must focus on the maintenance of fundamental interests of the overwhelming majority of the people, maximize factors, enhance social development, improving social governance, the interests of national security, ensure that the people live and work, social stability and order. o improve social governance, stimulating social organization, innovative and effective system of preventing and resolving social conflicts, improving the public security system, set up the National Security Council, national security systems and national security strategy to ensure national security. Plenary session, the construction of ecological civilization, you must establish systems of ecological system, using the system to protect the ecological environment. o improve natural resources asset property right system and use control, red line of delimitation of ecological protection, resources paid use system and ecological compensation system in ecological environment protection management system reform. Plenary session, centering on building a listening party command, can win and having a fine style of the people's army, a strong army under the new situation of the party Goals, restricting the development of national defense and army building is solved outstanding contradictions and problems, innovation and development of military theory, enhance military strategic guidance, improve the military strategy in the new period, building a modern military force system with Chinese characteristics. o deepen the adjustment of personnel system reform in the army, military policy and system reform, promote the development of military and civilian integration depth. Plenary session stressed that comprehensive reform must be to strengthen and improve the party's leadership, give full play to the core role of the party commands the overall situation and coordinating all parties, improving the party's leading water ... Margin. Challenged the leadership of the Communist Party of China, Marxism-Leninism and Mao Zedong thought by Deng Xiao-ping's flag, replaced by three representatives and the harmonic society. The former Communist Party spirit and social cohesion point of almost all political makeover. Characteristics of socialism public ownership is shifting to private ownership, planned regulation and market regulation, the proletarian regime controlled by the elite. Of universal equality, fairness and basic principles of distribution system is socialist society, however after economic monopolized by powerful, vested interests grow, employers do not have the same status, hardly seems fair social distribution. State key protection of capital interests rather than the interests of citizens, had been hits the bottom of the proletariat 《程序设计和C语言基础》测试题

姓名:________ 得分:__________

一、选择题(每小题4分,共60分) 1、一个C语言程序是由( )

A、一个主程序和若干个子程序组成 C、若干个过程组成

2、C语言程序的基本单位是( )

A、函数 B、过程

3、一个C语言程序的执行是从( )

B、函数组成

D、若干子程序组成 C、子程序

D、子例程

A、本程序的main函数开始到main函数结束

B、本程序文件的第一个函数开始,到本程序文件的最后一个函数结束 C、本程序的main函数形开始,到程序文件的最后一个函数结束 D、本程序文件的第一个函数开始,到本程序main函数结束 4、以下叙述正确的是( )

A、C语言程序必须有输入操作和输出操作

B、C语言程序可以没有输出操作但必须有输入操作 C、C语言程序可以没有输入操作但必须有输出操作 D、C语言程序可以既没有输入操作但也没有输入操作 5、以下叙述不正确的是( )

A、一个C语言源程序可由一个或多个函数组成 B、一个C语言源程序必须包含一个main函数 C、C语言程序的基本组成单位是函数

D、在C语言程序中,注释说明只能位于一条语句的后面 6、下列叙述中错误的是( )

A、一个C语言程序只能实现一种算法 。 B、C程序可以由多个程序文件组成。 C、C程序可以由一个或多个函数组成。

D、一个C函数可以单独作为一个C程序文件存在。 7、C语言规定,在一个源程序中main函数的位置( )

A、必须在最开始 B、必须在系统调用的库函数的后面 C、可以任意 D、必须在最后 8、编辑程序是( )

A、建立并修改程序 B、交C语言源程序编译成目标程序 C、调试程序 D、命令计算机执行指定程序 9、以下叙述中错误的是( )

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

bviously, face China's Socialist system, the Communist Party is not the party. In that case, political chaos has been very tight. Is remodeling or reconstruction, is a correction or a stove. Whether to turn right or left, is back to the source or put forward new political ideas. This is to determine the road problems in China, is also the key out of the deep water of the reform of the economic system. After 18, the new Central collective leadership attaches great importance to political orientation. First, the \ng point, starting from the Central Government's self-restraint, which preaches and pro-image, brought fresh feeling to the community. Secondly, before reform and opening up and reform and opening two periods after non-negative, untying the tangle of the society a long time on this issue. Third, a new generation of party leaders on various occasions to Mao Ze-Dong and Mao Ze-Dong's thought of evaluation has room for manoeuvre, through to the ruling ideology of Mao Zedong thought, is the call of the soul to the Socialist Revolution and construction. Empty talks jeopardize national interests and try again, is an affirmation of Deng Xiao-ping's reform ideas. These strong political signal showing a new generation of political leaders is still keeping to the Socialist road. Four is revisiting the \Mao Ze-Dong's historical cycle of\profile anti-corruption and the importance of the Constitution, reorganization is bad style of officialdom, was to civilize people obey the law, while improving the color change of the regime of vigilance. Five is to reform into deeper waters and stressed that top-level design, this is a review on the reform and opening up in the past, is also looking for a way out. Six foreign and Russia closer, the flexible attitude on the issue of the Korean peninsula, Sino-Japanese fishing hardline China on the island out of the \patient\ shadow began to gradually plan development. Signs show that the new leadership began to make a left turn in politics. However, as of right nownot only ideological confusion in the community, the new leadership's thinking is messy. New leaders both stressed the need to implement the Constitution, stressed the need to turn off the power in a cage. Also stresses that Mao Zedong thought cannot be lost, 30 years after the reform and opening up 30 years ago can not deny each other. Both advocate democracy and release \not speak of\constraints. Neither deny the history of the CPC Central Committee on several issues ...Comrades: today brings together members, mainly in order to provide a platform to Exchange and learn from each other in order to facilitate our work. Just now, we focus on taxation, planning and stability, safety, project construction, typical topics such as private facts presentation and interaction, and towns currently exist in the in-depth analysis of the problems to be solved, to explore new methods to solve the problem. It can be said that summing up the achievement, no grandstanding; analysis promotion of employment, form a reasonable and orderly pattern of income distribution, build a more fair and sustainable social security systems, medical and health system reform. The plenary, innovation of social governance, must focus on the maintenance of fundamental interests of the overwhelming majority of the people, maximize factors, enhance social development, improving social governance, the interests of national security, ensure that the people live and work, social stability and order. o improve social governance, stimulating social organization, innovative and effective system of preventing and resolving social conflicts, improving the public security system, set up the National Security Council, national security systems and national security strategy to ensure national security. Plenary session, the construction of ecological civilization, you must establish systems of ecological system, using the system to protect the ecological environment. o improve natural resources asset property right system and use control, red line of delimitation of ecological protection, resources paid use system and ecological compensation system in ecological environment protection management system reform. Plenary session, centering on building a listening party command, can win and having a fine style of the people's army, a strong army under the new situation of the party Goals, restricting the development of national defense and army building is solved outstanding contradictions and problems, innovation and development of military theory, enhance military strategic guidance, improve the military strategy in the new period, building a modern military force system with Chinese characteristics. o deepen the adjustment of personnel system reform in the army, military policy and system reform, promote the development of military and civilian integration depth. Plenary session stressed that comprehensive reform must be to strengthen and improve the party's leadership, give full play to the core role of the party commands the overall situation and coordinating all parties, improving the party's leading water ... Margin. Challenged the leadership of the Communist Party of China, Marxism-Leninism and Mao Zedong thought by Deng Xiao-ping's flag, replaced by three representatives and the harmonic society. The former Communist Party spirit and social cohesion point of almost all political makeover. Characteristics of socialism public ownership is shifting to private ownership, planned regulation and market regulation, the proletarian regime controlled by the elite. Of universal equality, fairness and basic principles of distribution system is socialist society, however after economic monopolized by powerful, vested interests grow, employers do not have the same status, hardly seems fair social distribution. State key protection of capital interests rather than the interests of citizens, had been hits the bottom of the proletariat D、在没有安装C语言集成开发环境的机器上不能运行C源程序生成的.EXE文件 10、结构化程序所要求的基本结构不包括( )

A、顺序结构 B、goto跳转 C、选择(分支)结构 D、循环(重复)结构 11、以下关于结构化程序设计的叙述中正确的是( ) A、一个结构化程序必须同时由顺序、分支、循环三种结构组成 B、结构化程序使用goto语句会很便捷

C、在C语言中,程序的模块化是利用函数实现的 D、由三种基本结构构成的程序只能解决小规模的问题 12、下列4条叙述中,正确的一条是( )

A、计算机语言中,只有机器语言属于低级语言 B、高级语言源程序可以被计算机直接执行 C、C语言属于高级语言

D、机器语言是与所用机器无关

13、算法具有5个特性,以下选项中不属于算法特性的是( )

A、有零个或多个输入 B、确定性 C、有穷性 D、通用性 14、用C语言编写的代码( )

A、可立即执行 B、是一个源程序 C、经过编译即可执行 D、经过编译解释才能执行 15、C语言的程序一行写不下时,应该( )

A、用回车符换行 B、在任意一个空格处换行 C、用分号换行 D、用逗号换行

二、填空题(每空2分,共40分)

1、C语言源程序文件经过编译后,生成文件的扩展名是__________,经过连接后,生成文件的扩展名是____________。

2、一个C语言编写的程序是从__________开始执行的。

3、结构化程序所规定的3种基本结构是_________、__________、_________。 4、一个C语言程序的开发过程包括:编辑、_______、_______和运行4个步骤。

5、C语言保存源文件的快捷键是_______,运行程序快捷键是_______,查看程序运行结果的快捷键是_______ 。

6、在一个C程序中,注释部分两侧分界符分别为_____和_____ 。

7、仅由顺序、选择(分支)和重复(循环)结构构成的程序是____________程序。 8、程序流程图中的菱形框表示的是________________,平行四边形表示的是_______________,矩形框表示的是_______________。

9、在C语言源程序中,一个变量代表_____________中的一个存储单元。 10、C语言程序的基本组成单位是_______________。 11、C语言源程序的语句分隔符是_______________。

bviously, face China's Socialist system, the Communist Party is not the party. In that case, political chaos has been very tight. Is remodeling or reconstruction, is a correction or a stove. Whether to turn right or left, is back to the source or put forward new political ideas. This is to determine the road problems in China, is also the key out of the deep water of the reform of the economic system. After 18, the new Central collective leadership attaches great importance to political orientation. First, the \ng point, starting from the Central Government's self-restraint, which preaches and pro-image, brought fresh feeling to the community. Secondly, before reform and opening up and reform and opening two periods after non-negative, untying the tangle of the society a long time on this issue. Third, a new generation of party leaders on various occasions to Mao Ze-Dong and Mao Ze-Dong's thought of evaluation has room for manoeuvre, through to the ruling ideology of Mao Zedong thought, is the call of the soul to the Socialist Revolution and construction. Empty talks jeopardize national interests and try again, is an affirmation of Deng Xiao-ping's reform ideas. These strong political signal showing a new generation of political leaders is still keeping to the Socialist road. Four is revisiting the \Mao Ze-Dong's historical cycle of\profile anti-corruption and the importance of the Constitution, reorganization is bad style of officialdom, was to civilize people obey the law, while improving the color change of the regime of vigilance. Five is to reform into deeper waters and stressed that top-level design, this is a review on the reform and opening up in the past, is also looking for a way out. Six foreign and Russia closer, the flexible attitude on the issue of the Korean peninsula, Sino-Japanese fishing hardline China on the island out of the \patient\ shadow began to gradually plan development. Signs show that the new leadership began to make a left turn in politics. However, as of right nownot only ideological confusion in the community, the new leadership's thinking is messy. New leaders both stressed the need to implement the Constitution, stressed the need to turn off the power in a cage. Also stresses that Mao Zedong thought cannot be lost, 30 years after the reform and opening up 30 years ago can not deny each other. Both advocate democracy and release \not speak of\constraints. Neither deny the history of the CPC Central Committee on several issues ...Comrades: today brings together members, mainly in order to provide a platform to Exchange and learn from each other in order to facilitate our work. Just now, we focus on taxation, planning and stability, safety, project construction, typical topics such as private facts presentation and interaction, and towns currently exist in the in-depth analysis of the problems to be solved, to explore new methods to solve the problem. It can be said that summing up the achievement, no grandstanding; analysispromotion of employment, form a reasonable and orderly pattern of income distribution, build a more fair and sustainable social security systems, medical and health system reform. The plenary, innovation of social governance, must focus on the maintenance of fundamental interests of the overwhelming majority of the people, maximize factors, enhance social development, improving social governance, the interests of national security, ensure that the people live and work, social stability and order. o improve social governance, stimulating social organization, innovative and effective system of preventing and resolving social conflicts, improving the public security system, set up the National Security Council, national security systems and national security strategy to ensure national security. Plenary session, the construction of ecological civilization, you must establish systems of ecological system, using the system to protect the ecological environment. o improve natural resources asset property right system and use control, red line of delimitation of ecological protection, resources paid use system and ecological compensation system in ecological environment protection management system reform. Plenary session, centering on building a listening party command, can win and having a fine style of the people's army, a strong army under the new situation of the party Goals, restricting the development of national defense and army building is solved outstanding contradictions and problems, innovation and development of military theory, enhance military strategic guidance, improve the military strategy in the new period, building a modern military force system with Chinese characteristics. o deepen the adjustment of personnel system reform in the army, military policy and system reform, promote the development of military and civilian integration depth. Plenary session stressed that comprehensive reform must be to strengthen and improve the party's leadership, give full play to the core role of the party commands the overall situation and coordinating all parties, improving the party's leading water ... Margin. Challenged the leadership of the Communist Party of China, Marxism-Leninism and Mao Zedong thought by Deng Xiao-ping's flag, replaced by three representatives and the harmonic society. The former Communist Party spirit and social cohesion point of almost all political makeover. Characteristics of socialism public ownership is shifting to private ownership, planned regulation and market regulation, the proletarian regime controlled by the elite. Of universal equality, fairness and basic principles of distribution system is socialist society, however after economic monopolized by powerful, vested interests grow, employers do not have the same status, hardly seems fair social distribution. State key protection of capital interests rather than the interests of citizens, had been hits the bottom of the proletariat 答案: 一、选择题 1、B 2、A 3、A 4、C 5、D 6、A 7、C 8、A 9、D 10、B 11、C 12、C 13、D 14、B 15、 二、填空题 1、.obj .exe 2、main函数或主函数 3、顺序结构 选择(分支)结构 循环结构 4、编译 5、F2 Ctrl+F9 Alt+F5 6、/* */ 7、结构化 8、判断框 输入输出框 处理框 9、内存 10、函数 11、分号

bviously, face China's Socialist system, the Communist Party is not the party. In that case, political chaos has been very tight. Is remodeling or reconstruction, is a correction or a stove. Whether to turn right or left, is back to the source or put forward new political ideas. This is to determine the road problems in China, is also the key out of the deep water of the reform of the economic system. After 18, the new Central collective leadership attaches great importance to political orientation. First, the \ng point, starting from the Central Government's self-restraint, which preaches and pro-image, brought fresh feeling to the community. Secondly, before reform and opening up and reform and opening two periods after non-negative, untying the tangle of the society a long time on this issue. Third, a new generation of party leaders on various occasions to Mao Ze-Dong and Mao Ze-Dong's thought of evaluation has room for manoeuvre, through to the ruling ideology of Mao Zedong thought, is the call of the soul to the Socialist Revolution and construction. Empty talks jeopardize national interests and try again, is an affirmation of Deng Xiao-ping's reform ideas. These strong political signal showing a new generation of political leaders is still keeping to the Socialist road. Four is revisiting the \Mao Ze-Dong's historical cycle of\profile anti-corruption and the importance of the Constitution, reorganization is bad style of officialdom, was to civilize people obey the law, while improving the color change of the regime of vigilance. Five is to reform into deeper waters and stressed that top-level design, this is a review on the reform and opening up in the past, is also looking for a way out. Six foreign and Russia closer, the flexible attitude on the issue of the Korean peninsula, Sino-Japanese fishing hardline China on the island out of the \patient\ shadow began to gradually plan development. Signs show that the new leadership began to make a left turn in politics. However, as of right nownot only ideological confusion in the community, the new leadership's thinking is messy. New leaders both stressed the need to implement the Constitution, stressed the need to turn off the power in a cage. Also stresses that Mao Zedong thought cannot be lost, 30 years after the reform and opening up 30 years ago can not deny each other. Both advocate democracy and release \not speak of\constraints. Neither deny the history of the CPC Central Committee on several issues ...Comrades: today brings together members, mainly in order to provide a platform to Exchange and learn from each other in order to facilitate our work. Just now, we focus on taxation, planning and stability, safety, project construction, typical topics such as private facts presentation and interaction, and towns currently exist in the in-depth analysis of the problems to be solved, to explore new methods to solve the problem. It can be said that summing up the achievement, no grandstanding; analysis