问题
单项选择题
在设计程序时,应采纳的原则之一是( )。
A.不限制goto语句的使用
B.减少或取消注解行
C.程序越短越好
D.程序结构应有助于读者理解
答案
参考答案:D
解析:滥用goto浯句将使程序流程无规律,可读性差,因此选项A)不选; 注解行有利于对程序的理解,不应减少或取消,选项B)也不选;程序的长短要依照实际情况而论,而不是越短越好,选项C)也不选。
在设计程序时,应采纳的原则之一是( )。
A.不限制goto语句的使用
B.减少或取消注解行
C.程序越短越好
D.程序结构应有助于读者理解
参考答案:D
解析:滥用goto浯句将使程序流程无规律,可读性差,因此选项A)不选; 注解行有利于对程序的理解,不应减少或取消,选项B)也不选;程序的长短要依照实际情况而论,而不是越短越好,选项C)也不选。
完形填空(15分) Doctors tell us that holidays are important.We should have a __36__ from work for a week or two weeks every year.If it is possible,they say, we should __37__ our homes and go to other _38__ of the country.We should go away for __39__.Then,after the holidays,we’ll be _40__ and get ready for __41__ again. But some people do not want to leave their homes to __42__ in other places.They do not like a sudden change in their lives.They think their _43__ are best of all.And some people can have a rest in __44__ way.They can go to visit their friends.They can have __45_holidays together.
|