等级考试二级模拟题可以直接打印
计算机等级考试NCRE计算机等级考试二级模拟题2020年(198)_真题(含答案与解析)-交互

计算机等级考试(NCRE)计算机等级考试二级模拟题2020年(198)(总分100, 做题时间120分钟)单项选择题1. 下列叙述中正确的是______。
• A.算法就是程序• B.设计算法时只需要考虑数据结构的设计• C.设计算法时只需要考虑结果的可靠性• D.以上3种说法都不对SSS_SINGLE_SELA AB BC CD D该问题分值: 2.5答案:D算法是解题方案的准确而完整的描述,不等于程序,也不等于计算方法,所以A选项错误。
设计算法时不仅要考虑对数据对象的运算和操作,还要考虑算法的控制结构,所以B、C选项错误。
2. 算法的有穷性是指______。
• A.算法程序的运行时间是有限的• B.算法程序所处理的数据量是有限的• C.算法程序的长度是有限的• D.算法只能被有限的用户使用SSS_SINGLE_SELA AB BC CD D该问题分值: 2.5答案:A算法原则上能够精确地运行,而且人们用笔和纸做有限次运算后即可完成。
有穷性是指算法程序的运行时间是有限的。
3. 算法的空间复杂度是指______。
• A.算法在执行过程中所需要的计算机存储空间• B.算法所处理的数据量• C.算法程序中的语句或指令条数• D.算法在执行过程中所需要的临时工作单元数SSS_SINGLE_SELA AB BC CD D该问题分值: 2.5答案:A算法的空间复杂度是指算法在执行过程中所需要的内存空间,所以选择A选项。
4. 定义无符号整数类为∪lnt,下面可以作为类∪lnt实例化值的是______。
• A.-369•**•**D.整数集合{1,2,3,4,5}SSS_SINGLE_SELA AB BC CD D该问题分值: 2.5答案:B只有B选项369可以用无符号整数来表示和存储。
A选项-369有负号,C选项0.369是小数,都不能用无符号整数来存储。
D选项是一个整数集合,要用数组来存储。
5. 下列叙述中正确的是______。
全国公共英语等级(PETS)考试二级模拟试题含答案(5)

第⼀部分:听⼒部分(省略)第⼆部分:英语知识运⽤第⼀节:单项选择从A、B、C、D四个选项中,选出可以填⼊空⽩处选项,并在答题卡上将该项涂⿊.1.-How about the book you are reading ?-Good , indeed . It ________many problems we have come across in our study.A. saysB. talksC. coversD. refers2. I'd like to take my picture ________stands a high tower.A. whereB. whichC. thatD. there3. I'd like to buy a house, modern and comfortable, and __________, in a quiet place.A. afar allB. above allC. in allD. for all4. -You've got a good result in your research, haven't you?-Yes , but much ________ .A. remains to doB. is remains to doC. remains to be doneD. has remained to do it5. -I must be leaving now. It'll be 3 hours' drive to get there.-__________.A. Good-byeB. Take careC. Take it easyD. What can I do for you6. Nobody could have guessed , in those days , the place in history that Martin Luther King, Jr____.A. was havingB. was to haveC. had hadD. had7. The queen will visit the town in May , ________ she will open the new hospital.A. whenB. thenC. whileD. but8. I'll come , ________ I don't expect to enjoy myself.A. ifB. sinceC. asD. though9. You _________in such a hurry just now. Look, there is plenty of time left.A. don't have to do itB. needn't have done itC. wouldn't do itD. mustn't have done it10. _____________is one of the five working language at U.N. , which _______ are veryproud of.A. The Chinese, the ChineseB. Chinese language, ChineseC. Chinese, the ChineseD. Chinese language, the Chinese11. -What's your problem ?- I have lost sight of my mum and dad . I saw them ________ in front of me a moment ago.A. were walkingB. to have walkerC. walkD. walking12. Children are tired of learning often because they are __________to do more than they can.A. expectedB. suggestedC. hopedD. wished13. _________ concerts will be needed if we wanted to collect enough money to start a school.A. Some other tenB. Another tenC. Other tenD. Ten others14. The door burst open and ________ , shouting with anger.A. in rushed the crowdB. rushed in the crowdC. the crowd tin rushedD. in the crowd rushed15. We carved their names on the stone so that younger generations could know whattheir forefathers ____ for the nation.A. didB. were doingC. had doneD. have been doing第⼆节:完形填空阅读下⾯短⽂,从短⽂后所给各题四个选项(A、B、C、D中选出能填⼊相应空⽩处选项,并在答题卡上将该项涂⿊.In its home country of Germany, the hot dog was called the frankfurter. It was named 16 Frankfurt, a German city. Frankfurters were first 17 in the United States in 18 . Americans called frankfurters "dachshundsausages"(达克思⾹肠).A dachshund is a dog from Germany 19 a very long body and short legs. Dachshund sausages first 20popular in New York, 21 at baseball games. At games they were sold by men 22 kept them 23 in hot-water tanks.As the men walked 24 the rows of people , they yelled , "Get your dachshund sausages ! Get your hot dachshund sausages ! " People got the sausages on 25 , a special bread.26 in 1906 a newspaper cartoonist 27 Tad Dorgan went to a baseball game. 28 he saw the men with the dachshund sausages, he got an idea 29 a cartoon. The next day at the newspaper office he 30 a bun with a dachshund inside ---31 a dachshund sausage,32 a dachshund. Dorgan 33 how to spell dachshund . Under the cartoon, he wrote "Get your hot dogs !"The cartoon was a sensation(轰动) , and 34 .If you go to a baseball game today, you can still see sellers walking 35with hot-water tanks. As they walk up and down the rows they yell."Get your hot dogs here! Get your hot dogs !"16. A . with B. after C. by D. of17. A. got B. sold C. bought D. make18. A. the 1860s B. 1860's C. the 1860 D. 1865s19. A. by B. of C. at D. with20. A. gained B. stayed C. became D. were turned21. A. special B. especially C. certainly D. surely22. A. those B. which C. what D. who23. A. cool B. hot C. warm D. cold24. A. sometimes B. up and down C. someday D. here and there25. A. buns B. the tops C. coffee D. chocolates26. A. A day B. Any day C. Certain D. One day27. A. who is B. was C. was called D. named28. A. When B. While C. If D. Whether29. A. to B. as C. with D. for30. A. called B. made C. drew D. bought31. A. no B. without C. not D. for32. A. except B. but C. and D. except for33. A. didn't know B. wonders C. was sure D. never knows34. A. so the new name was B. so is the cartoonistC. so was the new nameD. the new name was so35. A. over B. around C. fast D. all day第三部分:阅读理解( A )What are some of the steps a person can take to prevent his house from being broken into while he is away? One step is to make sure that the house seems a lived-in one. Living room curtains should be pulled down only half-way. Bedrooms that usually have the curtains pulled down at night should be left down . Another is to make sure that all outside locks are the dead-bolt type (双保险) . Still another is to leave several 100W lights burning and make sure that one is in the kitchen. Lights that turned on and off by themselves are the best. Then, too, it is a good idea to leave the radio turned on and setto a talking station. Any type of speaking makes a thief think twice before trying to enter. Finally, while away on holiday, make sure that nothing collects in front or in the house. Particularly, make certain that the newspaper is stopped and thata trusted neighbour has been asked to pick up the mail. Thieves are especially quick to notice piled-up newspapers and overpiled mail boxes.36. Why did the writer begin this piece with question?A. Because he wanted to catch the readers' attention.B. Because he wanted to have the readers guess the answer before reading.C. Because he wanted to sum up (概括) the topic of the piece.D. Because he wanted to make the readers understand him better.37. The word "live-in" in this passage means ______________.A. left emptyB. lively and cheerfulC. now being used by peopleD. laid inside38. What does the writer advise the people to do?A. Ask a neighbour to pick up the daily mailB. Make sure to have lights that turn on and off by themselves.C. Make sure the newspaper is handed over every day.D. Pull the living room curtains down.39. The most important room to leave a light burning in is the _________.A. bedroomB. kitchenC. living roomD. sitting-room( B )Mr Richards has worked in a small seaside town for about ten years and he and his wife have a comfortable house near the sea.During the winter they would be quite happy, but every summer a lot of their relatives used to spend holiday in their house , and it was much cheaper than staying in hotel . Finally one day in June Mr Richards complained to a clever friend of his who lived in the same place. "One of my wife's cousins is going to bring her husband and children and spend ten days with us next month again. How have you prevented all your relatives from coming to live with you in summer ?" "Oh,"the friend answered, "that is not difficult. I just borrow money from all the rich ones, and lend it to all the poor ones. After that,they seldom come again." Hearing this Mr Richards smiled.40. The relatives preferred to stay in Mr Richards' house because _____________.A. it was cool in summerB. they might spend less moneyC. they were more welcomeD. it was a comfortable place41. According to his friend's opinion, the poor relatives would stop going there so oftenbecause ________ .A. they were shy to borrow money againB. hey were afraid to be asked to pay off the debtsC. they had been ill-treatedD. it wasn't happy for the poor to meet the rich42. The best title for this passage is ___________.A. Such a Clever FriendB. Mr Richards and his FriendC. Money is ImportantD. Such Good Usage of Money43. After reading the passage we can infer _____________.A. Mr Richards still complains about the coming of his relatives in summerB. The friend of Mr Richards' hadn't as many relatives as RichardsC. Gradually Mr Richards succeeded in keeping his relatives out in summerD. sNone of Richards' relatives came to the seaside town for their holidays again( C )I wonder why American towns looks so much alike that I sometimes mix them up in my memory. The standard influence(影响)of massproduction whose agents(代理商)are the travellingsalesman, the mail-order house, the five-and-ten cent stores, the chain stores, the movies can hardly explain it. If you stay two days in Bologna and in Ferrare, or in Arles and in Avignon, you will never mix them up in all your life. But it may well happen that after you spend two days in St.Louis and in Kansas City the appearances of these two cities soon mix up. I think the reason for this is that these towns have not yet had time enough to develop their own characters. Similarly, children are much less different from each other than grown people.44. Which two of the following towns look so much alike?A. Bologna and FerrareB. Arles and AvignonC. St. Louis and Kansas CityD. Bologna and St. Louis45. In line 4 the word "it" refers to ____________.A. standard of townsB. similarity of townsC. people's memoryD. mass production46. American towns look very much alike because of ____________.A. the standard influence of mass productionB. their different appearancesC. not being fully developedD. having everything in common( D )Millions of stars are travelling about in space. A few form groups which journey together, but most of them travel alone.And they travel through a universe so large that one star seldom comes near to another. For the most part each star makes its journey in complete loneliness, like a ship on an empty ocean. The ship will be well over a million miles from its nearest neighbor. From this it is easy to understand why a star seldom finds another anywhere neat it.We believe, however, that some two thousand million years ago, another star wandering(漫游) through space, happened to comenear our sun, Just as the sun and the moon raise tides(潮汐)on the earth, so this star must have raised tides on the surface of the sun .But they were very different from the small tides that are raised in our oceans; a large tidal wavemust have travelled over the surface of the sun, at last forming a mountain so high that we cannot imagine it. As the cause of the disturbance(动荡) came nearer, so the mountain rose higher and higher. And before the star began to move away again,its tidal pull had become so powerful that this mountain was torn to pieces and threw off small parts of itself into space. These small pieces have been going round the sun ever since. They are the planets(⾏星).47. Millions of stars are _______________.A. following a regular path in spaceB. moving about without a fixed courseC. seldom wandering about in the universeD. always travelling together48. Some two thousand million years ago, the mountain on the sun was raised probably because__________.A. a large tidal wave of a star travelled over the surface of the sunB. another star happened to come near the sunC. the sun and the moon raised the tides on the earthD. the star moved away from the sun49. The article suggests that _____________ .A. our earth exists before the sunB. how space formedC. no one knows where the earth comes fromD. our earth used to be a high mountain on the sun50. The expression "the cause of the disturbance" refers to _________.A. the large tidal waveB. the powerful tidal pullC. the star coming near the sunD. one of the sun's planets51. In this article, the writer mainly wants to tell the readers __________.A. that the universe is so large that we cannot imagine itB. how the high mountains were formed on the sunC. why the tides over the surface of the sun were so powerfulD. where the planets in the universe came from( E )Contacts(交往) between Japan and the rest of the world have grown a great deal in the twentieth century. In the last thirty years, business contacts between Japan and the West have become very important. Many foreign companies now have offices inJapan and Japanese businessmen do business around the world.Differences between Japanese and Western ways of doing business, however, often bewilder the foreign businessman and makedoing business in Japan difficult for foreigners.The American businessman, for example , wants of start talking business immediately . He wants quick decisions. He does notwait. The Japanese, on the other hand , likes to arrive at decisions gradually after giving them a great deal of thought. Another thing foreign businessmen have difficulty in understanding is when a Japanese means "Yes" or "No". This is becauseof cultural difference for a J a p a n e s e t o s a y " N o " d i r e c t l y . b r > I n E n g l i s h , i t i s e a s y t o s a y " N o " t o s o m e t h i n g w e d o n o t w a n t t o d o . B u t i n J a p a n i t i s v e r y d i f f i c u l t t o s a y " N o " . T o。
打印计算机二级ms操作题

打印计算机二级ms操作题一、选择题(每题1分,共10分)1. 在Word中,要将文本的字体设置为“宋体”,字号设置为“小四”,应使用以下哪个选项?A. 格式菜单中的“字体”B. 工具栏上的“字体”下拉框C. 工具栏上的“字号”下拉框D. 工具栏上的“样式”按钮2. 在Excel中,若要将单元格的格式设置为货币格式,应选择以下哪个选项?A. 格式菜单中的“单元格”B. 工具栏上的“格式”按钮C. 工具栏上的“货币”按钮D. 工具栏上的“数字格式”下拉框3. 在PowerPoint中,若要将幻灯片的背景设置为渐变色,应使用以下哪个选项?A. 格式菜单中的“背景”B. 工具栏上的“背景”按钮C. 设计菜单中的“背景样式”D. 工具栏上的“填充效果”按钮4. 在Word中,若要插入页眉和页脚,应使用以下哪个选项?A. 插入菜单中的“页眉和页脚”B. 工具栏上的“页眉和页脚”按钮C. 格式菜单中的“页眉和页脚”D. 工具栏上的“页面设置”按钮5. 在Excel中,若要对数据进行排序,应使用以下哪个选项?A. 数据菜单中的“排序”B. 工具栏上的“排序”按钮C. 数据菜单中的“筛选”D. 工具栏上的“排序和筛选”按钮6. 在PowerPoint中,若要插入一个图表,应使用以下哪个选项?A. 插入菜单中的“图表”B. 工具栏上的“图表”按钮C. 插入菜单中的“对象”D. 工具栏上的“插入”按钮7. 在Word中,若要设置文档的页边距,应使用以下哪个选项?A. 文件菜单中的“页面设置”B. 工具栏上的“页面设置”按钮C. 格式菜单中的“页面设置”D. 工具栏上的“页面布局”按钮8. 在Excel中,若要插入一个公式,应使用以下哪个选项?A. 编辑栏中的“公式”按钮B. 工具栏上的“公式”按钮C. 工具栏上的“插入”按钮D. 编辑栏中的“fx”按钮9. 在PowerPoint中,若要设置幻灯片的切换效果,应使用以下哪个选项?A. 幻灯片放映菜单中的“切换效果”B. 工具栏上的“切换效果”按钮C. 幻灯片放映菜单中的“幻灯片切换”D. 工具栏上的“动画效果”按钮10. 在Word中,若要插入一个表格,应使用以下哪个选项?A. 插入菜单中的“表格”B. 工具栏上的“表格”按钮C. 插入菜单中的“对象”D. 工具栏上的“插入”按钮二、填空题(每题2分,共20分)1. 在Word中,若要将文档的标题设置为“标题1”样式,可以使用快捷键________。
2021年全国计算机二级等级考试模拟试卷及答案(第十二套)

2021年全国计算机二级等级考试模拟试卷及答案(第十二套)1. 下列叙述中正确的是A) 算法的效率只与问题的规模有关,而与数据的存储结构无关B) 算法的时间复杂度是指执行算法所需要的计算工作量C) 数据的逻辑结构与存储结构是一一对应的D) 算法的时间复杂度与空间复杂度一定相关参考答案:B2. 下列叙述中正确的是A) 线性表链式存储结构的存储空间一般要少于顺序存储结构B) 线性表链式存储结构与顺序存储结构的存储空间都是连续的C) 线性表链式存储结构的存储空间可以是连续的,也可以是不连续的D) 以上说法均错误参考答案:C3. 某二叉树共有12个结点,其中叶子结点只有1个。
则该二叉树的深度为(根结点在第1层)A) 3B) 6C) 8D) 12参考答案:D4. 对长度为n的线性表作快速排序,在最坏情况下,比较次数为A) nB) n-1C) n(n-1)D) n(n-1)/2参考答案:D5. 结构化程序设计中,下面对goto语句使用描述正确的是A) 禁止使用goto语句B) 使用goto语句程序效率高C) 应避免滥用goto语句D) 以上说法均错误参考答案:C6. 下面不属于软件测试实施步骤的是A) 集成测试B) 回归测试C) 确认测试D) 单元测试参考答案:B7. 下面不属于软件需求分析阶段主要工作的是A) 需求变更申请B) 需求分析C) 需求评审D) 需求获取参考答案:A8. 一般情况下,当对关系R和S进行自然连接时,要求R和S含有一个或者多个共有的A) 记录B) 行C) 属性D) 元组参考答案:C9.A) 选择B) 差C) 交D) 并参考答案:B10. 有表示公司和职员及工作的三张表,职员可在多家公司兼职。
其中公司C(公司号,公司名,地址,注册资本,法人代表,员工数),职员S(职员号,姓名,性别,年龄,学历),工作W(公司号,职员号,工资),则表W的键(码)为A) 公司号,职员号B) 职员号,工资C) 职员号D) 公司号,职员号,工资参考答案:A11. 关于算法,以下叙述中错误的是A) 某个算法可能会没有输入B) 某个算法可能会没有输入C) 一个算法对于某个输入的循环次数是可以事先估计出来的D) 任何算法都能转换成计算机高级语言的程序,并在有限时间内运行完毕参考答案:D12. 关于C语言的变量,以下叙述中错误的是A) 变量所占的存储单元地址可以随时改变B) 所谓变量是指在程序运行过程中其值可以被改变的量C) 程序中用到的所有变量都必须先定义后才能使用D) 由三条下划线构成的符号名是合法的变量名参考答案:A13. 关于do 循环体while (条件表达式);以下叙述中正确的是A) 条件表达式的执行次数总是比循环体的执行次数多一次B) 循环体的执行次数总是比条件表达式的执行次数多一次C) 条件表达式的执行次数与循环体的执行次数一样D) 条件表达式的执行次数与循环体的执行次数无关参考答案:C14. 若有以下程序#include <stdio.h>main(){ int a=-11, b=10;a /=b /= -4;printf("%d %d\n", a, b);}则程序的输出结果是A) 4 -3B) -1 -2C) 5 -2D) 5 -3参考答案:C15. 若有以下程序#include <stdio.h>main(){ int a=0,b=0,c=0c= (a+=++b, b+=4);printf("%d,%d,%d\n",a,b,c);}则程序的输出结果是A) 1,5,1B) 1,5,5C) -1,4,4D) -1,4,-1参考答案:B16. 若有定义int a;float b;double c;程序运行时输入:3 4 5<回车>能把值3输入给变量a、4输入给变量b、5输入给变量c的语句是A) scanf("%d%f%lf", &a,&b,&c);B) scanf("%d%lf%lf", &a,&b,&c);C) scanf("%d%f%f", &a,&b,&c);D) scanf("%lf%lf%lf", &a,&b,&c);参考答案:A17. 若有以下程序#include <stdio.h>main(){ int a=1,b=2,c=3,d=4;if ((a=2) && (b=1)) c=2;if ((c==3) || (d=-1)) a=5;printf("%d,%d,%d,%d\n", a,b,c,d);}则程序的输出结果是A) 2,2,2,4B) 2,1,2,-1C) 5,1,2,-1D) 1,2,3,4参考答案:C18. 若有以下程序#include <stdio.h>main(){ int a=1,b=2,c=3,d=4, r=0;if (a!=1) ; else r=1;if (b==2) r+=2;if (c!=3); r+=3;if (d==4) r+=4;printf("%d\n", r);}则程序的输出结果是A) 3B) 7C) 6D) 10参考答案:D19. 若有以下程序#include <stdio.h>main(){ int s=0, n;for (n=0; n<4; n++){ switch(n){ default: s+=4;case 1: s+=1; break;case 2: s+=2; break;case 3: s+=3;}}printf("%d\n", s);}则程序的输出结果是A) 10B) 11C) 13D) 15参考答案:B20. 若有以下程序#include <stdio.h>main(){ int a=-2, b=0;do { ++b ; } while(a++);printf("%d,%d\n", a, b);}则程序的输出结果是A) 1,3B) 0,2C) 1,2D) 2,3参考答案:A21. 若有以下程序#include <stdio.h>main(){ int a=6, b=0, c=0;for ( ;a&&(b==0); ){ b += a; a -= c++; }printf("%d,%d,%d\n", a,b,c);}则程序的输出结果是A) 5,6,0B) 6,0,0C) 6,6,1D) 5,6,1参考答案:C22. 以下选项中非法的C语言字符常量是A) '\x9d'B) '9'C) '\x09'D) '\09'参考答案:D23. 若有以下程序#include <stdio.h>char f(char x){ return x*x%10 + '0'; }main(){ char a; int b=0;for ( a=0; a<5; a+=1 ){ b = f(a); putchar(b); } }则程序的输出结果是A) 014916B) 01234C) 01496D) 00000参考答案:C24. 若有以下程序#include <stdio.h>void sp(int *a){ int b=2;*a = *a * 2; printf("%d,", *a);a=&b; *a = *a * 2; printf("%d,", *a);}main(){ int k=3;sp(&k); printf("%d\n", k);}则程序的输出结果是A) 6,12,12B) 6,4,3C) 6,4,6D) 9,4,9参考答案:C25. 若有以下程序#include <stdio.h>int k=7,m=5;void f(int **s){ int *t=&k;s=&t; *s=&m; printf("%d,%d,%d,", k, *t, **s);}main(){ int i=3,*p=&i, **r = &p;f(r);printf("%d,%d,%d\n", i, *p, **r);}则程序的输出结果是A) 7,5,7,3,5,7,B) 7,5,7,3,3,3,C) 7,5,5,3,3,3,D) 7,7,5,3,3,3,参考答案:C26. 若有以下程序#include <stdio.h>int *f(int *s, int *t){ int k;if (*s < *t) { k = *s; *s=*t; *t=k; }return s;}main(){ int i=3, j=5, *p=&i, *q=&j, *r;r=f(p,q);printf("%d,%d,%d,%d,%d\n", i, j, *p, *q, *r);}则程序的输出结果是A) 5,3,3,5,5B) 3,5,5,3,5C) 3,5,3,5,5D) 5,3,5,3,5参考答案:D27. 若有以下程序#include <stdio.h>#define N 4void fun( int a[][N], int b[], int flag ){ int i,j;for( i=0; i<N; i++ ){ b[i] = a[0][i];for( j=1; j<N; j++ )if (flag ? (b[i] > a[j][i]) : (b[i] < a[j][i])) b[i] = a[j][i];}}main(){ int x[N][N]={1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16}, y[N],i;fun(x, y, 1);for (i=0;i<N; i++) printf("%d,", y[i]);fun(x, y, 0);for (i=0;i<N; i++) printf("%d,", y[i]);printf("\n");}则程序的输出结果是A) 4,8,12,16,1,5,9,13,B) 1,2,3,4,13,14,15,16,C) 1,5,9,13,4,8,12,16,D) 13,14,15,16,1,2,3,4,参考答案:B28. 若有以下程序#include <stdio.h>void fun(int a[ ], int n){ int t, i, j;for ( i=0; i<n; i+=2 )for ( j=i+2; j<n; j+=2 )if ( a[i] > a[j] ) { t=a[i]; a[i]=a[j]; a[j]=t; } }main(){ int c[10]={10,9,8,7,6,5,4,3,2,1},i;fun(c, 10);for ( i=0; i<10; i++ ) printf("%d,", c[i]);printf("\n");}则程序的输出结果是A) 1,10,3,8,5,6,7,4,9,2,B) 10,9,8,7,6,5,4,3,2,1,C) 10,1,8,3,6,5,4,7,2,9,D) 2,9,4,7,6,5,8,3,10,1,参考答案:D29. 若有以下程序#include <stdio.h>main(){ int i, j=0;char a[]="How are you!", b[10];for ( i=0; a[i]; i++ )if (a[i] == ' ') b[j++]=a[i+1];b[j]='\0';printf("%s\n",b);}则程序的输出结果是A) Howareyou!B) HowareyouC) Hay!D) ay参考答案:D30. 若有以下程序#include <stdio.h>char *a="you", b[ ]="welcome#you#to#China!";main(){ int i,j=0; char *p;for ( i=0; b[i]!='\0'; i++ ){ if (*a == b[i]){ p=&b[i];for (j=0; a[j]!='\0'; j++){ if (a[j] != *p) break;p++;}if (a[j]=='\0') break;}}printf("%s\n", p);}则程序的输出结果是A) #to#China!B) #you#to#China!C) me#you#to#China!D) #China!参考答案:A31. 若有以下程序#include <stdio.h>main(){ char a[20], b[ ]="The sky is blue."; int i;for (i=0; i<10; i++) scanf("%c", &a[i]);a[i]='\0';gets(b);printf("%s%s\n", a,b);}执行时若输入:Fig flower is red. <回车>则输出结果是A) Fig flower is red.is blue.B) Fig flower is red.C) Fig floweris red.D) Fig floweris参考答案:B32. 若有以下程序#include <stdio.h>main(){ char w[20]="dogs",a[5][10]={"abcdef", "ghijkl", "mnopq", "rstuv", "wxyz ."};int i, j, k;for (i=0; w[i]; i++){ for (j=0; j<5; j++){ for (k=0; a[j][k]; k++)if (w[i]==a[j][k]) break;if (w[i]==a[j][k]) break;}printf("%d,%d,", j,k);}}则程序的输出结果是A) 0,3,2,2,1,0,3,1,B) 1,4,3,3,2,1,4,2,C) 5,6,5,6,5,6,5,6,D) 6,7,6,7,6,7,6,7,参考答案:A33. 若有以下程序#include <stdio.h>int f(int a[], int n){ if (n > 1){ int t;t=f(a, n-1);return t > a[n-1] ? t : a[n-1];elsereturn a[0];}main(){ int a[] = {8,2,9,1,3,6,4,7,5};printf("%d\n", f(a, 9));}则程序的输出结果是A) 9B) 1C) 8D) 5参考答案:A34. 若有以下程序#include <stdio.h>int f(int m){ static int n=0;int a=2;n++; a++; return n+m+a;}{ int k;for (k=0; k<4; k++) printf("%d,", f(k));}则程序的输出结果是A) 3,5,7,9,B) 4,7,10,13,C) 4,5,6,7,D) 4,6,8,10,参考答案:D35. 若有以下程序#include <stdio.h>#define S(x) (x)*(x)#define T(x) S(x)/S(x)+1main(){ int k=3, j=2;printf("%d,%d\n", S(k+j),T(k+j) );}则程序的输出结果是A) 11,2B) 25,2C) 11,12D) 25,26参考答案:D36. 若有以下程序#include <stdio.h>typedef struct stu {char name[10], gender;int score;} STU;void f(STU a, STUB){ b = a;printf( "%s,%c,%d,", , b.gender, b.score );}main(){ STU a={"Zhao", 'm', 290}, b={"Qian", 'f', 350};f(a,b);printf("%s,%c,%d\n", , b.gender, b.score);}则程序的输出结果是A) Qian,f,350,Qian,f,350B) Zhao,m,290, Zhao,m,290C) Zhao,m,290,Qian,f,350D) Zhao,m,290,Zhao,f,350参考答案:C37. 若有以下程序#include <stdio.h>#include <string.h>typedef struct stu { char name[10], gender;int score;} STU;void f( char *p ){ strcpy( p, "Qian" ); }main(){ STU a={"Zhao", 'm', 290}, b;b=a;f();b.gender = 'f'; b.score = 350;printf("%s,%c,%d,", , a.gender, a.score);printf("%s,%c,%d\n", , b.gender, b.score);}则程序的输出结果是A) Zhao,m,290,Qian,f,350B) Zhao,m,290, Zhao,m,290C) Qian,f,350,Qian,f,350D) Zhao,m,290,Zhao,f,350参考答案:A38. 若有定义typedef char T[10];T *a;上述定义中a的类型与下面选项中完全相同的是A) char a[10];B) char (*a)[10];C) char *a;D) char *a[10];参考答案:D39. 若有以下程序#include <stdio.h>main(){ int c;c = 13|5;printf("%d\n", c);}则程序的输出结果是A) 13B) 15C) 18D) 5参考答案:A40. 若有以下程序#include <stdio.h>main(){ FILE *fp;int i, a[6]={1,2,3,4,5,6}, k;fp = fopen("data.dat", "w+b");for (i=0; i<6; i++){ fseek(fp, 0L, 0);fwrite(&a[5-i], sizeof(int), 1, fp);}rewind(fp);fread(&k, sizeof(int), 1, fp);fclose(fp);printf("%d", k);}则程序的输出结果是A) 6B) 1C) 123456D) 21参考答案:B赠送励志修身名言警句可怕的敌人,就是没有坚强的信念。
2023年9月计算机二级模拟训练题

2023年9月计算机二级模拟训练题2023年9月计算机二级模拟训练题导语:计算机二级考试是全国计算机等级考试四个等级中的一个等级,考核计算机基础学问和使用一种高级计算机语言编写程序以及上机调试的基本技能。
以下是我为大家细心整理的2023年9月计算机二级模拟训练题,欢迎大家参考!1). 下列关于构造方法的说法正确的是A.由于构造方法名与类名必需相同,所以构造方法的首字母必需大写。
B.构造方法是给对象赋初值,所以没有返回值,要用void来声明。
C.构造方法不能被程序调用,也不行以重载。
D.一个类只允许有一个构造方法。
正确答案:A2). 下面对形参的说法,哪个是正确的?A.必需有多个B.至少有一个C.可以没有D.只能是简洁变量正确答案:C3). 软件测试目的`是( )。
A.评估软件牢靠性B.发觉并改正程序中的错误C.改正程序中的错误D.发觉程序中的错误正确答案:D答案解析:软件测试的目的主要是在于发觉软件错误,期望在软件开发生命周期内尽可能早的发觉尽可能多的bug。
4). 在程序读人字符文件时,能够以该文件作为直接参数的类是( )。
A.FileReaderB.BufferedReaderC.FileInputStreamD.()hjectlnputStream正确答案:A答案解析:FileReader、BufferedReader是字符类输入流。
FileInputStream是字节输入流。
对象串行化时,需要使用ObjectInputStream类中供应的方法从对象流中读取对象。
所以,在程序读入字符文件时,要使用字符流FileReader或BufferedReader。
但是FileReader的参数是读入的文件,而BufferedReader的参数是FileReader流的一个对象。
因此,本题的正确答案是A。
5). 用鼠标单击菜单项(MenuIte m)产生的大事是( )。
A.MenuEventB.ActionEventC.KeyEventD.MouseEvent正确答案:B答案解析:ActionEvent是组件大事,当特定于组件的动作(比如被按下)发生时,由组件(比如Button)生成此高级别大事。
计算机等级考试NCRE计算机等级考试二级模拟题2020年(52)_真题(含答案与解析)-交互

计算机等级考试(NCRE)计算机等级考试二级模拟题2020年(52)(总分100, 做题时间90分钟)一、选择题1. 数据库管理系统是______。
• A.操作系统的一部分• B.在操作系统支持下的系统软件• C.一种编译系统• D.一种操作系统SSS_SINGLE_SELA AB BC CD D该问题分值: 1答案:B数据库系统属于系统软件的范畴。
2. 在E—R图中,用来表示实体联系的图形是______。
• A.椭圆形• B.矩形• C.菱形• D.三角形SSS_SINGLE_SELA AB BC CD D该问题分值: 1答案:CE—R图也即实体—联系图(Entity Relationship Diagram),提供了表示实体型、属性和联系的方法,用来描述现实世界的概念模型,构成E—R图的基本要素是实体型、属性和联系,其表示方法为:实体型(Entity):用矩形表示,矩形框内写明实体名;属性(Attribute):用椭圆形表示,并用无向边将其与相应的实体连接起来;联系(Relationship):用菱形表示,菱形框内写明联系名,并用无向边分别与有关实体连接起来,同时在无向边旁标上联系的类型(1:1,1:n或m:n)。
3. 下列操作中,适合使用宏的是______。
• A.修改数据表结构• B.创建自定义过程• C.打开或关闭报表对象• D.处理报表中错误SSS_SINGLE_SELA AB BC CD D该问题分值: 1答案:C适宜使用宏的操作应具有的特点是能够重复操作。
4. 下列排序方法中,最坏情况下比较次数最少的是______。
• A.冒泡排序• B.简单选择排序• C.直接插入排序• D.堆排序SSS_SINGLE_SELA AB BC CD D该问题分值: 1答案:D本题考查排序的比较次数,冒泡排序、简单选择排序和直接插入排序在最坏的情况下比较次数为:n(n-1)/2。
而堆排序法在最坏的情况下需要比较的次数为O(nlog<sub>2</sub>n)。
全国计算机等级考试二级-基础知识和C语言程序设计 模拟考试试卷及答案(四)
全国计算机等级考试二级-基础知识和C语言程序设计模拟考试试卷及答案(四)一、选择题(1)通常所说的主机主要包括A)CPU B)CPU和内存C)CPU、内存与外存 D)CPU、内存与硬盘(2)在微机系统中,最基本的输入输出模块BIOS存放在A)RAM中 B)ROM中 C)硬盘中 D)寄存器中(3)一个24*24点阵的汉字字形信息所占的字节数为A)2 B)24 C)32 D)72(4)bit的意思是A)字 B)字长 C)字节 D)二进制位(5)某学校的工资管理程序属于A)系统程序 B)应用程序C)工具软件 D)文字处理软件(6)与十六进制数BB等值的十进制数是A)187 B)188 C)185 D)186(7) 设一张软盘已染上病毒,能清除病毒的措施是A)删除该软盘上的所有文件 B)格式化该软盘C)删除该软盘上的所有可执行文件 C)删除该软盘上的所有批处理文件(8)一张3.5英寸双面高密度软盘片的容量为A)360KB B)720KB C)1.44MB D)1.2MB(9)与二进制小数0.1等值的十六进制小数为A)0.1 B)0.2 C)0.4 D)0.8(10)DOS系统的热启动与冷启动的不同之处为热启动时A)不检测键盘、处设接口与内存 B)不提示用户输入日期与时间C)不用装入文件 D)不能从软盘启动(11)为了将磁盘上的文件K1,K2,K3,依次连接在文件K4的后面,应使用命令A)COPY K1+K2+K3 K4 B)COPY K1+K2+K3+K4C)COPY K1+K2+K3+K4 K4 D)COPY K4+K1+K2+K3(12)下列文件名中可以作为批处理文件名的是A)AUTOEXC.C B)AUTOEXECC)ATX.BAT D)AUTO.TXT(13)要打印输出当前盘的根目录下所有文件与子目录清单,应使用命令A)DIR \ PRN B)TYPE \ PRNC)DIR PRN C)TYPE PRN(14)设可执行文件 ABC.EXE 所需要的本该由键盘输入的数据已经按格式存放在文件XYZ 中,并要求执行结果放在文件 XYZ 中输入数据的后面. 下列命令中正确的是A) ABC XYZ B) ABC XYZC) ABC <XYZ(15)设当前盘中某一目录路径为 \A\B\C,当前目录为\A.下列命令中肯定出错的是A)MD \A\C B) CD C) MD \A\B\A D) MD \A\B(16)设 A 盘的目录结构如下:根目录│┌─────┬┴──┬───┬───┬────┐│ │ │ │ │ │ABC D1子目录 DX.C Q.DAT D2子目录A.FOR│ │┌────┬─┴──┬───┐┌───┬───┐│ │ │ │ │ │ │B.PAS D3子目录 Y.BAS A.C A1.C D4子目录XYZ.C│┌────┬────┬────┐│ │ │ │QR.C NA.C A.TXT B.C如果当前盘为 C 盘,A 盘的当前目录为\D2,则下列对 A 盘上文件QR.C 的指定中,合法的是A)\D2\D4\QR.C B)D4\QR.CC)A:D4\QR.C D)A:D2\D4\QR.C(17)下列DOS命令中,有错误的是A)TYPE AAB.FORCON B)TYPE ?AB.FORC)COPY *.C CON D)COPY CON PRN(18)设当前盘为A盘,为了将当前盘当前目录下的文件AB1.TXT连接在C 盘根目录下的文件XYZ.TXT的后面,正确的命令是A)COPY C:\XYZ.TXT+AB1.TXTB)COPY AB1.TXTC:\XYZ.TXTC)TYPE AB1.TXTC:\XYZ.TXTD)AB1.TXT+C:\XYZ.TXTC:\XYZ.TXT(19)下列命令中合法的是A)DISKCOPY A: A: B)DISKCOPY A: C:C)DISKCOPY C: A: D)DISKCOPY C: D:(20)设当前盘中某一目录路径为\A\B\C\D\XU,当前目录为\A.要将根目录下扩展名为.C的所有文件复制到当前目录下,并将扩展名改为.FOR,应使用命令A)COPY \*.C *.FOR B)COPY *.C \A\*.FORC)COPY *.FOR \*.C D)COPY \A\*.C *.FOR(21)下列不正确的转义字符是A)'\\' B)'\" C)'074' D)'\0'(22)若有以下定义:char a; int b;float c; double d;则表达式a*b+d-c值的类型为A) float B) int C) char D) double(23)表示关系x<=y<=z的c语言表达式为A) (X<=Y)&&(Y<=Z) B) (X<=Y)AND(Y<=Z)C) (X<=Y<=Z) D) (X<=Y)&(Y<=Z)(24)设a=1,b=2,c=3,d=4,则表达式:a<b?a:c<d?a:d的结果为A) 4 B) 3 C) 2 D) 1(25)设x为int型变量,则执行以下语句后,x的值为x=10; x+=x-=x-x;A) 10 B) 20 C) 40 D) 30(26)下列可作为C语言赋值语句的是A) x=3,y=5 B) a=b=6C) i--; D) y=int(x);(27)设x,y,z,t均为int型变量,则执行以下语句后,t的值为x=y=z=1;t=++x||++y&&++z;A) 不定值 B) 2 C) 1 D) 0(28)设i是int型变量,f是float型变量,用下面的语句给这两个变量输入值:scanf("i=%d,f=%f",&i,&f);为了把100和765.12分别赋给i和f,则正确的输入为A) 100765.12 B) i=100,f=765.12C) 100765.12 D) x=100y=765.12(29)设x和y均为int型变量,则执行下的循环后,y值为for(y=1,x=1;y<=50;y++){ if(x=10))break;if (x%2==1){ x+=5; continue;}x-=3;}A) 2 B) 4 C) 6 D) 8(30)给出以下定义:char x[ ]="abcdefg";char y[ ]={'a','b','c','d','e','f','g'};则正确的叙述为A) 数组X和数组Y等价 B) 数组x和数组Y的长度相同C) 数组X的长度大于数组Y的长度 D) 数组X的长度小于数组Y的长度(31)以下叙述中不正确的是A) 在不同的函数中可以使用相同名字的变量B) 函数中的形式参数是局部变量C) 在一个函数内定义的变量只在本函数范围内有效D) 在一个函数内的复合语句中定义的变量在本函数范围内有效(32)假定a和b为int型变量,则执行以下语句后b的值为a=1; b=10;do{ b-=a; a++; }while (b--<0);A) 9 B) -2 C) -1 D) 8(33)设j为int型变量,则下面for循环语句的执行结果是for( j=10;j3;j--){ if(j%3)j--;--j; --j;printf("%d ",j);}A) 6 3 B) 7 4 C) 6 2 D) 7 3(34)设有以下宏定义:#define N 3#define Y(n) ( (N+1)*n)则执行语句:z=2 * (N+Y(5+1));后,z的值为A) 出错 B) 42 C) 48 D)54(35)设P1和P2是指向同一个int型一维数组的指针变量,k为int 型变量,则不能正确执行的语句是A)k=*P1+*P2; B)p2=k;C)P1=P2; D)K=*P1 * (*P2);(36)设有如下定义:int arr[]={6,7,8,9,10};int * ptr;则下列程序段的输出结果为ptr=arr;* (ptr+2)+=2;printf ("%d,%d\n",*ptr,*(ptr+2));A)8,10 B)6,8 C)7,9 D)6,10(37)以下程序的输出结果是main(){ int i,k,a[10],p[3]:K=5;for (i=0;i<10;i++) a[i]=i;for (i=0;i<3;i++) p[i]=a[i*(i+1)];for (i=0;i<3;i++) k+=p[i]*2;printf("%d\n",k);}A) 20 B) 21 C) 22 D)23(38)执行以下程序段后,m的值为int a[2][3]={ {1,2,3},{4,5,6} };int m,*p;p=&a[0][0];m=(*p)*(*(p+2))*(*(p+4));A) 15 B) 14 C) 13 D) 12(39)有以下程序段char arr[]="ABCDE";char *ptr;for(ptr=arr;ptr<arr+5;ptr++)printf("%s\n",ptr);输出结果是A) ABCD B) A C) E D)ABCDEB D BCDEC C CDED B DEE A E(40)有以下程序main(){ int x,i;for(i=1;i<=50;i++){ x=i;if(++x%2==0)if(x%3==0)if(x%7==0)printf("%d,i);}}输出结果是A) 28 B) 27 C) 42 D) 41(41)有下列程序#include<stdio.hmain(){ union{ int k;char i[2];} *s,a;s=&a;s-i[0]=0x39; s-i[1]=0x38;printf("%x\n",s-k);}输出结果是A) 3839 B) 3938 C) 380039 D) 390038(42)有以下程序#include <stdio.hmain(){ int a,b,c=246;a=c/100%9;b=(-1)&&(-1);printf("%d,%d\n",a,b);}输出结果是A) 2,1 B) 3,2 C) 4,3 D) 2,-1(43)设有如下定义:int (*ptr)*();则以下叙述中正确的是A) ptr是指向一维组数的指针变量B) ptr是指向int型数据的指针变量C) ptr是指向函数的指针,该函数返回一个int型数据D) ptr是一个函数名,该函数的返回值是指向int型数据的指针(44)有以下程序#include <stdio.hstruct stu{ int num;char name[10];int age;};void fun(struct stu *p){ printf("%s\n",(*p).name); }main(){struct stu students[3]={ {9801,"Zhang",20},{9802,"Wang",19},{9803,"Zhao",18} };fun(students+2);}输出结果是A) Zhang B)Zhao C) Wang D) 18(45)设有以下说明和定义:typedef union{ long i; int k[5]; char c; }DATE; struct date{ int cat; DATE cow; double dog; } too;DATE max;则下列语句的执行结果是printf ("%d",sizeof (struct date ) +sizeof(max));A) 26 B) 30 C) 18 D) 8(46)有以下程序main(){ char a[]="programming", b[]="language";char *p1,*p2;int i;p1=a; p2=b;for(i=0;i<7;i++)if(*(p1+i)==*(p2+i)) printf("%c",*(p1+i));}输出结果是A) gm B) rg C) or D) ga(47)有以下程序viod fun (int a,int b,int c){ a=456; b=567; c=678;}main(){ int x=10, y=20,z=30;fun (x,y,z);printf("%d,/%d\n",c,d);}输出结果是A)30,20,10 B)10,20,30C)456,567,678 D)678,567,456(48)有以下程序int fun(int x,int y,int *cp,int *dp){ *cp=x+y; *dp=x-y; }main(){ int a, b, c, d;a=30; b=50;fun(a,b,&c,&d);printf("%d,%d\n", c, d);}输出结果是A)50,30 B)30,J50 C)80,-20 D)80,20(49)有以下程序main(){ int i, j;for(j=10;j<11;j++){ for(i=9;i<j; i++)if (!(j%i))break;if(i=j-1)printf("%d",j);}}输出结果是A) 11 B) 10 C) 9 D) 10 11(50)有以下程序#include "atdio.h"int abc(int u,intv);main (){ int a=24,b=16,c;c=abc(a,b);printf('%d\n",c);}int abc(int u,int v){ int w;while(v){ w=u%v; u=v; v=w }return u;}输出结果是A) 6 B) 7 C) 8 D) 9二、填空题(1)自动批自理文件名为_______.(2)DOS命令分为内部命令与外部命令,COMP命令属于_______命令.(3)设当前为C盘,现要用一条DOS命令在打印机上输出A盘当前目录下所有扩展名为.DAT的文件内容.这一条DOS命令应为__ _ (4)要将当前盘当前目录下的子目录XYZ中所有扩展名为.BAK 的文件名改成扩展名为.FOR,应使用的DOS命令为__ _(5)设DOS外部命令文件所在的路径均已用PATH命令打通.现要将当前盘当前目录下的文件WST.TXT设置为只读属性,应使用的DOS命令为___(6)设x和y均为int型变量,且x=1,y=2,则以下表达式的值为___ 1.0+x/y(7)设i,j,k均为int型变量,则执行完下面的for循环后,k的值为___for(i=0,j=10;i<=j;i++,j--) k=i+j;(8)设有以下定义的语句:int a[3][2]={10,20,30,40,50,60}, (*p)[2];p=a;则 *(*(p+2)+1)值为___(9)以下程序的输出结果是___#include <stdio.hint fun(int x,int y){ static int m=0,i=2;i+=m+1;m=i+x+y;return m}main(){ int j=4,m=1,k;k=fun(j,m); printf("%d,",k);k=fun(j,m); printf("%d\n",k);}(10)函数fun的功能是:使一个字符串按逆序存放,请填空void fun (char str[]){ char m; int i,j;for(i=0,j=strlen(str);i<____;i++,j--){ m=str[i];str[i]=__ _;str[j-1]=m;}printf("%s\n",str);}(11)以下程序的功能是:从键盘上输入一行字符,存入一个字符数组中,然后输出该字符串,请填空.#include"ctype.h"#include"stdio.h"main(){ char str[81],*sptr;int i;for(i=0;i<80;i++){ str[i]=getchar();if(str[i]=='\n') break;}str[i]=____;sptr=str;while(*sptr) putchar(*sptr____(13));}(12)以下程序用来对从键盘上输入的两个字符串进行比较,然后输出两个字符串中第一个不相同字符的ASCII码之差.例如:输入的两个字符串分别为abcdef和abceef,则输出为-1.请填空.#includemain(){ char str[100],str2[100],c;int i,s;printf("\n input string 1:\n"); gest(str1);printf("\n input string 2:\n"); gest(str2);i=0;while((strl[i]==str2[i]&&(str1[i]!=____))i++;s=____;printf("%d\n",s);}(13)以下程序的功能是:从键盘上输入一个字符串, 把该字符串中的小写字母转换为大写字母,输出到文件test.txt中,然后从该文件读出字符串并显示出来.请填空.#include<stdio.hmain(){ FILE *fp;char str[100]; int i=0;if((fp=fopen("text.txt",__ __))==NULL){ printf("can't open this file.\n");exit(0);}printf("input astring:\n"); gest(str);while (str[i]){ if(str[i]='a'&&str[i]<='z')str[i]=___ _;fputc(str[i],fp);i++;}fclose(fp);fp=fopen("test.txt",____);fgets(str,100,fp);printf("%s\n",str);fclose(fp);}(14) 以下程序可以把从键盘上输入的十进制数(long型)以二到十六进制形式输出,请填空.#include.<stdio.hmain(){charb[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};int c[64],d,i=0,base;long n;printf("enter a number:\n"); scanf("%ld",&n);printf("enter new base:\n"); scanf("%d",&base);do{ c[i]=____;i++; n=n/base;} while(n!=0);printf("transmite new base:\n");for(--i;i=0;--i){ d=c[i];printf("%c",b____;}}_答案一、选择题(1)B (2)B (3)D (4)D (5)B(6)A (7)B (8)C (9)D (10)A(11)D (12)C (13)A (14)B (15)D(16)C (17)B (18)A (19)A (20)A(21)C (22)D (23)A (24)D (25)B(26)C (27)C (28)B (29)C (30)C(31)D (32)D (33)B (34)C (35)B(36)D (37)B (38)A (39)D (40)D(41)A (42)A (43)C (44)B (45)B(46)D (47)A (48)C (49)B (50)C二、填空题(1)AUTOEXEC.BAT(2)外部(答外部命令不扣分)(3)COPY A:*.DAT PRN(在 COPY 后面与A:*.DAT后面都至少要有一个空格)(4)RENXYZ\*.BAK *.FOR 或RENAME XYZ\*.BAK*.FOR(在REN 或RENAME 后面与XYZ\*.BAK 后面都至少要有一个空格) (5)ATTRIB+R WST.TXT(在ATTRIB 后面与+R后面都至少有一个空格)或ATTRIBWST.TXT+R(在ATTRIB后面与WST.TXT后面都至少要有一个空格)(6)1.0或1(7)10(8)60(9)8,17(10)strlen(str )/2或strlen(str)/2.0或0.5*strlen(str)或j或j-1str[j-1]或*(str+j-1)(11)'\0' 或0++(12) '\0'或0strl[i]-str2[i](13) "w"或"w+"或"wt"或"w+t"或"""wt+"str[i]-32 或str[i]-('a'-'A'或str[i]-'a'+'A'"r"或"r+"或"r+t"或"rt+"(14)n%base[d]。
全国计算机等级考试二级ACCSEE模拟题
参考答案
选择题
01-05 A D B C B
06-10 C A A B C
11-15 C C B A A
16-20 A D B A B
21-25 C D C C A
26-30 D D C D B
31-35 B D B C D
A)程序员
(4)数据流图的类型有 【4】 和事务型。
(5)当数据的物理结构(存储结构、存取方式等)改变时,不影响数据库的逻辑结构,从而不致引起应用程序的变化,这是指数据的 【5】 。
(6)和文件系统相比,数据库系统的数据冗余度 【6】 ,数据共享性 【7】 。
(7)关系中能够唯一标识某个记录的字段称为 【8】 字段。
D)宏是用编程的方法来实现的
(33)要限制宏命令的操作范围,可以在创建宏时定义
A)宏操作对象
B)宏条件表达式
C)窗体或报表控件属性
D)宏操作目标
(34)用于显示消息框的宏命令是
A)SetWarning
B)SetValue
填空题
(1)n/2
(2)层次模型
(3)实例
(4)变换型
(5)物理独立性
(6)小 高
(7)主关键
(8)使用设计器
(9)子查询
(10)主体节
(11)输入掩码
(12)“设计”视图
(13)HTML
(14)64
第二套:模拟题
一、选择题
A)123
B)2.5
C)-12
D)1563
(19)以下查询方式中不属于操作查询的是
A)选择查询
B)删除查询
全国公共英语等级(PETS)考试二级模拟试题含答案(4)
第⼆部分:英语知识运⽤第⼀节:单项选择从A、B、C、D四个选项中,选出可以填⼊空⽩处选项,并在答题卡上将该项涂⿊.1. A new English -Chinese dictionary will soon ________ out .A. workB. comeC. giveD. hand2. As time went on, the theory she had stuck ________ correct .A. provedB. to provingC. to provedD. to prove3. The huge fire is reported to have _______ more than 300 people dead.A. remainedB. keptC. leftD. had4. ----- The art exhibition ______ by me _______ a great success .----- __________ !A. run, promises, CongratulationsB. made, whishes, CongratulationsC. run, expects , CongratulationD. made , seems , Congratulation5. ----- What's wrong with the book?----- One page is ________ .A. disappearedB. losingC. missingD. disappearing6. Before she went abroad she spent as much time as she could _____ English .A. practise to speakB. practising speakingC. practise speakingD. to practise speaking7. ----- Did you say you like the film TINATIC?----- _______. I said it's not bad .A. Not exactlyB. I don't know whyC. You're greatD. That's all right8. I don't think he could have done such a stupid thing last night, _______ ?A. do IB. could heC. has heD. did he9. It was until last year hat he ________.A.left his home town for a new startB. came to realize the importance of learning EnglishC. worked as an English teacher at a middle schoolD. set out to build a new house of his own10. A telephone call ______ him hurrying to his home town .A. madeB. forceC. sentD. let11. ----- Did you have ______ difficulty talking to the foreigner ?----- No. I only could not follow him when he spoke too fast .A. anyB. aC. someD. much12. The old lady has never ________ the house since she moved in.A. been awayB. leftC. livedD. stayed at13. ----- We're sure of winning the match.----- _______. We'll meet our match.A. Don't be so sureB. So are weC. It's out of questionD. I think so14. I have no one ______ me , for I can deal with it all by myself .A. helpB. to helpC. helpedD. to have helped15. I'd ________ them to stay at home the whole day.A. ratherB. betterC. preferD. agree第⼆节:完形填空阅读下⾯短⽂,从短⽂后所给各题四个选项(A、B、C、D中选出能填⼊相应空⽩处选项,并在答题卡上将该项涂⿊.Mrs White gave music lessons at a school. She had a good voice, 16 some of her high notes sounded like a door that 17 oiling. Mrs White knew her 18 well, and took every19 she could find to practise these high notes. As she 20 a small house, she could not practise 21 disturbing the rest of the family. So she usually went for long walks 22 the country road. But 23 she heard a car or a person 24 along the road, she stopped practising. She did not want to be heard, 25 she was very shy.One afternoon, a fast open car came up behind her so 26 and so fast that she did not hear it 27 it was only a few yards from her. She 28 some of her highest and 29 notes at that time. As the car passed, she saw an anxious 30 come over its driver's face. He stopped his car suddenly, 31 out and began to examine all the tyres 32 .Mrs White 33 to tell him what the noise he 34 really was. He got back into the and 35 .16. A. and B. as if C. besides D. except that17. A. required B. wants C. requiring D. was18. A. sound B. strength C. weakness D. music19. A. place B. chance C. point D. time20. A. had B. owned C. lived in D. stayed at21. A. with B. without C. for D. not22. A. through B. by C. near D. along23. A. as B. since C. wherever D. whenever24. A. step B. walk C. coming D. passed25. A. then B. for C. not because D. but26. A. silently B. quickly C. sudden D. slightly27. A. until B. about C. while D. as28. A. cried B. was prctising C. played D. was shouting29. A. excellent B. clearest C. most difficult D. easiest30. A. expression B. feeling C. suffering D. condition31. A. fled B. picked C. rushed D. jumped32. A. slowly B. angrily C. carefully D. quickly33. A. needn't B. didn't dare C. wanted D. pointed out34. A. had done B. reported C. noticed D. had heard35. A. drove off B. ran away C. driving out D. walked away第三部分:阅读理解AThere are stock markets(股票市场)in large cities in many countries. Stock markets in Paris, London, Tokyo, Shanghai and New York are among the largest and most well-known. The stock, also called stock exchange, is a place where people can buy or sell shares of a factory or company. And each share means certain ownership of a factory or company.Different people go to stock markets. Some are rich, who want to get more money than they have. Others are not very rich, who buy stocks to try to become rich. Still others buy stocks as part of their plan to save money.Of course, investing(投资)money in the stock market is not the safest way to make money. No one can tell exactly whether the shares will be doing well. The factory or company may do badly. Then the stocks will go down, and the investors will lose money. The stock may go up or down for a number of untold reasons. Everyone wants the stock to go up, but sometimes even if a factory or company does a good job, the stock may still go down.No wonder going to the stock market is often compared to gambling(赌博).All are eager to make money by " gambling " in the stock market. Factories and companies that need money are pleased that so many people are willing to "gamble". Indeed, the stock market is an attractive and complex part of the business world.36. If you are a good investor, _____in the stock market.A.you can always make moneyB. you can tell exactly when the stock goes up or downC. you may sometimes lose moneyD. your gambling is always safe37. The passage mainly wants to tell us _____.A. how to buy or sell sharesB. A B C of stock marketC. the stock market is like gamblingD. investing money in the stock market is not the safest way38. Factories and companies are pleased that so many people "gamble" because _____.A. they can make them richB. they need more people to work for themC. they need their money to do businessD. some people win and some lose39. The word "complex" in the last sentence probably means _____.A. completeB. WorthyC. difficultD. modernB"As I stood in front of the grave(墓)of President Richard Nixon, I was thinking about the time 25 years ago when this president helped bring the United States and China closer together. Young people of our two countries should help this relationship grow."This remark was made by a Shanghai student when speaking to his fellow students at the Nixon Library in California, U.S.A. He was one of 80 middle school students from China attending a month-long "Youth Summit". The Summit was to mark the 25th anniversary (周年)of President Nixon's journey to China, which was the turning point in China-U.S. relations.The Youth Summit was aimed at increasing understanding and friendship between young students of the two countries through visits and discussions. Seventy-five American students were selected to visit China. They also visited the Nixon Library on July 21 before leaving for Beijing the next day. The head of the Library said he was pleased to see the American and Chinese students talking and laughing together.One Chinese student said, "I didn't find it particularly difficult to talk with Americans. We have our differences, but we have a lot in common. Dialogue is good for us."40. The works "Youth Summit" refer to _____.A. visits to the Nixon LibraryB. the Chinese students' visit to the U.S.C. a meeting discussing relations between China and the U.S.D. activities to strengthen the ties between the Chinese and American students41. The student from Shanghai thought about the time 25 years ago because it was when Nixon _____.A. diedB. visited ChinaC. became U.S. presidentD. started building the library in his name42. The text is mainly about _____.A. the China-U.S. relationsB. the Nixon LibraryC. President NixonD. the youth SummitC。
全国高校计算机等级考试(二级C)模拟试题5套
最新全国高校计算机等级考试(二级C)模拟一试题一、选择题1、设有语句:int k,*p;以下能正确执行的赋值语句是(D)。
A、k=pB、k=&pC、P=KD、p=&k2、以下运算符中优先级最高的运算符是(A)。
A、!B、&&C、||D、<3、求字符串长度的函数是(D)。
A、strcatB、strcpyC、strcmpD、strlen4、下面程序段的运行结果是(A)。
char x[5]=“ab\0c\0”;printf("%s",x);说明:“\0”中的“0”是数字零。
A、abB、abcC、ab\0D、ab\0c\05、若有说明语句:int a[2][4];则对数组a元素的正确引用是(D)。
A、a[2]B、a[4]C、a[2][4]D、a[1][3]6、C语言允许函数值类型缺省定义,此时该函数值隐含的类型是(B)。
A、float型B、int型C、long型D、double型7、用数组名作为函数调用的实参时,传递给虚参的是(A)。
A、数组的首地址B、数组第一个元素的值C、数组中全部元素的值D、数组元素的个数8、以下程序的输出结果是(D)。
#include<stdio.h>#define F(y)8-yvoid main(void){int x,y;y=F(2);printf(“y=%d”,y);}A、2B、y=2C、6D、y=69、以下程序的输出结果是(A)。
#include<stdio.h>struct{int x,y;}a;void main(void){int x,y=50,z;a.x=10;a.y=20;z=a.x+y;printf(“%d”,z);}A、60B、10C、0D、2010、语句fopen(“file.dat”,”r”);的功能是(A)。
A、按照“读”方式打开文件B、按照“写”方式打开文件C、按照“读写”方式打开文件D、按照“追加”方式打开文件11、关闭文件的语句是(D)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
全国青少年机器人技术等级考试测试试卷(二级)
分数:100 题数:50
一、单选题(共30题,每题2分,共60分)
1.下列物品中有曲柄装置的是
A. 自行车
B. 自动晾衣架
C. 电视机
D. 以上都有
2.关于机器人“恐怖谷理论”,下面说法正确的是?
A. 由美国机器人专家提出。
B. 人类不喜欢机器人。
C. 机器人不喜欢人类。
D. 随着机器人的拟人程度增加,人类对它的好感度就会改变。
3.关于电机的说法,下列不正确的是?
A. 电机是发电机和电动机的统称。
B. 电机通常分为直流电机和交流电机两大类。
C. 电机体积一定很小。
D. 交流电机分为异步电机和同步电机两类。
4.下列图片是棘轮的是:
A. B. C.
D.
5.机器人手臂或手部安装点所能达到的所有空间区域称为?
A. 工作空间
B. 最大空间
C. 自由度
D. 危险空间
6.下列描述正确的是?
A. 同一种材质在不同的状态下可以是导体,也可以是绝缘体。
B. 绝缘体在任何情况下都不可以转变为导体。
C. 导体在任何情况下都不可以转变为绝缘体。
D. 导体和绝缘体都是绝对的,不可转变。
7.下面哪个不是机器人系统的基本结构?
A. 机械本体
B. 机械手
C. 计算机控制系统
D. 传感系统
8.中国家用电压是多少伏?
A. 110
B. 150
C. 200
D. 220
9.下列用到凸轮结构的是?
A. 发动机
B. 跷跷板
C. 显示器
D. 拉杆箱
10.下列说法正确的是?
A. 凸轮机构一般有凸轮、从动件和机架三个构件组成。
B. 凸轮机构一般有凸轮、主动从件和机架三个构件组成。
C. 凸轮机构一般有凸轮、从动件和主动件三个构件组成。
D. 凸轮机构一般有圆轮、从动件和主动件三个构件组成。
11.步行机器人的行走机构多为?
A. 连杆机构
B. 齿轮机构
C. 履带
D. 以上说法都不正确
12.在两张纸之间吹气,如图所示,会有怎样的效果?
A. 无任何反应。
B. 两张纸往里合。
C. 两张纸往外张。
D. 一直纸往里合,一张纸往外张。
13.1966年谢克机器人诞生,关于谢克机器人下面说法正确的是?
A. 是第一台潜水机器人。
B. 是第一台飞行机器人。
C. 是第一防水机器人。
D. 是第一台移动机器人。
14.机器人三原则(三定律)由谁提出?
A. 美国科幻家艾萨克阿西莫夫
B. 乔治德沃尔
C. 意大利作家卡洛洛伦齐尼
D. 捷克剧作家卡尔恰佩克
15.最早记录的空中机器人诞生于:
A. 美国
B. 英国
C. 中国
D. 日本
16.下列选项中,使用了凸轮的是
A.
B.
C.
D.
17.成年人人体安全电压是多少伏?
A. 12V
B. 24V
C. 36V
D. 48V
18.哪位科学家发明了电灯?
A. 牛顿
B. 伽利略
C. 爱因斯坦
D. 爱迪生
19.下面哪个是凸轮结构?
A.
B.
C.
D.
20.以下哪位科学家在1831年发现了电磁感应原理,奠定了发电机的理论基础。
A. 爱迪生
B. 牛顿
C. 法拉第
D. 爱因斯坦
21.关于电流形成的说法,正确的是?
A. 电荷的运动形成了电流。
B. 电荷的定向运动形成了电流。
C. 电荷的杂乱无章运动形成了电流。
D. 电荷静止不动形成了电流。
22.一节5号普通干电池电压是多少伏?
A. 0.8
B. 1.0
C. 1.5
23.()决定了从动件预定的运动规律。
A. 凸轮转速
B. 凸轮大小
C. 凸轮轮廓曲线
D. 凸轮形状
24.下列做法正确的是?
A. 刚洗完手可以触摸电器。
B. 不用身体任何部分去触碰通电电线裸露的线头。
C. 可以用湿布擦拭电器。
D. 发现漏电起火后用水泼。
25.机器人控制系统从基本原理和系统结构上可以分成哪两类?
A. 非伺服型系统和伺服型系统。
B. Windows系统和苹果系统。
C. 非仿真型系统和非仿真型系统。
D. 大系统和小系统。
试题编号:20161212151217148
26.我国最早的机器人出现在什么时候?
A. 西周时期
B. 唐朝
C. 宋朝
D. 清朝后期
27.第一台工业机器人诞生于哪个国家?
A. 德国
C. 英国
D. 日本
28.机器人的英文单词是?
A. Boter
B. Rebot
C. Robot
D. Botre
29.2015年,在中国哪个城市举办了世界机器人大会?
A. 上海
B. 广州
C. 深圳
D. 北京
30.一列匀速直线行驶的火车车厢里,一个人向上跳起后仍落回原地,这是因为?
A. 人跳起后,车厢内空气推着他向前运动。
B. 人跳起到落地时间过短,偏后的距离看不出来。
C. 人跳起到落地,在水平方向上人与车有相同的速度。
D. 人跳起瞬间,地板给人一个向前的力,推着他一起向前运动。
二、多选题(共10题,每题2分,共20分)
31.凸轮一般按外形可为三类,主要有哪些?
A. 盘形凸轮
B. 移动凸轮
C. 椭圆凸轮
D. 圆柱凸轮
32.下列图片中使用连杆机构的是
A.
B.
C.
D.
:
33.服务型机器人可以从事的工作是哪些?
A. 清洁
B. 焊接
C. 监护
D. 保安
34.机器人三原则(三定律)的内容?
A. 机器人不得伤害人类,或坐视人类受到伤害。
B. 除非违背第一法则,机器人必须服从人类的命令。
C. 在不违背第一及第二法则下,机器人必须保护自己。
D. 机器人可以偶尔伤害人类。
35.工业机器人具有哪些特点?
A. 对工作环境有很强适应能力,能代替人在有害场所从事危险
工作。
B. 动作准确性高,可保证产品质量的稳定性。
C. 能高强度地在环境中从事单调重复的劳动。
D. 具有很广泛的通用性。
36.以下那些属于电子组件?
A. CPU
B. 轮子
C. 触碰传感器
D. 外壳
37.下列关于滑杆运动方式的说法正确的是?
A. 回转体作回转运动
B. 滑块从动
C. 滑杆绕固定轴转动
D. 滑杆翻转运动
38.家用机器人的用途是?
A. 主要用于服务人类
B. 能够解决生活问题
C. 具有大型化、复杂化
D. 可以与工业机器人通用
39.典型棘轮机构由哪些构件组成?
A. 棘轮。
B. 摆杆。
C. 止回棘爪。
D. 主动棘爪。
40.现代机器人综合哪些学科的成果?
A. 微电子
B. 自动化控制
C. 机械学
D. 计算机
三、判断题(共10题,每题2分,共20分)
41.棘轮机构按结构形式分类可分为齿式棘轮机构和摩擦式棘轮机构。
正确错误
42.机械尺蠖用到了棘轮机构。
正确错误
43.世界第一台可编程机器人叫“尤尼梅特”。
正确错误
44.机器人通过传感器接收外界的信息,进行分析、判断,然后下达执行命令。
正确错误
45.机器人最常采用的基本传感器有视觉传感器、力觉传感器、触觉传感器、位移传感器、速度传感器、加速度传感器等。
正确错误
46.凸轮机构和棘轮机构都不能实现间歇运动。
正确错误
47.凸轮运动规律跟凸轮形状有关。
正确错误
48.凸轮转速的高低,影响从动杆的运动规律。
正确错误
49.凸轮在机构中经常是主动件。
正确错误
50.机械手不能称为机器人。
正确错误。