2006年顺德区LOGO语言程序设计比赛初赛试卷
- 格式:doc
- 大小:141.00 KB
- 文档页数:24
一、画图形。
(20分)图一图二1、(10分)写出画图一的命令答案:repeat 8[fd 50 rt 360*3/8 fd 50 lt 360*3/8-360/8]2、(10分)写出画图二的命令答案:repeat 8[repeat 3[fd 50 rt 120]rt 360/8]考查知识:重复命令的掌握。
考察技能:使用重复命令画出重复的规则图形。
评分标准:没有使用重复命令画图形的扣5分,只有使用难搞重复命令画出全部图形的才给10分。
二、(15分)编写一个带三个变量的过程dbx :n :k :bc,使过程能画出一个由n个边长为bc的正k变形旋转而成的图形。
例如,调用一下过程能画出相对应的图形:Dbx 6 6 50 Dbx 5 5 50 Dbx 10 4 50答案:to dbx :n :k :bcrepeat :n[repeat :k[fd :bc rt 360/:k]rt 360/:n]end考查知识:带变量的过程的使用考察技能:能灵活运用带变量的过程画出不同的图形三、(15分)编写一个计算一位小数加减乘除的人机交互过程main,当过程运行时,屏幕上会出现一道一位小数的计算题,在你输入这道题的答案后,屏幕会提示你这道题目你是做对了还是做错了。
参考答案:TO JFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1(PR :A [+] :B [的和是多少?])MAKE "C READIF :C = :A + :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO JIFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1IF :A < :B THEN MAKE "D :A MAKE "A :B MAKE "B :D(PR :A [-] :B [的差是多少?])MAKE "C READIF :C = :A - :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO CFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1(PR :A [×] :B [的积是多少?])MAKE "C READIF :C = :A * :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO CHFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1MAKE "C :A * :B(PR :C [÷] :B [的商是多少?])MAKE "A READIF :C = :A * :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO MAINMAKE "K RANDOM 4IF :K = 1 THEN JFIF :K = 2 THEN JIFIF :K = 3 THEN CFIF :K = 4 THEN CHFMAINEND考查知识:随机数的灵活使用,尾递归的使用考察技能:能灵活运用随机数产生随机小数,能进行数理分析。
一、画图形。
(20分)图一图二1、(10分)写出画图一的命令答案:repeat 8[fd 50 rt 360*3/8 fd 50 lt 360*3/8-360/8]2、(10分)写出画图二的命令答案:repeat 8[repeat 3[fd 50 rt 120]rt 360/8]考查知识:重复命令的掌握。
考察技能:使用重复命令画出重复的规则图形。
评分标准:没有使用重复命令画图形的扣5分,只有使用难搞重复命令画出全部图形的才给10分。
二、(15分)编写一个带三个变量的过程dbx :n :k :bc,使过程能画出一个由n个边长为bc的正k变形旋转而成的图形。
例如,调用一下过程能画出相对应的图形:Dbx 6 6 50Dbx 5 5 50Dbx 10 4 50答案:to dbx :n :k :bcrepeat :n[repeat :k[fd :bc rt 360/:k]rt 360/:n]end考查知识:带变量的过程的使用考察技能:能灵活运用带变量的过程画出不同的图形三、(15分)编写一个计算一位小数加减乘除的人机交互过程main,当过程运行时,屏幕上会出现一道一位小数的计算题,在你输入这道题的答案后,屏幕会提示你这道题目你是做对了还是做错了。
参考答案:TO JFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1(PR :A [+] :B [的和是多少?])MAKE "C READIF :C = :A + :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO JIFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1IF :A < :B THEN MAKE "D :A MAKE "A :B MAKE "B :D(PR :A [-] :B [的差是多少?])MAKE "C READIF :C = :A - :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO CFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1(PR :A [×] :B [的积是多少?])MAKE "C READIF :C = :A * :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO CHFMAKE "A (RANDOM 100) * 0.1MAKE "B (RANDOM 100) * 0.1MAKE "C :A * :B(PR :C [÷] :B [的商是多少?])MAKE "A READIF :C = :A * :B THEN PR [你答对了!] STOPPR [你答错了!] STOPENDTO MAINMAKE "K RANDOM 4IF :K = 1 THEN JFIF :K = 2 THEN JIFIF :K = 3 THEN CFIF :K = 4 THEN CHFMAINEND考查知识:随机数的灵活使用,尾递归的使用考察技能:能灵活运用随机数产生随机小数,能进行数理分析。
06年1月高级语言程序设计考试题目06年1月高级语言程序设计考试题目06年1月高级语言程序设计考试题目一、单项选择题(本大题共20 小题,每小题1 分,共20 分)在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在题后的括号内。
错选、多选或未选均无分。
1. 可以用作c 程序标识符的一组是()a.printb.i\amoodb one-halfabc 3paic.pxqd.cppline# powhis.age while2. 以下叙述正确的是()a. 宏名必须用大写的英文字母表示b. 宏定义不仅是符号替换,也可以赋值c. 宏替换是在程序编译时完成的,不占用程序运行时间d. 引用带参数的宏时,实际参数与宏定义中的形式参数类型应一致3. 设char a= '\70 '; 则变量a 中()a. 包含1 个字符b. 包含2 个字符c. 包含3 个字符d. 是非法表示4. 设long i=65539;, 执行语句printf( "%d ",i) ;后的输出结果是()a.-3b.3c.65539d. 数据不确定5. 设float c,f;, 将数学表达式c= (f-32) 能正确表示成c 语言赋值表达式的是()a.c=5*(f-32)/9b.c=5/9(f-32)c.c=5/9*(f-32)d.c=5/(9*(f-32))6. 设int i=10;, 表达式30-i =i =9 的值是()a.0b.1c.9d.207. 以下不能看作一条c 语句的是()a.{;}b.a=5,b=5,c=5;c.if(x =0 y=0);d.if(x= =0)a=5;b=10;8. 在函数调用时,以下说法正确的是()a. 函数调用后必须带回返回值b. 实际参数和形式参数可以同名c. 函数间的数据传递不可以使用全局变量d. 主调函数和被调函数总是在同一个文件里9. 设int x=7;, 执行语句x=x 2; 后,变量x 的值是()a.1b.3c.14d.2810. 执行语句printf( "|%9.4f|\n ",12345.67); 后的输出结果是()a.|2345.6700|b.|12345.6700|c.|12345.670|d.|12345.67|11. 以下说法中正确的是()a. 字符型变量可以存放字符串b. 递归调用是指函数调用自己c. 所有的外部函数只能在。
10月17日初赛练习卷(一)一、基本命令题1、与HT命令功能相反的命令是。
2、设置屏幕底色的命令是,设置画笔颜色的命令是,设置画笔宽度的命令是。
3、海龟画图的三种模式:SS命令是模式,FS命令是模式,TS命令是模式。
4、能使海龟从任何位置返回母位的命令有、、。
个。
7、INT 91.08的值是,ROUND 109.23的值是,SQRT 16的值是。
8、想要让海龟从[120,60]定位到[139,245]点上,应该输入命令。
9、“REPEAT 重复次数[命令序列]”的功能是按重复执行所规定的的。
10、过程的第一行叫________,它以to开头,后跟过程名(中间用空格间隔);中间部分称为_______,它由解决一个问题的具体命令组成;最后一行是_______,用end表示过程结束。
一、选择题1、计算机预防病毒感染有效的措施是()。
A.定期对计算机重新安装系统 B.不要把U盘和有病毒的U盘放在一起C.不准往计算机中拷贝软件 D.给计算机安装防病毒的软件,并常更新2、在计算机内部,数据是以()形式加工、处理和传送的。
A.二进制码 B.八进制码 C.十进制码 D.十六进制码3、多媒体信息不包括()。
A.影像、动画 B.文字、图形 C.音频、视频 D.硬盘、网卡4、计算机系统由哪几部分组成()。
A.主机和外部设备 B.软件系统和硬件系统C.主机和软件系统 D.操作系统和硬件系统5、下列软件属于系统软件的是( ) 。
A.PowerPoint B.Word2000 C.Excel 2000 D.Windows 2000 6、在计算机中,应用最普遍的字符编码是()。
A.BCD码 B.ASCII码 C.汉字编码 D.补码7、应用软件是指()。
A.计算机能够使用所有软件 B.计算机使用时应该具备的软件C.能被应用单位共同使用的某种软件 D.专为某一应用目的而编制的某种软件8、当前笔的颜色为红色,笔的宽度为10,要使笔的宽度为5,颜色为白色,用命令()。
2007年顺德区LOGO语言程序设计比赛复赛试卷
一、(15分)编写一个带参数的过程,并分别调用该过程画出如下图形。
将调用过程
画图形的命令写在相应的划线处。
图1_______________ 图2________________ 图3___________________
二、(15分)人脑会产生脑电波,有时候信号强,有时候信号弱,通过电子扫描仪可
以检测出脑电波。
有一位病人的脑电波图非常混乱,如下图所示。
请你编写一个过程,
模拟出该病人的脑电波图。
三、(15分)鸡、兔同笼,,共有80个头,244只脚,请你编写带参数的过程计算,鸡
和兔各有多少只?
四(15分)、编写一个过程:从键盘上输入一个2位数的数字,电脑反序输出。
例如,
输入37,电脑输出73。
五、(20分)仔细分析这样一列数:1,2,3,5,8,13,21……
1、(15分)编写过程计算:数列中的第N个数是多少?
2、(5分)调用过程计算:数列中第50个数是______,过程调用方法是____________
六、(20分)编写过程计算下面的算式,并写出过程的执行方法:
1+(1+2)+(1+2+3)+(1+2+3+4)+(1+2+3+4+5)+......+(1+2+ (100)。
2012年顺德区小学LOGO 语言程序设计比赛初赛试卷(说明:上机考试,程序调试通过后写在试卷上,可写在背面。
考试时间90分钟)一、填空:(每空3分,共12分)1、小海龟旋转半周是多少度? 1802、将算式(7483 )×3+(660+5×75)÷3写成LOGO 语言中的表达式。
(3/8-4/7)*3+(660+5*75)/3 3、画一个边长100的9角星:Repeat 9[fd 100 rt 1440/9]4、画一个半径为50的圆:Stampoval 50 50 二、(每个图形12分,共24分)分别写出画下列图形的命令(或过程)。
(1)(2)(1)(stampoval 50 50 "true) setpc 15 (stamprect 100 100 "true)(2)Repeat 7[fd 50 rt 720/7 fd 50lt 360/7]三、(16分)某城市的水费计算方法是:月用水量在30吨以内(含30吨),每吨水收费5元;如果月用水量超过30吨,超过部分每吨收费10元。
请编写一个人机交互过程,从键盘上输入月用水量,电脑就可以显示水费。
如此循环。
to threeprint [月用水量是多少?] make "t readif :t>30 then (print [月用水量为] :t [水费为] 30*5+(:t-30)*10 ) if :t<=30 then (print [月用水量为] :t [水费为] :t*5 ) three end运行:three四、(16分) 红铅笔每支1.9元,蓝铅笔每支1.1元,两种铅笔共买了16支,花了28元。
问红,蓝铅笔各买几支?请编程序计算。
to four :xif :x>15 then stop if :x*1.9+(16-:x)*1.1=28 then (print [红铅笔买] :x [支,蓝铅笔买] 16-:x [支] ) four :x+1 end运行:four 1(注:条件:x>15可以换成:x>20,甚至:x>100) 五、(16分)编写过程画如图所示形状的图形。
1、计算S=1+1/2+1/3+……+1/n。
to sa :npr [计算S=1+1/2+1/3+……+1/n。
]make "a 0make "b :nrepeat :n[make "a 1/:b+:a make "b :b-1](pr [N次一共等于]:a)end运行:sa 102、计算 S=1+2+2*2+2*2*2+……+2*2*2…….*2(10个2)to tw :cpr [计算S=1+2+2*2+2*2*2+……+2*2*2…….*2(10个2)]make "d 0make "e :cif :c=1 then pr [3]stoprepeat :c-1[make "f 2 repeat :e-1[make "f :f*2]make "e :e-1 make "d :d+:f] pr :d+3end运行:tw 103、六角星to m :a :bif :b>3000 then stopfd :a rt :bm :a :b+10end运行: m 10 0m 10 1m 10 2m 10 3m 10 54、编过程,将1,1+2,1+2+3,……1+2+3+……+n各数用直线高度表示。
to m1 :afd :a bk :a rt 90 fd 8 lt 90endto m :emake "c 0make "d 0repeat :e[make "c :c+1 make "d :d+:c m1 :d pr :d wait 10]end运行: m 105、三角星TO FENG :NFD 20MAKE "A 20REPEAT :N [LT 90 FD :A / 2 RT 120 REPEAT 3 [FD :A RT 120] FD :A LT 30 MAKE "A :A * 1.2]ENDTO FENG1 :M :NREPEAT :M [FENG :N pu SETXY [0 0] pd RT 360 / :M]END运行: feng1 5 46、等式13*□9+7*△3=1148中的“□”和“△”都是介于1~9之间的自然数,“□”和“△”各是什么数字?to mymake "x random(9)make "y random(9)if 13*(:x*10+9)+7*(:y*10+3)=1148 then (pr [□=]:x [△=]:y) stopmyend7、随机产生10道三位数减两位数的减法题或三位数除以两位数除法题,并实现:A.三位数和两位数是随机产生的;B.由用户输入计算值,计算机给出对错信息;C.对一道题加10分,错一道题不改变分数。
2006年百度之星程序设计大赛试题初赛题目2006 年百度之星程序设计大赛初赛题目1饭团的烦恼“午餐饭团“是百度内部参与人数最多的民间组织。
同一个部门的,同一间大学的,同一年出生的,用同一种型号电脑的,员工们总是以各种理由,各种借口组织各种长久的,临时的饭团。
参加饭团,不仅可以以优惠的价格尝到更加丰富的菜式,还可以在吃饭的时候和同事们唠唠嗑,吹吹水,增进感情。
但是,随着百度的员工越来越多,各个饭团的管理随即变得烦杂。
特别是为了照顾员工们越来越挑剔的胃口,饭团的点菜负责人背负的责任越来越大。
现在,这个重担落在百度之星的肩上,因为,你们将要为所有的百度饭团设计一个自动点菜的算法。
饭团点菜的需求如下:1 .经济是我们要考虑的一个因素,既要充分利用百度员工的午餐补助,又不能铺张浪费。
因此,我们希望最后的人均费用越接近12 元越好。
2 .菜式丰富是我们要考虑的另一个因素。
为简单起见,我们将各种菜肴的属性归结为荤菜,素菜,辛辣,清淡,并且每个菜只能点一次。
3 .请紧记,百度饭团在各大餐馆享受8 折优惠。
输入数据描述如下:第一行包含三个整数N ,M ,K (0<N<=16 ,0<M<=N ,0<K<=12 ),分别表示菜单上菜的数目,饭团需要点的菜的数目,就餐的人数。
紧接着N 行,每行的格式如下:菜名(长度不超过20 个字符)价格(原价,整数)是否荤菜( 1 表示是,0 表示否)是否辛辣( 1 表示是,0 表示否)例:水煮鱼30 1 1紧接着是 a b c d 四个整数,分别表示需要点的荤菜,素菜,辛辣,清淡菜的数目。
输出数据:对于每一测试数据,输出数据包含M+1 行,前M 行每行包含一个菜名(按菜名在原菜单的顺序排序)。
第M+1 行是人均消费,结果保留两位小数。
说明:1 .结果菜单的数目应该恰好为M ,荤菜,素菜,辛辣,清淡菜的数目恰好为a ,b ,c ,d 。
在满足这样的前提下,选择人均消费最接近12 元的点菜方案。
2011年顺德区LOGO 语言程序设计比赛复赛试卷
(90分钟,答案写在本卷上,位置不够可写到背面,交答题电子文档和本卷)
一、(10分)编写过程画图1所示的图形
二、(10分)编写带参过程画如图2所示形状的图形。
要求:通过改变过程的参数,横向和纵向的
正八边形的个数可以变化。
图2
运行:two 4 3 10
三、有一块边长为:L 的正方形材料。
如图3.1所示。
1、(15分)编写过程THREE :m :n :L ,将它锯开成大小相同的小块(如图3.2所示)。
其中:
m 表示横向黑色块的个数,:n 表示纵向黑色块的个数,:L 表示正方形材料的边长。
图3.1 图3.2
2、(15分)编写过程MJ :m :n :L :K ,计算锯开材料损失的面积(中间白色线所代表的面积)。
其中:K 为分割线的宽度。
四、(15分)编写带参数的过程画如图4所示的“塔尖”。
五、(15分)编写过程FIVE :R ,画一个小球沿着正方形墙内的边线绕行的动画。
如图5所示。
其中:R 是小球的半径,正方形的边长是小球半径的10倍。
六、(20分)有种奇妙的三位数称为“水仙花数”,它的各位数的立方之和等于这个数本身。
例如153就是这样一个三位数: 1×1×1+5×5×5+3×3×3=1+125+27=153 请你找出所有的“水仙花数”。
2005年顺德区LOGO语言程序设计比赛初赛试卷一、选择填空:(每题2分,共26分)1、LOGO语言中的命令都是英文单词的缩写,例如FD、BK、LT、RT分别是英文单词__________、________、________、________的缩写,而ClearScreen、PenUp、PenDown的缩写分别是CS 、_____________、_________________。
2、写出下列命令:设置背景的命令_________、设置笔色的命令_____________、填充颜色的命令______________、改变笔的粗细的命令____ ____________。
3、画一个直径为20的圆:______________________________________________4、画一个横向长为80,纵向宽为40的矩形:_____________________ ________5、画一个边长为100的五角星:________________________________________二、画出下列过程所画的图形(画在题目的右边,要求标出图形的边长。
每题5分,共15分)1. TO AREPEAT 4[FD 20 RT 90 FD 20 LT 90 FD 20 BK 20 RT 90]END执行 A2.TO B1REPEAT 2[FD 20 RT 90 FD 60 RT 90]ENDTO BREPEAT 4[B1 RT 90 FD 60]END执行 B3.TO C1 :XREPEAT 4[FD :X RT 90]ENDTO CC1 60 PU FD 40 RT 90FD 20 PD C1 20END执行 C三、根据图形完成下列过程:(每空2分,共16分)1.TO LXREPEAT _____ [ FD 40 RT 60 FD 40 RT _____ ]ENDTO EX1HT LT _____REPEAT _____ [ LX RT _____ ]END2. TO EX2REPEAT __ [REPEAT __ [ FD 80 RT 90 ] RT __ ]END四、根据要求写出程序:(共9分)自然界的花有的是三瓣,有的是四瓣或者更多。
2006年全国大学生英语竞赛初赛试题(A级)Part I Listening Comprehension (25 minutes, 30 points )Section A Short Conversations (6 points )Directions: In this section, you will hear 6 short conversations. At the end of each conversation, a question will be asked about what was said. Both the conversation and the question will be read only once. After each question, there will be a pause. During the pause, you must read the four choices marked A, B, C and D, and decide which is the best answer. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.1. A. Keys and a purse. B. Glasses and keys.C. Glasses and a bag.D. Glasses, keys and a purse.2. A. A plate. B. A table. C. A lamp. D. A phone.3. A. They are under the chair by the television.B. They are under the chair with the rubbish.C. They are beside the television.D. They are by the door with the rubbish.4. A. Grapes and oranges. B. Grapes and apples.C. Bananas and grapes.D. Bananas and oranges.5. A. Five to three. B. Five past three.C. Twenty five to three.D. Twenty five past three.6. A. The restaurant. B. The market. C. The cinema. D. The sports center.Section B Long Conversation (4 points )Directions: In this section, you will hear one long conversation. At the end of the conversation, 4 questions will be asked about what was said. You will hear both the conversation and the questions only once. After each question, there will be a pause. During the pause, you must read the four choices marked A, B, C and D, and decide which is the best answer. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.7. A. £6. B. £16. C. £60. D. £66.8. A. One. B. Two. C. Three. D. Four.9. A. In a photographer's stuido. B. In the library.C. In the post office.D. In the shopping center.10. A. A letter from her college. B. Her passport.C. Her student card.D. Her driving licence.Section C News Items (10 points)Directions: In this section, you will hear 10 short pieces of news from BBC or VOA.After each news item and question, there will be a pause. During the pause, you must read the three choices marked A, B and C, and decide which is the best answer. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.11. A. 6. B. 16. C. 60.12. A. To bring more foreign language speakers into government service.B. To promote trade with foreign countries.C. To make people learn foreign languages at an early age.13. A. An hour. B. More than an hour. C. Less than an hour.14. A. To get publicity for their cause.B. To get some money for their group.C. To get more rights for their group.15. A. Ticket prices have been falling and their incomes rising.B. Aviation fuel is becoming less expensive.C. British people prefer to travel by plane.16. A. More than eighty thousand.B. More than sixty-two thousand.C. More than fifty-three thousand.17. A. 30. B. 27. C. 57.18. A. Baton Rouge. B. Louisiana. C. Atlanta.19. A. Reduce violations of intellectual property rights.B. Controll the growing population.C. Working together to fight terrorism.20. A. Workers and policemen.B. Farmers and the unemployed.C. Workers and farmers.Section D Passages (10 points)Directions:In this section, you will hear 2 passages. At the end of each passage, you will hear 4 or 6 questions. After you hear a question, you must choose the best answer from the four choices marked A, B, C and D. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.Passage OneQuestions 21 to 24 are based on the passage you have just heard.21. A. He is very thin. B. He is very tall.C. He is very short.D. He is very fat.22. A. He met a cook from a restaurant.B. He met a man who had a farm.C. He met two fat farmers.D. He met a farmer and his wife.23. A. He wanted to have something to eat for lunch.B. He wanted to go to a restaurant for dinner.C. He wanted to make a cup of coffee.D. He wanted to do some farm work.24. A. He wanted some green beans. B. He wanted a big steak.C. He wanted some cake and coffee.D. He wanted lots of potatoes.Passage TwoQuestions 25 to 30 are based on the passage you have just heard.25. A. Last week. B. Three weeks ago.C. Two months ago.D. Three years ago.26. A. By coach. B. By bus.C. By car.D. By train.27. A. 9 am to 9 pm. B. 10 am to 8 pm.C. 10 am to 9 pm.D. 10 am to 10 pm.28. A. Get information. B. Watch a film.C. Find a bank.D. Buy some shoes.29. A. Feed the ducks. B. Take a bus ride round the lake.C. Go swimming.D. Go sailing.30. A. There was nowhere to put the rubbish.B. There were not enough cleaners.C. The food in the café was disappointing.D. The service in the shops was slow.Part II Vocabulary and Structure (5 minutes, 10 points)Directions: There are 10 incomplete sentences in this part. For each blank there are four choices marked A, B, C and D. Choose the one that best completes the sentence. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.31. I can't agree with my Mum. I think that such an old-fashioned dress can't cost a __________. She says 100 pounds is a real __________.A. lot of money; luckB. bargain; luckC. fortune; bargainD. big sum; fortune32. __________ is on the rise, with over 20% of serious crimes being committed by children under the age of seventeen.A. Junior crimeB. Juvenile delinquencyC. Minor crimeD. Senior delinquency33. The Smiths were leaving that __________ town. Everybody wanted to escape its noise and pollution and was looking forward to a __________country life.A. crowded; peacefulB. deserted; peacefulC. desert; thrillingD. empty; sour34. When I first began writing poetry, I think the poets that I had studied at school __________ my approach and the things I wrote about.A. communicatedB. impressedC. influencedD. discussed35. She is an excellent teacher who has taught in four schools.__________ she taught, her principals had a high opinion of her.A. WhereverB. EverywhereC. Inasmuch asD. In such schools that36. My friend Tanya __________ Japanese for six years before she__________ Japan. I've just received a letter from her. It says she has been studying Chinese for three months and __________ for China in a month.A. had been studying; visited; is leavingB. studied; had visited; will live inC. has studied; visited; would leaveD. was studying; has visited; leaves37. At the last place Gary worked, they __________ an annual company picnic. All the employees __________ bring their families along and spend the day at a nearby park. It was great.A. had to have; had toB. used to have; couldn'tC. would have; didn't have toD. used to have; would38. They __________ such a big van __________ the price of gas would skyrocket.A. would have bought; if they knewB. wouldn't have bought; had they knownC. wouldn't have bought; if had they knownD. wouldn't have bought; did they know39. We're going to paint the town __________ to celebrate our win.A. blueB. purpleC. goldD. red40. Written in central Canada in the early part of the twentieth century, __________, depicts life in Manitoda.A. The Midnight Sun was Victor Frank's last novelB. Victor Frank's last novel was The Midnight SunC. The Midnight Sun, which was Victor Frank's last novelD. Which was Victor Frank's last novel, The Midnight SunPart III Situational Dialogues (5 minutes, 5 points)Directions: There are 5 incomplete dialogues in this part. For each blank there are four choices marked A, B, C and D. Choose the one that best completes the dialogue. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.41. Dan: Have you ever participated in a risky sport?Kay: Yes, I like hang gliding. It's fantastic to be able to fly like a bird. Though landing is sometimes difficult, I've always felt hang gliding is quite safe.Dan: ____________________________________Kay: I've never been seriously injured. Maybe I've just been lucky. Once, my glider turned upside down, and I lost control. I almost crashed, but I parachuted away just in time.A. What sports are risky?B. Do you ever get into some difficult situations?C. Have you ever hurt yourself in an accident?D. Have you ever been to a sports centre?42. Lucy: What made you leave such a large company?Ken: My work there was so boring. I couldn't do anything myself. I always had to have my boss' approval. So I decided to get a new job at Coricom, a small venture company.Lucy: ____________________________________Ken: The work here is very challenging, which suits me. We always have to cope with dynamic working conditions. And, since there are not many people in this company, we understand each other very well and feel like we are all in the same family.A. What's the hardest part of your new job?B. How do you like your new job?C. Tell me about what you liked at the large company.D. Tell me about what you liked in your university.43. Julio: ____________________________________Officer: Well, first, you write and get an application form. Then, you send it in with a copy of your school records. And after that, you ask your teachers for some letters of recommendation.Julio: Are foreign students allowed to work in the States?Officer: They'll only let you work in the summer. And you'll need to get permission from the U.S. Officer of Immigration to do that. During the school year you're not allowed to work unless the work experience is part of your school program.A. Is it all right to apply to several universities at the same time?B. I'd like to get some information on how to get into an American university.C. When can I apply for that?D. I'd like to get some information on how to get a travel card.44. Bob: ____________________________________Jane: My first book was Trapped in a Cave, a true story about two boys who got trapped in an underground cave for five days without food, water or light. Next I wrote the current twelve volumes of Real Kids, Real Adventures.Right now I'm working on the next two Real Kids, Real Adventures books.Bob: ____________________________________Jane: If I'm looking for a specific kind of story - for instance a child who survived being struck by lightning - I'll go to the library and use Newsbank, keying in on words like “lightning” and “child”. Mostly, though, I get tips from kids who read the Real Kids, Real Adventures books and send notes or newspaper clippings.A. Can you tell me about the books you've written so far? ; Where do you get your stories?B. What are your favorite books that you've read? ; Where do you get your stories?C. Can you tell me about the books you've written so far? ; What's the hardest part about being a writer?D. Where do you get your stories? ; What's the hardest part about being a writer?45. Lisa: ____________________________________Andy: I think people love to laugh. They want to laugh even in serious business presentations, in the classroom, seminar, and so on. When people laugh, they relax. And they can remember you and your message better.Lisa: ____________________________________Andy: Most people give a summary at the end of their speech. But, in my opinion, a summary at the end only distracts from a good presentation. I want to give people a chance to think about the topic, so I finish my speech with some questions.A. Could you tell me how to introduce speakers? ; How do you end your speech?B. Could you tell me how to introduce speakers? ; Do you think the title of a speech is important?C. How do you end your speech? ; Do you think the title of a speech is important?D. Why do you use so many jokes in your speech? ; How do you end your speech?Part IV IQ Test (5 minutes, 5 points)Directions: There are 5 IQ Test questions in this part. For each question there are 4 choices marked A, B, C and D. Mark your answer on the Answer Sheet with a single line through the centre.46. What is the minimum number of matches you can remove from this diagram to leave just 2 squares?A. 2.B. 4.C. 6.D. 8.47. Which of the bottom watches completes the sequence?48. Which of these cubes cannot be formed from this web49. How many circles contain a dot?A. 12.B. 11.C. 10.D. 13.50. Each symbol in this table has a value. The total of these values in each row and column is written at the end of the corresponding row or column. Can you find the value of each symbol?A. Triangle = 6.5, Square = 4.2, Diamond = 5.8, Circle = 11.4B. Triangle = 7.5, Square = 5.2, Diamond = 6.8, Circle = 12.4C. Triangle = 8.5, Square = 5.2, Diamond = 6.8, Circle = 13.4D. Triangle = 5.5, Square = 3.2, Diamond = 4.8, Circle = 10.4Part V Reading Comprehension (25 minutes, 40 points)Section A Multiple Choice (5 points)Directions: There is one passage in this section with 5 questions. For each question, there are four choices marked A, B, C and D. You should decide on the best choice. Then mark the corresponding letter on the Answer Sheet with a single line through the centre.Questions 51-55 are based on the following passage.I was dirty, smelly, hungry and somewhere beneath all that, suntanned. It was the end of an Inter-Rail holiday. My body couldn't take any more punishment. My mind couldn't deal with any more foreign timetables, currencies or languages.“Never again,” I said, as I stepped onto home ground. I said exactly the same thing the following year. And the next. All I had to do was buy one train ticket and, because I was under twenty-five years old, I could spend a whole month going anywhere I wanted in Europe. Ordinary beds are never the same once you've learnt to sleep in the corridor of a train, the rhythm rocking you into a deep sleep.Carrying all your possessions on your back in a rucksack makes you have a very basic approach to travel, and encourages incredible wastefulness that can lead to burning socks that have become too anti-social, and getting rid of books when finished. On the other hand, this way of looking at life is entirely in the spirit of Inter-Rail, for common sense and reasoning can be thrown out of the window along with the paperback book and the socks. All it takes to achieve this carefree attitude is one of those tickets in your hand.Any system that enables young people to travel through countries at a rate of more than one a day must be pretty special. On that first trip, my friends and I were at first unaware of the possibilities of this type of train ticket, thinking it was just an inexpensive way of getting to and from our chosen camp-site in southern France. But the idea of non-stop travel proved too tempting, for there was always just one more country over the border, always that little bit further to go. And what did the extra miles cost us? Nothing.We were not completely uninterested in culture. But this was a first holiday without parents, as it was for most other Inter-Railers, and in organizing our own timetable we left out everything except the most immediately available sights. This was the chance to escape the guided tour, an opportunity to do something different. I took great pride in the fact that, in many places, all I could be bothered to see was the view from the station. We were just there to get by, and to have a good time doing so. In this we were no different from most of the other Inter-Railers with whom we shared corridor floors, food and water, money and music.The excitement of travel comes from the sudden reality of somewhere that was previously just a name. It is as if the city in which you arrive never actually existed until the train pulls in at the station and you are able to see it with your own tired eyes for the first time.Questions:51. At the end of his first trip, the writer said “Never again” because_______.A. he felt illB. he disliked trainsC. he was tired from the journeyD. he had lost money52. What does the writer mean by “this way of looking at life” in Paragraph 3?A. Worrying about your clothes.B. Throwing unwanted things away.C. Behaving in an anti-social way.D. Looking after your possessions.53. Why did the writer originally buy an Inter-Rail ticket?A. To get to one place cheaply.B. To meet other young people.C. To see a lot of famous places.D. To go on a tour of Europe.54. What the writer liked about traveling without his parents was that _______ .A. he could see more interesting placesB. he could spend more time sightseeingC. he could stay away from home longerD. he could make his own decisions55. What does “it” in Line 3, Paragraph 6, refer to?A. A name.B. The city.C. The train.D. The station.Section B Yes / No / Not given (5 points)Directions: In this part, you will have 5 minutes to go over the passage quickly and answer the questions on the Answer Sheet. For questions 56 - 60, markY (for Yes) if the statement agrees with the information given in the passage;N (for No) if the statement contradicts the information given in the passage;NG (for Not Given) if the information is not given in the passage.Questions 56-60 are based on the following passage.The Outdoor CentreOpening timesWater sports: 10 am - 6 pmPlay Park: 10 am - 5.30 pmEntrance / Car park feesLow season: Weekdays £2.00 per car Weekends £3.00 per carHigh season: 23 July - 11 September Weekdays and weekends £3.00 per carFees are for cars with four people. Each extra person is 50p. Fees to be paid at the main office.The center is not a private club; it is an organization whose aim is to provide outdoor sports and recreation facilities for the public.Group visitors are requested to inform the center in advance of their intended visit.Windsurfing - One-day courseBeginner windsurfing course is offered on Saturdays and Sundays when the weather is good enough. Learning to windsurf is a lot of fun. Theexcitement when you sail across the water for the first time is not easily forgotten. Boards with small sails are available for beginners.Course fee: £32.50 (this includes all equipment)One-day adventure courseThis is an opportunity you have been waiting for. Come and try sailing, climbing, surfing and archery. This course is intended to introduce outdoor activities to adults in a fun, leisurely manner. You do not need to be extremely fit or to have had previous experience of the activities. All you need is to be interested.Course fee: £22.50Play ParkThe Play Park is suitable for children from two to ten years of age. It is one of the best of its type in the country. It has sand and water play, slides, large ball pool, play castle and much, much more. Next year the center will open a new Play Palace and Play Ship.Summer adventure holidays (for 14 - 18 years of age)Sailing Climbing Windsurfing Fun GamesStatement:Safety is of primary importance at the Outdoor Center. All staff members are fully trained in First Aid, and qualified to teach the activities on offer. We also make certain that all children only take part in activities that are suitable for their age and physical abilities. For this programme children must be able to swim 25 metres and be in good physical health.Statements:56. In August, four people visiting the centre together by car have to pay more than two people.57. The centre has special equipment for people who learn to sail.58. The adventure course is suitable for beginners.59. The centre is planning to add extra facilities to the Play Park.60. Summer adventure holidays are open to any child between eight and fourteen years who can swim.Section C Short Answer Questions (20 points)Directions: In this section, there are 2 passages followed by 10 questions or unfinished statements. Read the passages carefully, then answer the questions in a maximum of 10 words. Remember to write the answers on the Answer Sheet.Passage OneQuestions 61-65 are based on the following passage.Going to the beach is many Americans' favorite activity. In the area near New York City, nine million people used to go to the beach every summer. They went swimming in the ocean without giving a thought to what was underwater.But those days are long gone.In the summer of 1988,the government was forced to shut down beaches all over America.Many of the beaches had to be closed because garbage from hospitals was found in the water.The garbage included glass bottles with samples of blood,and people were afraid they might get AIDS from the blood.Where the medical garbage came from is anybody's guess.At some beaches,sewage (生活污水)was found in the water.Americans were shocked by this state of affairs.They had long taken for granted that oceans were big enough to stay clean,even if garbage and sewage were dumped into them.People didn't think of the underwater garbage because it was out of sight.Some of the most polluted waters still look beautiful at first glance.San Francisco Bay is a good example of a beautiful bay that's full of chemicals.Scientists discovered pollution in some lakes and rivers when they found fish with rotting skin.In many parts of America,people are told not to eat too much fish because of pollution.Most American cities put their garbage in the ground.But New York and a few other cities put their garbage in the ocean.Boston Harbor is so polluted that scientists say it won't recover until the next century at best.The city of Boston puts its sewage in the water.The government has ordered the city to build a sewage treatment plant.Cleaning up oceans won't be easy,but people can no longer ignore this challenge.Questions:61. Most Americans used to go to the beach because of __________.62. Ocean waters around America have become polluted by __________.63. Some polluted waters are still beautiful because pollutants such as chemicals are hard to __________.64. If fish live in polluted waters people should not __________.65. The author of this passage seems to suggest that people should pay more attention to__________.Passage TwoQuestions 66-70 are based on the following passage.There are cockroaches (蟑螂) everywhere on Earth except the places that are covered with ice. Scientists have discovered about 3,500 different species of cockroach. There is just one human species! Cockroaches can be anything in size from about five mm to nine cm. Although five mm is very small, nine cm is as long as a large rat.It is very difficult to catch most cockroaches. They “see” with the hairs on their bodies. These hairs can feel the smallest movement in the air, so the cockroaches know immediately something moves, and run to safety.Of all the species of cockroach, fortunately only three live among humans and are a serious problem. They are the German, the Oriental, and theAmerican. One egg case of the German cockroach can produce as many as seven million cockroaches in 12 months!Our main problem with cockroaches is that not only do they look ugly to us, but they also carry diseases. They are particularly dangerous in hospitals as they eat all kinds of hospital waste or get it on their bodies. They can then carry this waste, which may contain dangerous bacteria, on to food which is then eaten by people in the hospital.Most of the bacteria that cause food poisoning have been found in the stomachs of cockroaches, so it is important that cockroaches should be kept out of restaurants and other places where food is prepared.Many people work and try to destroy cockroaches, but as soon as they find one way of doing it, the cockroaches “learn” how to deal with it. Elec tricity does not always kill them and they can avoid most poisons or “learn” how to deal with others. At one time, scientists thought that radiation would kill them, but they have been on Earth for about 300 million years, and it does not harm them as much as it does us.It seems probable that when there are no longer human beings living on the Earth, cockroaches will still be here.Questions:66. Cockroaches do not live in places where it is __________.67. Cockroaches know that someone or something is near because__________.68. Cockroaches can __________ because they carry bacteria.69. Paragraph 6 says that it is very difficult to __________.70. The passage is mainly about __________.Section D Summary (10 points)Directions: In this part, there is one passage followed by a summary. Read the passage carefully and complete the summary with the appropriate words from the passage. Remember to write the answers on the Answer Sheet.Questions 71-75 are based on the following passage.Cosmetics have been used throughout history. The ancient Greeks, the Egyptians, and the Romans all used various kinds of makeup. Some of these cosmetics were used to improve their appearance. Others were used to protect their skin. But in some cases, things used for makeup were dangerous, or even deadly!Some of the first skin care treatments started in Egypt. In fact, Cleopatra was known to use them. She thought a bath in milk and honey left her skin silky smooth. Egyptians also developed some of the earliest sunscreens. They used oils and creams for protection against the sun and dry winds. Egyptian and other ancient cultures also used various powders on their skin for beauty. Egyptians used black kohl around their eyes. Romans put white chalk on theirfaces. And Indians painted red henna on their bodies.Most of the ancient cosmetic powders, oils, and creams were harmless. But in the name of beauty, some people applied dangerous chemicals and poisons to their skin. During the Italian Renaissance, women wore white powder made of lead on their faces. Of course, doctors now know lead is like a poison for our bodies.Also around the time of the Renaissance, women in Italy put drops of belladonna in their eyes. Belladonna is a very poisonous plant. The poison in the plant affects the nerves in the body. By putting belladonna drops in her eyes, a woman's pupils would become very large. People thought this made her more beautiful. Actually, this is why the plant is called belladonna. In Italian, belladonna me ans “beautiful woman.”When Elizabeth I was queen of England in the late 1500s, some rather dangerous cosmetics were also used by women there. Women were using rouge made with mercury. They were also using special hair dye made with lead and sulphur. The dye was designed to give people red hair, the same color as the queen's hair. Over time, the dye made people's hair fall out. Finally, women using this dye ended up bald, like the queen, and had to wear wigs.Summary:Although people have used cosmetics throughout history, not all of them have been safe. In fact, some of them have been quite (71)__________ to people. For example, long ago in Italian (72)__________, people thought women with big pupils were beautiful. Therefore, in the (73)__________ of beauty, women began to put (74)__________ of belladonna in their eyes to make their pupils larger. Today we know belladonna is poisonous, and it can affect the (75)__________ in the body.Part VI Cloze (10 minutes, 15 points)Directions: There are 15 blanks in the passage. For each blank, some letters of the word have been given (not exceeding 3 letters). Read the passage below and think of the word which best fits each blank. Use only one word in each blank. Remember to write the answers on the Answer Sheet.I'm really in two minds about what to do when I leave school. Should I go straight to university or should I spend a year travelling (76) a the world?First of all, there are so many (77) ben of going straight to university.The most important point is that the (78) s I get my qualifications, the quicker I'll get a job and start earning.In my opinion, starting work and making (79)m is one of the most important things in life.And I'm not (80) al in this opinion. Many consider a sound(81)ca and a good salary to be an important goal.Secondly, if I go straight to university, I'll learn so many things that will。
2006年顺德区LOGO语言程序设计比赛初赛试卷(考试时间:90分钟)一、选择填空:(每题5分,共15分)1、画一个长为60,宽为30的空心矩形的命令是:STAMPRECT 60 30 。
2、使用重复命令画一个边长为60的正六边形的命令是repeat 6[fd 60 rt 360/60]3、画一个直径为36的圆:stampoval 36 36二、写出画如下图形的命令(每个图9分):图2.1 图2.2 图2.3画图2.1的命令:repeat 6[repeat 3[fd 50 rt 120] rt 360/6]画图2.2的命令:repeat 6[fd 60 lt 60 repeat 6[fd 60 rt 60] rt 120]画图2.3的命令:repeat 12[repeat 3[fd 30 lt 120] fd 30 rt 360/12]三、(13分)编写一个过程画出如下图形:TO B1REPEAT 2[FD 20 RT 90 FD 60 RT 90]ENDTO BREPEAT 4[B1 RT 90 FD 60]END执行 B四、(15分)编写一个过程DBX :N,执行该过程时能连续画出正N边形、正N-1边形……正三角形。
例如执行DBX 10画出如下图形:TO DBX :NIF :N<3 STOPREPEAT :N[FD 50 RT 360/:N]DBX :N-1END五、(15分)以下四个图形各不相同,请编写一个带参数的过程,通过改变该过程参数的值,该过程能分别画出如下图形:(1) (2) (3) (4)参考过程:TO tuxing :A :B :CDRAW REPEAT :A[FD 50 BK :B RT :C/:A] HTEnd其中:C的取值为360或720图(1)tuxing 12 50 360图(2)tuxing 5 50 360图(3)tuxing 4 :25 360图(4)tuxing 5 0 720六、(15分)编写一个画松树的过程songshu :N :L,其中:N表示组成松树的三角形个数,:L 表示最大的三角形的边长。
NOIP2006初赛试题(提高组Pascal语言)[日期:2006-10-25] 来源:作者:[字体:大中小]第十二届全国青少年信息学奥林匹克联赛初赛试题(提高组Pascal 语言二小时完成)●●全部试题答案均要求写在答卷纸上,写在试卷纸上一律无效●●一、单项选择题(共10 题,每题1.5 分,共计15 分。
每题有且仅有一个正确答案.)。
1. 在以下各项中。
()不是CPU 的组成部分。
A. 控制器B. 运算器C. 寄存器D. ALUE. RAM2. BIOS(基本输入输出系统)是一组固化在计算机内()上一个ROM 芯片上的程序。
A. 控制器B. CPUC. 主板D. 内存条E. 硬盘3.在下面各世界顶级的奖项中,为计算机科学与技术领域作出杰出贡献的科学家设立的奖项是()。
A. 沃尔夫奖B. 诺贝尔奖C. 菲尔兹奖D. 图灵奖E. 南丁格尔奖4.在编程时(使用任一种高级语言,不一定是Pascal),如果需要从磁盘文件中输入一个很大的二维数组(例如1000*1000 的double 型数组),按行读(即外层循环是关于行的)与按列读(即外层循环是关于列的)相比,在输入效率上()。
A. 没有区别B. 有一些区别,但机器处理速度很快,可忽略不计C. 按行读的方式要高一些D. 按列读的方式要高一些E.取决于数组的存储方式。
5.在Pascal 语言中,表达式(21 xor 2)的值是()A. 441B. 42C.23D.24E.256.在Pascal 语言中,判断a不等于0且b不等于0的正确的条件表达式是()A. not a=0 or not b=0B. not((a=0)and(b=0))C. not(a=0 and b=0)D. (a<>0)or(b<>0)E. (a<>0)and (b<>0)7.某个车站呈狭长形,宽度只能容下一台车,并且只有一个出入口。
已知某时刻该车站状态为空,从这一时刻开始的出入记录为:“进,出,进,进,进,出,出,进,进,进,出,出”。
2009年顺德区小学LOGO语言程序设计比赛
获奖通知
各镇(街道)教育组:
2009年佛山市顺德区小学LOGO语言程序设计比赛已圆满结束。
本次大赛分初赛和决赛。
初赛由镇组织,各镇共推荐了319名学生参加了区组织的决赛。
现按照决赛成绩,评出获奖学生:一等奖30名、二等奖70名、三等奖90名,优秀奖126名。
评出学校团体奖:一等奖5个、二等奖5个。
陈梦斯等10位辅导老师被评为“优秀辅导员”。
现将获奖情况通报如下:
学校团体奖:
一等奖(5个):顺德一中附小、大良嘉信西山小学、大良实验小学、杏坛齐杏小学、容桂振华小学
二等奖(5个):容桂小学、瑞英小学、小黄圃小学、南环小学、勒流育贤实验学校小学部
“优秀辅导员”教师(11人):
大良嘉信西山小学杜钢、朱季平大良一中附小黄光辉
大良实验小学李军彦
杏坛齐杏小学陈梦斯
勒流育贤实验学校小学部邱桂昌容桂振华小学杨旗敦容桂小学吴静燕容桂瑞英小学黄冠群容桂小黄圃小学曾爱辉容桂南环小学樊明辉
区一等奖学生(30人):
佛山市顺德区教研室 2009年6月20日。
2008年顺德区小学LOGO语言程序设计比赛
获奖通知
各镇(街道)教育组:
2008年佛山市顺德区小学LOGO语言程序设计比赛已圆满结束。
本次大赛分初赛和决赛。
初赛由镇组织,各镇共推荐了316名学生(来自105间小学)参加了区组织的决赛。
现按照决赛成绩,评出获奖学生:一等奖34
名、二等奖71名、三等奖100名,优秀奖101名。
评出学校团体奖:一等奖5个、二等奖6个。
谢圣彤等12位辅导老师被评为“优秀辅导员”。
现将决赛的获奖情况通报如下:
学校团体奖:
一等奖(5个):大良西山小学,顺德一中附小,瑞英小学,大良实验小学,嘉信西山小学
二等奖(6个):乐从红棉小学,容桂小学,大良桂畔小学,勒流育贤实验学校,容桂振华小学,伦教培教小学
“优秀辅导员”教师(12人):
大良顺德一中附小黄光辉、周海娟大良实验小学李军彦
大良西山小学谢圣彤、全一鸣容桂瑞英小学黄冠群
大良嘉信西山小学杜钢、陈业荣大良桂畔小学李军
勒流育贤实验学校邱桂昌乐从红棉小学梁浩然
容桂振华小学杨旗敦
区一等奖学生(34人):
区二等奖学生(71人):
区三等奖学生(100人):
区优胜奖学生(101人):
佛山市顺德区教研室 2008年6月19日
全镇基本情况分析:
一等奖共1人:育贤1人
二等奖共6人:冲鹤1人、育贤3人、中心小学:2人。
三等奖:13人:冲鹤1人中心:5人、育贤:2人、众涌:1人太晚1人、季小:1人新城:1人稔海:1人。
第二十三届全国信息学奥林匹克竞赛NOI 2006第一试竞赛时间:2006年7月24日上午8:00-13:00题目名称网络收费生日快乐千年虫目录 networkwormhappybirthday可执行文件名 network happybirthday worm输入文件名 network.in N/A worm.in输出文件名 network.out N/A worm.out每个测试点时限3秒4秒2秒测试点数目10 10 10 每个测试点分值10 10 10 是否有部分分无无无题目类型传统交互传统提交源程序须加后缀对于Pascal语言 network.pas happybirthday.pas worm.pas对于C 语言 network.c happybirthday.c worm.c对于C++ 语言 network.cpp happybirthday.cpp worm.cpp 注意:最终测试时,所有编译命令均不打开任何优化开关除了交互试题以外,其余两题只需要向输出文件输出一行,行内不得有多余空白字符,行末须有一个换行/回车符,格式不对不能得分。
第23届全国信息学奥林匹克竞赛第一试 network网络收费【问题描述】网络已经成为当今世界不可或缺的一部分。
每天都有数以亿计的人使用网络进行学习、科研、娱乐等活动。
然而,不可忽视的一点就是网络本身有着庞大的运行费用。
所以,向使用网络的人进行适当的收费是必须的,也是合理的。
MY市NS中学就有着这样一个教育网络。
网络中的用户一共有2N个,编号依次为1, 2, 3, …, 2N。
这些用户之间是用路由点和网线组成的。
用户、路由点与网线共同构成一个满二叉树结构。
树中的每一个叶子结点都是一个用户,每一个非叶子结点(灰色)都是一个路由点,而每一条边都是一条网线(见下图,用户结点中的数字为其编号)。
为了描述方便,首先定义这棵网络树上的一些概念:祖先:根结点没有祖先,非根结点的祖先包括它的父亲以及它的父亲的祖先;管辖叶结点:叶结点本身不管辖任何叶结点,非叶结点管辖它的左儿子所管辖的叶结点与它的右儿子所管辖的叶结点;距离:在树上连接两个点之间的用边最少的路径所含的边数。
2010年顺德区LOGO 语言程序设计比赛复赛试卷一、(12分)画图1.1所示的图形图1.1二、(16分)编写过程画一个笑脸图,如图2.1所示。
TO SMILE :ADRAWSTAMPOV AL :A :APU BK :A/2RT 90REPEAT 9 [FD :A/14 LT 5 ]PDREPEAT 18[RT 5 BK :A/14]PUREPEAT 9 [FD :A/14 LT 5 ]LT 90 FD :A*0.9LT 90 FD :A*0.4 PD(STAMPOV AL :A/10 :A/10 "TRUE)PU BK :A*0.8 PD(STAMPOV AL :A/10 :A/10 "TRUE)PU HOMEEND 运行:SMILE 100评分:每个圆4分,圆弧也是4分,如果眼睛不对称扣3分,嘴巴画歪了扣3分,三、(16分)求1—1000这1000个数中不能被7整除的数之和。
要求:编写过程计算结果,并将调用过程计算的命令写出来。
TO QIUHE :N :T :IIF :N>1000 PR :T STOPIF :I<7 THEN MAKE "T :T+:NIF :I=7 THEN MAKE "I 0QIUHE :N+1 :T :I+1END运行 QIUHE 1 0 1 结果429429评分:结果正确满分,不正确0分四、(16)如下图,用一些完全相同的小棒,摆成由许多小等边三角形组成的大等边三角形,如果这个大等边三角形的底边一共用了:N 根小棒,那么完成这个图形的拼摆,一共要用多少根小棒?编写过程计算并画出图形。
TO SJX :N :B :TIF :N=0 THEN PR :T STOPREPEAT :N[REPEAT 2[FD :B RT 120] RT 120]RT 60 BK :N*:BLT 60 FD :BSJX :N-1 :B :T+3*:NEND运行 SJX 6 10 0评分:画图8分,计算结果8分五、(20分)编写过程,画如图4.1所示的黑白相间的正六边形。
2006年顺德区LOGO语言程序设计比赛初赛试卷(说明:上机考试,程序调试通过后写在本试卷上。
考试时间90分钟)一、选择填空:(每题5分,共15分)1、画一个的横向半径200,的纵向半径为100椭圆(Stamprect 60 30 “true)Stampoval 100 100stampoval 200 1002、使用重复命令画一个边长为60的正六边形的命令:repeat 6[fd 60 rt 360/6]3、画一个直径为36的圆的命令:stampoval 36 36二、写出画如下图形的命令(每个图9分):画图 2.1的命令:_________________________________________________画图 2.2的命令:_________________________________________________画图 2.3的命令:_________________________________________________三、(13分)编写一个过程画出如下图形:四、(15分)编写一个过程DBX :N,要求:执行该过程时能连续画出正三角形……正N边形。
例如执行DBX 10画出如下图形::n+1五、(15分)以下四个图形各不相同,请编写一个带参数的过程,通过改变该过程参数的值,该过程能分别画出如下图形:六、(15分)编写一个画松树的过程songshu :N :L,其中:N表示组成松树的三角形个数,:L表示最大的三角形的边长。
组成松树的三角形的边长由大到小递减,每次减少二分之一。
2005年顺德区LOGO语言程序设计比赛复赛试卷(说明:考试时间为90分钟。
若不够地方答题,可以写在试卷背面)题号一二三四五总分得分一、选择填空:(每题3分,共15分)1、REPEAT 4[REPEAT 4[FD 40 RT 90]RT 90] 画的图是: ( B )A一个正方形 B.一个田字形 C.四个正方形 D.八个正方形2、下列四组命令分别画出如图A至D四个图形,请找出图形与命令组之间的对应关系。
(1)HT REPEAT 8[RT 90 REPEAT 18[RT 5 FD 5 RT 5] ] ( B )(2)HT REPEAT 8[LT 90 REPEAT 18[RT 5 FD 5 RT 5] ] ( C )(3)HT REPEAT 8[REPEAT 18[RT 5 FD 5 RT 5]RT 120] ( A )(4)HT REPEAT 8[REPEAT 18[RT 5 FD 5 RT 5]LT 120] ( D )二、根据过程画出对应图形1、对于以下过程,执行 A 10,将所得的图形画在右边。
(10分) TO A :XIF :X > 30 THEN LT 90 STOPREPEAT 4 [FD :X RT 90] FD :XA :X + 10END2、对于以下过程,执行JT 2 20,将所得的图形画在右边。
(15分)TO JT :N :SIF :N = 0 THEN HQ :S RT 90 STOPFD :S RT 90 FD :S LT 90JT :N - 1 :SFD :S RT 90 FD :S LT 90ENDTO HQ :SFD :S+:SREPEAT 4 [FD :S RT 90]BK :S+:SEND三、设计一个递归过程,画出如下图形。
图中长方形的长边是短边的2倍,圆的直径与长方形的短边相同。
每递归一次长方形的边长和圆的直径减半(15分)TO BB :AIF :A < 2 STOPPD STAMPRECT 2 * :A :APU RT 90 FD :A LT 90 FD :A + :A / 2PD STAMPOVAL :A / 2 :A / 2PU BK :A + :A / 2 RT 90 FD :A LT 90BB :A / 2END四、设计过程计算(只需要编写过程.不必写出计算结果)1、计算1+2+3+4+5+……+98+99+100。
写出执行方法。
(15分)TO CC :N :RESULTIF :N < 1 PR :RESULT STOPCC :N - 1 :RESULT + :NEND 执行 CC 100 02、等式“15*45□1□=□□9*2005”中的“□”是一个相同的数字(0-9) ,编写一个过程,计算“□”中的数字是多少。
(15分)TO DD :NIF :N<0 STOPIF 15*(45000+:N*100+10+:N)=(:N*100+:N*10+9)*2005 PR :NDD :N-1END 执行 DD 9五、(15分)有A、B、C三根柱子,在A柱位置放有一叠圆盘,这些圆盘大小不同,较小的总是放在较大的上面,如图所示。
现要求用最少的移动次数将A柱上的盘子全部移到B柱上来。
移动盘子的规则如下:1、一次只能移动一个盘子;无论在哪一柱子上,也无论盘子的个数是多少,较小的盘子总是在较大的盘子上面;2、每次只能移动最上面的盘子,不能抽出下面的盘子;移动的盘子可以放到任何一根柱子上。
试编写一个LOGO过程,将移动盘子的过程打印出来。
TO YD :N :A :B :CIF :N = 0 STOPYD :N - 1 :A :C :B(PR :N :A "- :B)YD :N - 1 :C :B :AEND如果有3只盘子,可以执行 YD 3 “A“B“C2005年顺德区LOGO语言程序设计比赛复赛试卷(说明:考试时间为90分钟。
若不够地方答题,可以写在试卷背面)题号一二三四五总分得分一、选择填空:(每题3分,共15分)1、REPEAT 4[REPEAT 4[FD 40 RT 90]RT 90] 画的图是: ()A一个正方形 B.一个田字形 C.四个正方形 D.八个正方形2、下列四组命令分别画出如图A至D四个图形,请找出图形与命令组之间的对应关系。
(1)HT REPEAT 8[RT 90 REPEAT 18[RT 5 FD 5 RT 5] ] ()(2)HT REPEAT 8[LT 90 REPEAT 18[RT 5 FD 5 RT 5] ] ()(3)HT REPEAT 8[REPEAT 18[RT 5 FD 5 RT 5]RT 120] ()(4)HT REPEAT 8[REPEAT 18[RT 5 FD 5 RT 5]LT 120] ()二、根据过程画出对应图形1、对于以下过程,执行 A 10,将所得的图形画在右边。
(10分) TO A :XIF :X > 30 THEN LT 90 STOPREPEAT 4 [FD :X RT 90] FD :XA :X + 10END2、对于以下过程,执行JT 2 20,将所得的图形画在右边。
(15分)TO JT :N :SIF :N = 0 THEN HQ :S RT 90 STOPFD :S RT 90 FD :S LT 90JT :N - 1 :SFD :S RT 90 FD :S LT 90ENDTO HQ :SFD :S+:SREPEAT 4 [FD :S RT 90]BK :S+:SEND三、设计一个递归过程,画出如下图形。
图中长方形的长边是短边的2倍,圆的直径与长方形的短边相同。
每递归一次长方形的边长和圆的直径减半(15分)四、设计过程计算(只需要编写过程.不必写出计算结果)1、计算1+2+3+4+5+……+98+99+100。
写出执行方法。
(15分)2、等式“15*45□1□=□□9*2005”中的“□”是一个相同的数字(0-9) ,编写一个过程,计算“□”中的数字是多少。
(15分)五、(15分)有A、B、C三根柱子,在A柱位置放有一叠圆盘,这些圆盘大小不同,较小的总是放在较大的上面,如图所示。
现要求用最少的移动次数将A柱上的盘子全部移到B柱上来。
移动盘子的规则如下:1、一次只能移动一个盘子;无论在哪一柱子上,也无论盘子的个数是多少,较小的盘子总是在较大的盘子上面;2、每次只能移动最上面的盘子,不能抽出下面的盘子;移动的盘子可以放到任何一根柱子上。
试编写一个LOGO过程,将移动盘子的过程打印出来。
2005年顺德区LOGO语言程序设计比赛初赛试卷(考试时间:90分钟)一、选择填空:(每题2分,共26分)1、 LOGO语言中的命令都是英文单词的缩写,例如FD、BK、LT、RT 分别是英文单词__________、________、________、________的缩写,而ClearScreen、PenUp、PenDown的缩写分别是 CS 、_____________、_________________。
2、写出下列命令:设置背景的命令_________、设置笔色的命令_____________、填充颜色的命令______________、改变笔的粗细的命令____ ____________。
3、画一个直径为20的圆:______________________________________________4、画一个横向长为80,纵向宽为40的矩形:_____________________ ________5、画一个边长为100的五角星: ________________________________________二、画出下列过程所画的图形(画在题目的右边,要求标出图形的边长。
每题5分,共15分)1. TO AREPEAT 4[FD 20 RT 90 FD 20 LT 90 FD 20 BK 20 RT 90] END执行 A2. TO B1REPEAT 2[FD 20 RT 90 FD 60 RT 90]ENDTO BREPEAT 4[B1 RT 90 FD 60]END执行 B3. TO C1 :XREPEAT 4[FD :X RT 90]ENDTO CC1 60 PU FD 40 RT 90FD 20 PD C1 20END执行 C三、根据图形完成下列过程:(每空2分,共16分)1.TO LXREPEAT _____ [ FD 40 RT 60 FD 40 RT _____ ]ENDTO EX1HT LT _____REPEAT _____ [ LX RT _____ ]END2. TO EX2REPEAT __ [REPEAT __ [ FD 80 RT 90 ] RT __ ] END四、根据要求写出程序:(共9分)自然界的花有的是三瓣,有的是四瓣或者更多。
设计一个过程Hua :N,当输入Hua 3 就画出3个花瓣的花(图一),输入Hua 5就画出5个花瓣的花(图二)五、应用题。
(每空2分,共14分)工人师傅用150块砖砌一堵墙,每块砖长为10,高为5,每层使用15块砖。