文档视界 最新最全的文档下载
当前位置:文档视界 › 2013年辽宁专升本考试真题-C语言部分

2013年辽宁专升本考试真题-C语言部分

2013年辽宁专升本考试真题-C语言部分
2013年辽宁专升本考试真题-C语言部分

2013辽宁省高职高专毕业生升入本科学校招生考试

计算机试卷

第二部分计算机高级语言部分(C语言)

四、填空题(将正确答案填写到答题卡相应的位置上,每小题2分,共10分)

41.若有定义:int a=2,b=1; 则表达式b+1.0/a 输出结果是________________________。

42. 若有定义:int a,b;则表达式b=((a=2*3,a*2),a+4)的值为________________________。

43.语句fopen(“myfile”,”r+”):的含义是________________________。

44.若有定义:int a;能正确表达-1≤a≤2 且a≠0 的C语言表达式是________________________。

45.若有定义:int a=1,b=2,max; 则能实现语句if(a>b) max=a;else max=b;的条件赋值语句为______。

五、阅读程序题(阅读下列程序,将正确的运行结果填写到答题卡相应的位置上,每小题3分,共24分)

46.下面程序运行的结果是___________________。

V oid main()

{ int i=1,sum=0,t=1;

while(i<5)

{ t*=i++;

Sum=sum+t;

}

Printf(“%d\n”,sum)

}

47. 下面程序运行的结果是___________________。

main()

{ char c1,c2;

c1=?A?+?8?-…3?;

c2=?A?+?6?-…3?;

printf(“%d,%c \n”,c1,c2);

}

48.下面程序运行的结果是___________________。

main()

{ int a,b;

for(a=1,b=1;a<=100;a++)

{ if(b>=20) break;

if(b%3==1)

{ b+=3; continue;}

b-=5;

}

printf(“%d\n”,a);

}

49. 下面程序运行的结果是___________________。#include “stdio.h”

int fun(int a)

{

static int b=1;

b*=a

return(b);

}

main()

{

int a=2,i;

printf(“\n”);

for(i=0;i<4;i++)

printf(“%d”,fun(a));

}

50. 下面程序运行的结果是___________________。#include “stdio.h”

#include “string.h”

void fun(char *w,int n)

{ char t,*s1=w,*s2=w+n-1;

while(s1

{ if(*s1<*s2)

{ t=*s1;*s1=*s2;*s2=t;}

s1++;s2--;

}

}

main()

{ char str[]=”08172639”,p;

p=str;

fun(p,strlen(p));

puts(p);

}

51. 下面程序运行的结果是___________________。#include “stdio.h”

int a=1,b=7;

int fun(int a,int *b)

{ int c;

*b=a;

c=a+b;

return(c%2);

}

main()

{ int a=4,c;

c=fun(a,&b);

printf(“%d %d %d \n”,a,b,c);

}

52. 下面程序运行的结果是___________________。

#include “stdio.h”

main()

{ int s=0,i=0;

while(i<6)

{ switch(i)

{ case 0:

case1:s+=1;

case2:s+=2;i++;break;

default:s+=3;

}

i++;

}

printf(“%d\n”,s);

}

53.下面程序运行的结果是___________________。

#include “stdio.h ”

#define N 12

main()

{ int I,j,k,a[N][N];

for(i=0;i<5;i++)

for(j=0;j<5;j++) a[i][j]=0;

a[0][1]=1;

for(i=1;i<5;j++)

for(j=1;j<=i;j++)

a[i][j]=a[i-1][j-1]+a[i-1][j];

for(i=1;i<5;i++)

{ for(j=1;j<=i;j++)

printf(“%6d”,a[i][j]);

printf(“\n”);

}

}

六、完善程序题(请在答题卡相应的位置上填写正确的内容,使程序完整正确。每小题3分,共24分)

54.下面程序的功能是求一个整数,这个数加上100后是一个完全平方数,再加上168又是一个完全平方数。

#include “math.h”

main()

{ long int I,x,y,z;

for(i=1;i<1000;i++)

{ x=sqrt(i+100);

y=sqrt(i*268);

if(____________)

printf(“\n%ld\n”,i);

}

}

55.下面程序实现的功能是,输入一个字符ch插入到一个升序的字符数组中a中,且插入完成后字符数组a仍然有序。

#include “stdio.h”

main()

{ char a[10]={“abbgmn”},ch; int add=0,i;

scanf(“%c”,%ch);

for(i=0;a[i]!=?\0?;i++)

if(ch>a[i]) add++;

else ___________;

for(i=strlen(a);i>add;i--) a[i]=a[i-1];

a[add]=ch;

printf(“插入后的数组如下: %s\n”,a);

}

56.下面程序实现的功能是将两个有序的一维数组a和b,归并成一个有序的一维数组c。

#include “stdio.h”

main()

{ int a[10]={2,5,7,9,10,13,20,28,30,35},b[6]={1,4,6,8,25,29},c[30],k=0,m=0,n=0;

while(____________)

if(a[m]

else c[k++]=b[n++];

while(m<10)

c[k++]=a[m++];

while(n<6)

c[k++]=b[n++];

for(k=0;k<16;k++) printf(“%d,”,c[k]);

}

57.下面程序的功能是递归法求n!。

long fac(int n)

{ long f;

if (n==0 || n==1) f=1;

else ____________;

return f;

}

main()

{ int n;long y;

scanf(“%d”,&n);

if(n<0) printf(“n<0,error!\n”);

y=fac(n);

printf(“%d!=%ld\n”,n,y);

}

58.下面程序的功能是,定义结构体(姓名,高数,英语,平均成绩),输入n个学生的姓名和二门课程的成绩并计算得到每个学生的平均成绩。

struct score{ char name[12];

int ma,en;

float ave;

};

main()

{ int k; struct score stu[5];

printf(“输入学生姓名和成绩:\n”);

for(k=0;k<5;k++)

{ scanf(“%s %d %d”,stu[k].name,&stu[k].ma,&stu[k].en);

stu[k].ave=____________;

}

printf(“输出学生成绩:\n”);

for(k=0;k<5;k++)

print(“%s %d %d %f\n”,stu[k].name,stu[k].ma,stu[k].en,stu[k].ave);

}

59.下面程序实现的功能是将n个字符的串s,从第1个字符到第j个字符间的字符逆置。运行时输入字符串s:as绝代双骄封口机<回车>,输入i和j:38<回车>输出结果串为:askfjsdjj

void main()

{ char s[80],ch; int i,j;

scanf(“%s %d %d ”,s,&i,&j);

j--; j--;

for(;i

{ ch=*(s+i);

____________;

*(s+j)=ch;

}

printf(“%s”,s);

}

60.下面程序的功能是出涨工资后的工资数。单位涨工资原则:若元工资大于等于800元,涨原工资的20%,若小于800元大于等于400元,涨原工资的15%,若小于400元,涨原工资的10%。

#include “stdio.h”

main()

{ double salary;

printf(“Input your salary:”);

scanf(“%lf”,&salary);

if(salary<400)

salary=salary*0.1+salary;

else if(salary<800)

salary=salary*0.15+salary;

else

____________;

printf(“your salary = %.2lf\n\n”,salary);

}

61.下面程序的功能是输入一百分制的成绩score,输出其等级grade。

grade=?A? (score≥90); grade=?B?(89≥score≥80); grade=?C? (79≥score≥70);

grade=?D? (69≥score≥60); grade=?E? (score<60)。

#include “stdio.h”

void main(void)

{ int score;char grade;

while(1)

{ scanf(“%d”,&score);

if(score>=0 && score <=100) break;

printf(“输入错误请重新输入\n”);

}

switch(______________)

{ case10:

case 9: grade=?A?;break;

case 8: grade=?B?;break;

case 7: grade=?C?;break;

case 6: grade=?D?;break;

default: grade=?E?;

}

printf(“%d %c”,score,grade);

}

七、程序改错题(以下每个小题都有一个错误,请在答题卡相应的位置上写出有错误语句的行号级改正后的完整语句。每小题3分,共12分)

62.下面程序的功能是输入n(n≤50)个字符串存入数组str,输出最长的字符串。其中maxlen为最长字符串的下标。

(1)#include “stdio.h”

(2)#include “string.h”

(3)main()

(4){ char str[50][80];

(5) int i.maxlen,n;

(6) scanf(“%d”,&n);

(7) getchar();

(8) for(i=0;i

(9) gets(str[i]);

(10) maxlen=0;

(11) for(i=1;i

(12) if strlen(str[i]>strlen(str[maxlen]))

(13) maxlen=I;

(14) puts(str[maxlen]);

(15) }

错误的行是:___________________________

改为:________________________________

63.下面程序的功能是计算正整数n各位上的数字之积。例如输入456.输出120;输入203,输出0。

(1)long fun(long num)

(2){ long k=1;

(3) do{ k*=num%10;

(4) num\=10;

(5) }

(6) return k;

(7)}

(8)main()

(9){ long n;

(10) printf(“\nPlease input a number:”);

(11) scaf(“%ld”,&n);

(12) printf(“\n%d”,fun(n));

(13) }

错误的行是:___________________________

改为:________________________________

64.下面程序的功能是输入n(n≤100)个学生成绩,查找大雨90分的学生认输并输出。

(1)#include “stdio.h”

(2)main()

(3){

(4)float a[100];

(5)int i,s,n;

(6)scanf(“%d”,&n);

(7)for(i=0;i

(8) scanf(“%f”,&a[i]);

(9)for(i=0;i

(10) if(a[i]>=90)

(11) s++;

(12) printf(“超过90分的学生人数=%d”,s);

(13) }

错误的行是:___________________________

改为:________________________________

65.下面程序的功能是将长整型数中每一位上为奇数的数依次去除,组成一个新数放在p中,且高位、低位的顺序保持不变。例如n中的数为98765时,p中的数位975。

(1)#include “stdio.h”

(2)void fun (long n,long *p)

(3){ int d;long n1=1;

(4) *p=0;

(5) while(n>0)

(6) { d=n%10;

(7) if(d%2=1)

(8) {*p=d*n1+*p;

(9) n1*=10;

(10) }

(11) n/=10;

(12) }

(13) }

(14) main()

(15) { long n,p;

(16) scanf(“%ld”,&n);

(17) fun(n,&p);

(18) printf(“Result is %ld\n”,p);

(19) }

错误的行是:___________________________

改为:________________________________

扫描二维码立即获取答案

2010年辽宁专升本考试真题-C语言部分

2010辽宁省高职高专毕业生升入本科学校招生考试 计算机试卷 第二部分计算机高级语言部分(C语言) 四、填空题(将正确答案填写在答题卡相应的位置上,每小题2分,共10分) 41.C语言程序中可以对程序进行注释,注释部分必须使用的符号是______ 42.设float x=3.8,y=2.7,int a=5,则表达式x+a/3*(int)(x+y)%2+4的值为____________ 43.在C语言程序中,若对函数类型未加说明,则函数的隐含类型为:______________ 44.求解逗号表达式(a=9,a+4),a*2的值和a的值依次为____________ 45.函数的参数为float类型时,形参与实参与结合的传递方式为_____________ 五、阅读程序题(阅读下列程序,将正确的运行结果填写到答题卡相应的位置上。每小题3分,共24分) 46、下面程序运行的结果是。 main() { int x=4; if(x++>=5)printf("%d",x); else printf("%d\n",x--); } 47、下面程序的运行结果是。 main() { int a[]={1,3,5,7,9}; int y=1,x,*p; p=&a[1]; for(x=0;x,3;x++) y+=*(p+x); printf("%d\n",y); } 48、下面程序运行的结果是。 #include int func(int a) { int b=1; static c=4; a=++c,++b; return a; } main() {

int a=2,i,k; for(i=0;i,2;i++) k=func (++a) printf("%d\n",k); } 49、下面程序运行的结果是。#include main() { int k=0; char c='B'; switch(c++) { case 'A':k++;break; case 'B':k--; case 'C':k+=2; default:k*=3;break; } Printf("k=%d\n",k); } 50、下面程序运行的结果是。#include main() { int a[6]={12,4,17,25,27,16},b[6]={27,13,4,25,23,16},I,j; for(i=0;I<6;i++) { for(j=0;j<6;j++) if(a[i]==b[j])break; if(j<6)printf("%d",a[i]); } printf("\n"); } 51、下面程序运行的结果是 #include int fun(int u,int v); main() { int a=27,b=18,c; C=fun(a,b); printf("%d\n",c); }

C语言程序设计复习题(专升本)

《C语言程序设计》复习题(专升本) 一、填空题 1、关系操作的特点是操作。 2、按照软件测试的一般步骤,集成测试应在测试之后进行。 3、软件工程三要素包括方法、工具和过程,其中,支持软件开发的各个环节的控制和管理。 4、E-mail地址由用户和域名两部分组成,这两部分的分隔符为。 5、在二维表中,元组的不能再分成更小的数据项。 6、设变量a和b已正确定义并赋初值。请写出与a-=a+b等价的赋值表达式。 7、在DOS环境下,表示打印机的设备文件名为。 8、数据的逻辑结构有线性结构和两大类。 9、顺序存储方法是把逻辑上相邻的结点存储在物理位置的存储单元中。 10、一个类可以从直接或间接的祖先中继承所有属性和方法。采用这个方法提高了软件的。 11.是C程序的基本单位,一个C程序总是从开始执行。 12.C语言规定标识符只能由字母、数字和下划线3种字符组成,且第一个字符必须为字母或。 13.著名计算机科学家沃思提出的一个公式:数据结构+=程序 14.表达式 !!5的值是______。 15.下列程序段的输出结果是______。 printf("%xn", (0x19 <<1) & 0x17); 16.下列程序段的输出结果是_____。 int k, s; for(k=0, s=0; k<10; k++) if (s>k) break ; else s += k; printf("k=%d s=%d", k, s); 17.下列程序段的输出结果是_____。 #define MIN(x,y) (x)<(y)?(x) : (y)

printf("%d",10*MIN(10,15)); 18.下列程序在运行时可能会出错,原因是______。 # include void main( ) { char *s; gets(s); puts(s); } 19. 表达式1<0<5的值是。 20. 表达式 ~(10>>1^~5) 的值是。 二、选择题 1、以下叙述中正确的是 A. C语言比其他语言高级 B. C语言可以不用编译就能被计算机识别执行 C. C语言以接近英语国家的自然语言和数学语言作为语言的表达形式 D. C语言出现的最晚,具有其他语言的一切优点 2、C语言中用于结构化程序设计的三种基本结构是 A.顺序结构、选择结构、循环结构 B. if、switch、break C. for、while、do-while D. if、for、continue 3、在一个C程序中 A.main函数必须出现在所有函数之前 B. main函数可以在任何地方出现 C. main函数必须出现在所有函数之后 D. main函数必须出现在固定位置 4、下列叙述中正确的是 A.C语言中既有逻辑类型也有集合类型 B. C语言中没有逻辑类型但有集合类型 C. C语言中有逻辑类型但没有集合类型 D. C语言中既没有逻辑类型也没有集合类型 5、下列关于C语言用户标识符的叙述中正确的是 A.用户标识符中可以出现在下划线和中划线(减号) B.用户标识符中不可以出现中划线,但可以出现下划线

辽宁省专升本考试计算机模拟练习题一审批稿

辽宁省专升本考试计算机模拟练习题一 YKK standardization office【 YKK5AB- YKK08- YKK2C- YKK18】

专升本计算机模拟试卷(一) 第一部分:计算机基础知识 一.选择(40分,每个2分) 1、RAM的特点是()。 A)断电后,存储在其内的数据将会丢失 B)存储在其内的数据将永久保存 C)用户只能读出数据,但不能写入数据 D)容量大但存取速度慢 2、第一台电子计算机诞生于()。 A.1958年年年年 3、一个完整的计算机系统应当包括()。 A.计算机与外设 B.硬件系统与软件系统 C.主机、键盘与显示器 D.系统硬件与系统软件 4.第4代电子计算机使用的电子元件是() A.电子管 B.晶体管 C.中小规模集成电路 D.大规模和超大规模集成电路 5.在计算机存储器的术语中,一个“Byte”包含8个() A. 字母 B. 字长 C. 字节 D. 比特(位) 6.计算机辅助设计的英文缩写是() A. CAM B. CAI C. CAD D. CAT 7.在计算机中,用来传送、存储、加工处理的信息表示形式是() A. 拼音简码 B. ASCII码 C. 二进制码 D. 十六进制码 8.计算机中央处理器(CPU)是指() A. 控制器与运算器 B. 控制器与外设 C. 运算器与内存贮器 D. 存贮器与控制器 9.十进制数23转化为二进制为() .10111 C 10.微机在工作中尚未进行存盘操作,突然电源中断,则计算机 ( )全部丢失,再次通电也不能恢复。 A.硬盘中的信息 B.软盘中的信息 C.硬盘、软盘中所有信息 D.内存RAM中的信息 11.打印机是一种() A. 输出设备 B. 输入设备 C. 存贮器 D. 运算器

2013年辽宁专升本考试真题-C语言部分

2013辽宁省高职高专毕业生升入本科学校招生考试 计算机试卷 第二部分计算机高级语言部分(C语言) 四、填空题(将正确答案填写到答题卡相应的位置上,每小题2分,共10分) 41.若有定义:int a=2,b=1; 则表达式b+1.0/a 输出结果是________________________。 42. 若有定义:int a,b;则表达式b=((a=2*3,a*2),a+4)的值为________________________。 43.语句fopen(“myfile”,”r+”):的含义是________________________。 44.若有定义:int a;能正确表达-1≤a≤2 且a≠0 的C语言表达式是________________________。 45.若有定义:int a=1,b=2,max; 则能实现语句if(a>b) max=a;else max=b;的条件赋值语句为______。 五、阅读程序题(阅读下列程序,将正确的运行结果填写到答题卡相应的位置上,每小题3分,共24分) 46.下面程序运行的结果是___________________。 V oid main() { int i=1,sum=0,t=1; while(i<5) { t*=i++; Sum=sum+t; } Printf(“%d\n”,sum) } 47. 下面程序运行的结果是___________________。 main() { char c1,c2; c1=?A?+?8?-…3?; c2=?A?+?6?-…3?; printf(“%d,%c \n”,c1,c2); } 48.下面程序运行的结果是___________________。 main() { int a,b; for(a=1,b=1;a<=100;a++) { if(b>=20) break; if(b%3==1) { b+=3; continue;} b-=5; } printf(“%d\n”,a); }

专升本C语言历年考试题及答案2

专升本C语言历年考试题及答案一、单项选择题 1. C语言源程序文件经过C编译程序编译连接之后生成一个后缀为__C____的文件。 A、”.c” B、“.obj” C、“.exe” D、“.bas” 2. 以下选项中不正确的整型常量是_C____。 A、 12L B、 -10 C、 1,900 D、 123U 3. 表达式___C___的值是0。 A、3%5 B、3/ C、3/5 D、3<5 4. 表达式 !(x>0||y>0) 等价于__D___。 A、!x>0||!y>0 B、!(x>0)||!(y>0) C、!x>0&&!y>0 D、!(x>0)&&!(y>0) 5. 若变量已正确定义并赋值,表达式__D____不符合C语言语法。 A、4&&3 B、+a C、a=b=5 D、int 6. 若变量已正确定义,执行语句scanf("%d%d%d ",&k1,&k2,&k3);时,___B___是正确的输入。 A、2030,40 B、20 30 40 C、20, 30 40 D、20, 30,40 7. 执行语句printf(” __D____”, 2); 将得到出错信息。 A、%d B、%o C、%x D、%f 8. 设变量定义为“int s[ ]="hello\nworld\n";”,则数组s中有__B____个元素。 A、12 B、13 C、14 D、15 9. 设变量定义为“int a[2]={1,3}, *p=&a[0]+1;”,则*p的值是___B__。 A、2 B、3 C、4 D、&a[0]+1 10. 若变量已正确定义并赋值,表达式 -k++ 等价于__A____。 A、-(k++) B、(-k)++ C、-(k+1) D、-(++k) 11. 在C 语言程序中,在函数内部定义的变量称为__D____。

2004年辽宁专升本考试真题-英语

阅读(一) During the rest of sleep, the fatigue (疲劳) of the body disappears and recuperation (复原) begins. The tired mind gathers new energy; The memory improves; and annoyance and problems are seen correctly. Some adults require little sleep , others need eight to ten hours in every twenty-for. Infants sleep sixteen to eighteen hours daily, the amount gradually decreasing as they grow older. Young students may need twelve hours; university students may need ten. A worker with a physically demanding job may also need ten , whereas an executive working under great pressure may manage on six to eight. Many famous people are well known to have required little sleep . Napoleon Bonaparte, Thomas Edison , and Charles Darwin apparently averaged only four to six hours a night. Whatever your individual need , you can be sure that by the age of thirty you will have slept for a total of more than twelve years. By that age you will also have developed a sleep routine : a favorite hour, a favorite bed .a favorite posture (姿势),and a formula you need to follow in order to rest comfortably. Investigators have tried to find out how long a person can go without sleep. Several people have reached more than 115 hours-nearly days. Whatever the limit, it is absolute Animals kept awake for from five to eight days have died of exhaustion. The limit for human beings is probably about a week. 1.It is implied in the passage that__. A. a light sleep is as refreshing as a deep one B. sleep is important for good mental and physical health C. memory is greatly improved during sleep D. famous people need less sleep that ordinary people 2.It can be concluded from the passage that the amount of sleep required___, A. depends on the bed one sleeps in B. varies greatly from one individual to another C. can be predicted from the type of job one has D. is closely related to the amount of pressure one suffers 3.The word ―formula‖ (line 3, paragraph 3) most probably means___ A. a prescription B. a mathematical rule C. a fixed method or approach D. an expression of the elements of a compound 4.A person should __ in order to sleep well. A. follow his sleep routine B. go to bed early C. sleep as much as he can D. do a physically demanding job 5.The longest time a human being can survive without sleep is probably. A. five days B. seven days C. ten days D. twelve days 阅读(二) As prices and building costs keep rising , the “do-it-yourself ”(DIY) trend (趋势) in the U.S

湖北师范学院2010年专升本《C语言程序设计》试卷

湖北师范学院2010年“专升本”招生考试 《C语言程序设计》试题 一、选择题(本题共20小题,每题2分,共40分) 1.以下不合法的用户标识符是()。A)S2_KEY B)Int C) 4s D)_char 2.设有 int x=11; 则表达式 (++x)%3 的值是()。A)0 B)1 C)2 D)3 3.C语言源程序名的后缀是()。 A).exe B).cp C).obj D).c 4.若在定义语句:int a,b,c,*p=&c;之后,接着执行以下选项中的语句,则能正确执行的语句是()。 A)scanf("%d",a,b,c); B)scanf("%d%d%d",a,b,c); C)scanf("%d",p); D)scanf("%d",&p); 5.C语言中运算对象必须是整型的运算符是()。 A) %= B)/C) =D) 〈= 6.若有定义语句:int a[3][6]; ,按在内存中的存放顺序,a数组的第10个元素是()。A)a[0][4] B)a[0][3] C)a[1][4] D)a[1][3] 7.若要求定义具有10个int型元素的一维数组a,则以下定义语句中错误的是 A)#define N 10 Int a[N]B)#define n 5 Int a[2*n]C)int a[5+5]D)int n=10,a[n] 8.语句printf("a\bre\'hi\'y\\\bou\n");的输出结果是()。(说明:'\b'是退格符) A)re'hi'you B)abre'hi'y\bou C)a\bre\'hi\'y\bou D)a\bre\'hi\'y\\\bou 9.下列程序执行后的输出结果是()。 A)A B) B C) F D) G void main() { int x='f'; printf("%c \n",'A'+(x-'a'+1)); } 10.若变量已正确定义,有以下程序段

2006年辽宁专升本考试真题-英语

一、选择 1 The French pianist who had been ______ very highly turned out to be a great disappointment. A talked B mentioned C praised D pleased 2 ______we were given the right address, we found her house easily. A Since B although C If D so 3 In childre n’s _______ the Spring Festival is associated with nice food and presents. A brain B head C heart D mind 4 The doctor says that the new medicine will ______ you a good night’s sleep. A secure B assure C ensure D insure 5 The old couple ______to adopt a boy and a girl though they already had three of their own. A determined B settled C assigned D decided 6 The government is trying to do something to ______ better understanding between the two countries. A raise B lift C promote D push 7 Jane’s dress is similar _____ her sister’s in design. A for B to C with D with 8 By the time you get there this afternoon, the film _______. A is to start B is starting C will start D will have started 9 I suggested he _____himself to his new life in the countryside. A adopt B adapt C regulate D suit 10 It _____ me there days to have the watch repaired. A took B gave C kept D made 二、阅读(一) Here are two cars. They may some day take the place of today’s big cars. If we use such cars in the future, there will be less pollution in the air. There will be more space for parking cars in cities, and the street will be less crowded. There such cars can park in the space that is needed for one of today’s cars. The little cars will be very cheap. They will be very safe, too. Because these little cars can go at a speed of only 65 kilometers per hour. The car of the future will be fine for getting around a city but they will not be useful for long trips. If the car is powered by electricity, it will have two batteries—one for the motor and the other for the lights, signals, etc. If the little cars run on gasoline, they will go 450 kilometers before they need to stop for more gas. If big cars are still used along with the small ones, we must build two sets of roads, one for the big and the other for the small, slower cars. 11 The” two cars” talked about in the first sentence of the first paragraph refer to two cars_______. A with a small size B used for long trips C running on electricity D bigger th an today’s cars

最新专升本c语言程序设计模拟试卷资料

计算机科学与技术专业《基础知识》模拟试卷(考试时间150分钟,满 分300分,共三部分) 第一部分 C语言程序设计(共100分) 一、单项选择题(本大题共30小题,每小题2分,共60分) 1. 下列各选项中,均是合法有效的标识符的是【】 A. 3day B.lower C.day_3 D.ab Sum _days abcde student_name _of lotus_1_2_3 default M.D.john 2. 若希望当A的值为奇数时,表达式的值为“真”,A的值为偶数时,表达式的值为“假”。则以下不能满足要求的表达式是 A.A%2==1 B.!(A%2==0) C.!(A%2) D.A%2 3. 下列程序的输出结果是【】 #include void main() { int x=1,y=0,a=0,b=0; switch(x) { case 1: switch(y) { case 0: a++; break; case 1: b++; break; } case 2: a++;b++; break; case 3: a++;b++; break; } printf(“%d,%d\n”,a,b); } A.1,1 B.2,1 C.1,0 D.2,2 4. 以下关于switch语句和break语句的描述中,只有正确的是【】 A.在switch语句中必须使用break语句 B.在switch语句中,可以根据需要使用或不使用break语句

D.break语句是switch语句的一部分 5. 下面程序的输出是【】。 main() { int x=0x23; printf(“%d\n”,- -x); } A.18 B.19 C.34 D.35 6. 下列函数的输出结果是【】 #include int f1(int xb) { extern int xa; return (xa * xb); } void main(void) { extern int xb; int xa=5; printf(“xa=%d,xb=%d,result=%d”,xa,xb,f1(xa)); return 0; } int xa=3,xb=4; A. 3,4,12 B. 5,4,20 C. 5,4,15 D. 3,4,15 7. c语言规定,简单变量做实参时,它和对应形参之间的数据传递方式是 A. 地址传递 B. 由实参传给形参,再由形参传回给实参 C. 单向值传递 D. 由用户指定传递方式 8. 以下程序中调用scanf函数给变量a输入数值的方法是错误的,其原因是【】void main() { int *p,a; p=&a; scanf(“%d”,*p);

2008年辽宁专升本考试真题-基础部分

2008辽宁省专升本计算机试卷 第一部分基础知识 一、单项选择题(每小题2分,共40分) 1.第一代计算机主要应用于【】 A.科学计算 B.动画设计 C.自动控制 D.企业管理 2.将十六进制数BBBH转换成十进制数是【】 A.3001 B.3002 C.3003 D.3004 3.下列存储器中,访问速度最快的是【】 A.光盘 B.磁带 C.内存 D.硬盘 4.“计算机辅助教学”的英文缩写是【】 A.CAT B.CAD C.CAM D.CAI 5.在windows中,要关闭软件的窗口,需要用鼠标双击 A.标题栏 B.控制菜单栏 C.菜单栏 D.边框 6.在windows中,桌面上“我的电脑”图标的功能是【】 A.用来暂存用户删除的文件、文件夹等内容 B.用来管理计算机资源 C.用来管理网络资源 D.用来保持网络中的便携机和办公室中的文件同步 7.在windows中,当一个窗口已经最大化后,下列叙述中错误的是【】 A.该窗口可以关闭 B.该窗口可以移动 C.该窗口可以最小化 D.该窗口可以还原 8.在windows中,设置控制计算机硬件配置和修改桌面布局的应用程序是【】 A.控制面板 B.我的文档 C.任务栏 D.回收站 9.在word中,若要设置打印输出时的纸型,需调用“页面设置”命令,调用此命令要使用的菜单是【】 A.视图 B.格式 C.编辑 D.文件 10.在word中,关闭当前窗口可以使用的组合键是【】 A.ctrl+alt+del B.ctrl+F4 C.alt+F4 D.shift+F4 11.在word中,文档段落的对齐方式不包括【】 A.两端对齐 B.右对齐 C.居中对齐 D.外侧对齐 12.在word编辑状态下,设置页眉和页脚时使用的菜单是【】 A.编辑 B.视图 .插入 D.工具 13.在EXCEL中,单元格E10的值等于E5的值加上E6的值,单元格E10中输入的公式是【】 A.=E5+E6 B.=E5:E6 C.E5+e6 D.E5:E6 14.在EXCEL中,在单元格中输入数值17,不正确的输入形式是【】 A 17 B. 017 c +17 D. *17

2020年普通专升本《C语言程序设计》考试大纲

2020 年普通专升本《C 语言程序设计》考试大纲 本考试的目的是选拔部分高职高专毕业生进入本校计算机科学与技术专业本科阶段学习,考查考生是否具有综合运用 C 语言编程解决实际问题的能力以及学生对算法和编程基础知识的掌握程度,既测试学生的综合能力,也测试学生的基础知识。 一、考试科目名称:《C 语言程序设计》 二、考试方式:笔试、闭卷 三、考试时间:90 分钟 四、试卷结构:总分100 分 (一)单项选择题:15 题(每题 2 分,共30 分) (二)判断题:15 题(每题 2 分,共30 分) (三)简答题:4 题(每题 5 分,共20 分) (四)程序设计题:3 题(第一、二小题每题6 分,第三小题 8 分,共20 分) 五、考试的基本要求 了解高级程序设计语言的特点,熟练掌握结构化程序设计的方法,了解常用C 语言输入/输出语句、一维数组等各项语法的正确使用方法,并能进行程序的调试和纠错。 六、考试范围 第一章为什么要学C语言 了解C 语言的发展及其特点;掌握C 语言程序的结构;了 解 C 语言的特点。 第二章 C 数据类型 掌握 C 语言数据类型分类,掌握如何定义各种数据类型的

变量,以及他们的赋值方法;掌握常量与变量区别;掌握赋值运算符的使用方法。 第三章简单的算数运算和表达式 掌握算术运算符和运算表达式,以及符合赋值运算符的计算表;重点掌握是自增(+ +)和自减(--)运算符的使用。 第四章键盘输入和屏幕输出 掌握单个字符的输入输出;掌握数据的格式化屏幕输出;掌握数据的格式化键盘输入。 第五章选择结构程序设计 了解基本的算法概念及描述方法;掌握关系运算符和关系表达式;掌握单分支控制的条件语句、双分支控制的条件语句以及多分支选择的控制语句的使用。 第六章循环控制结构 掌握循环结构与循环语句的基本组成;掌握计数控制的循环结构;掌握条件控制的循环结构;掌握循环的嵌套使用方法。 第七章函数 掌握函数的分类和定义;掌握向函数传递值和从函数返回值的方法;了解模块化程序设计的基本原则。 第八章数组 掌握数组的概念及分类;掌握一维数组的定义和初始化。 七、参考教材 《C 语言程序设计》(第3 版),苏小红、王宇颖、孙志岗等编著,高等教育出版社。

2013年辽宁专升本考试真题-英语

2013年辽宁省高职高专应往届毕业生升入本科学校招生考试 英语试卷 第一部分选择题 一、词汇与语法 根据句意义及语法要求从每题A、B、C、D四个选项中,选出一个最适合的答案填空,并在答题卡上将所选答案的字母涂黑。(本大题共10小题,每小题1分,共10分) 1. ____the weather improves, we will suffer a huge loss in the tourist industry. A. As B. Since C. While D. Unless 2. We are happy at the good news ____ Mr. Black has been awarded the Best Manager. A. that B. which C. what D. whether 3. It is important that we ____ the task ahead of time. A. will finish B. finished C. finish D. shall finish 4. Would you please pass me the book ____ cover is black? A. which B. whose C. that D. its 5. ____in the company for three years, Mark has become experienced in business negotiations. A. Having worked B. Have been working C. Have worked D. Worked 6. Not until she arrived at the meeting room ____ she had forgotten to bring the document. A. she realized B. did she realize C. she did realize D. does she realize 7. John had never been abroad before, ____ he found the business trip very exciting. A. because B. though C. so D. while 8. ____ some students are to find employment after graduation, others will have to return to school and earn an advanced degree. A. Sine B. While C. Because D. If 9. We must find a way to cut prices ____ reducing our profits too much.. A. without B. despite C. with D. for 二、阅读理解 根据短文内容从每题A、B、C、D四个选项中,选出一个最适合的答案,并在答题卡上将所选答案的字母涂黑。(本大题共15小题,每小题3分,共45分) Passage1 The Key to any successful garage sale (家庭旧物出售) is to get the word out. The best means of advertising your sale is to place an ad in the local newspaper. If you have s city and neighborhood paper, make sure you advertise in both. The ad should be large enough that it stands out. It should also include information on where the sale is located with directions, the “hot” items you’re selling and the time the sale will start and end. An ad should be placed at least two days before the sale and run until the day of your event. That way people can plan their route (路线) to the sale in advance.

《C语言程序设计》考试大纲(专升本).doc

《C语言程序设计》考试大纲(专升本) 基本要求 1.熟练掌握C语言的基本知识; 2.具备基本的C语言程序设计能力,能熟练地阅读、理解和编制简短的C语言程序; 3.掌握C语言的编译和调试。 考试范围和要求 一、源程序结构 1.理解C程序的组成; 2.熟练掌握主函数main。 二、数据定义 1.基本类型:整型、实型、字符型。 (1)熟练掌握基本数据类型的常量表示,包括:整数的十进制、八进制、十六进制;实数的十进制小数形式和指数形式;字符常量和字符串常量; (2)熟练掌握变量的命名规则; (3)熟练掌握整型、实型、字符型变量定义、赋值和使用。 2.构造类型:数组、结构体。 (1)熟练掌握一维数组的定义、初始化及一维数组元素的引用; (2)掌握二维数组的定义、初始化及二维数组元素的引用; (3)熟练掌握字符数组的定义和初始化方法; (4)熟练掌握字符串的存储,字符串的处理; (5)能应用一维数组解决简单的应用问题,如遍历、检索、排序等; (6)能应用二维数组处理矩阵运算; (7)掌握结构体类型定义、结构体变量的定义和初始化,正确引用结构体变量成员,掌握结构体的简单应用编程。 3.指针 (1)正确理解指针的概念;

(2)熟练掌握指向各种类型的指针变量的定义和初始化,指针变量的一般使用; (3)理解指针与一维数组的关系; (4)熟练掌握指针在字符串处理中的应用; (5)了解指向指针的指针(二级指针)。 4.变量的存储类别、作用域和生存期 (1)了解变量的存储类别,包括auto 自动型、static 静态型、extern 外部参照型; (2)能正确运用全局变量和局部变量。 三、运算符与表达式 1.熟练掌握运算符的功能、目数、优先级和结合性。包括:算术运算符、自增(++)和自减(--)运算符、关系运算符、逻辑运算符、赋值运算符、复合赋值运算符、逗号运算符、条件运算符、位操作运算符。 2.熟练掌握隐式类型转换和强制类型转换; 3.熟练掌握各类表达式的计算规则及应用。 四、预处理命令 1.理解编译预处理; 2.正确定义和使用宏,包括不带参数的宏、带参数的宏; 3.正确使用文件包含命令; 4.了解条件编译。 五、流程控制 1.熟练掌握表达式语句、空语句、复合语句; 2.熟练掌握选择控制语句及应用(if…else…, switch…); 3.熟练掌握循环控制语句及应用(while, do while, for) 4.正确理解break,continue语句的含义,并能熟练运用。 六、函数 1.自定义函数 (1)正确定义函数; (2)正确理解函数形参与实参的关系,能熟练运用函数参数传递,包括指

完整word版,2005年辽宁专升本考试真题-英语

一、选择 1.It is well known that Thomas Edison _____ the electric lamp. A) discovered B) found C) developed D) invented 2.I couldn't enter the lab because I had _____ the key in my office. A) taken B) left C) missed D) got 3.I regret _____ you that we are unable to offer you ermalovinent. A) informing B) having informed C) to inform D) to have been informed 4.The chairman has informed us that he _____ a few minutes late after the meeting begins. A) has arrived B) should arrive C) could arrive D) may arrived 5.She had made _____ many mistakes in the article that we couldn't catch what she meant. A) such B) that C) so D) as 6.I sincerely _____ him to make great progress with his new job in a short time. A)expect B) believe C) think D) instruct 7.Is _____ necessary to complete the design before National Day? A) this B) that C) it D) such 8.She said she would live in London for _____ four or five years A) another B) others C) other D) the other 9.Mr.Smith used to smoke _____ but he has given it up now. A) badly B) seriously C) heavily D) hardly 10.Thousands of people took part when the old temple _____ . A) was rebuilding B)was being built C) would be built D) had been built 二、阅读 阅读(一) Shopping for clothes is not the same experience for a man as it is for a woman. A man goes shopping because he needs something. His purpose is clear and decided in advance. He knows what he wants, and his objective is to find it and buy it; the price is the second place for consideration(考虑). All men simply walk into a shop and ask the assistant for what they want. If the shop has it, the salesman quickly produces it, and the man begins to try it at once. For a man, small problems may begin when the shop does not have what he wants, or does not have exactly what he wants. In that case the salesman will try to sell the customer something else. Very often, he offers the nearest thing that he can produce. Now how does a woman go about buying clothes? In almost every respect she does so in the opposite way. Her shopping is not often based on need. She has never fully made up her mind of what she wants, and she is "having a look round". She will still be satisfied even if she has bought nothing 11.How does a man go shopping to buy something in a shop? A) He will often ask help from the shop assistant. B) He will look at it carefully and wait for a while. C) He has made a plan before he wants to buy it. D) He will discuss it with his wife and then buy it. 12.What is a man's attitude to the price of goods? A) He cares much about it. B) He pays little attention to it

相关文档
相关文档 最新文档