问题 单项选择题

程序设计方法要求在程序设计过程中

A.先编制出程序,经调试使程序运行结果正确后再画出程序的流程图

B.先编制出程序,经调试使程序运行结果正确后再在程序中的适当位置处加注释

C.先画出流程图,再根据流程图编制出程序,最后经调试使程序运行结果正确后再在程序中的适当位置处加注释

D.以上三种说法都不对

答案

参考答案:D

解析: 程序设计的过程应是先画出流程图,然后根据流程图编制出程序,所以选项A错误。
程序中的注释是为了提高程序的可读性,使程序易于理解、易于维护,注释必须在编制程序的同时加入,所以,选项B和C错误。本题的正确答案为D。

阅读理解

阅读理解

     I was on a train the other day, in an empty compartment, and I wanted to read the last part of a

detective story. Then the door opened and a mother with two small children asked me, "may we sit here, Madam?" at first I wanted to say, "well, actually, I'm reading an exciting book and I'd like to finish it.

Could you find another compartment?"

     But of course I said, "yes, certainly," I still had not finished that book. Unfortunately, I found it very

difficult to say "No" to those magic words "May I …" or "would you mind if…Of course people usually

ask permission to do quite harmless things, like using the telephone, turning the light on, opening the

window and things like that. But then there are some funny requests. Some people even ask if they may

wash their hands or take their coats off. On the other hand, very few smokers will bother to ask

permission to smoke!

     But what about those difficult requests like, "Do you mind if I come round for a cup of coffee?" or "Is

it all right if I bring the children to the party? They are very good really." The trouble is, I just don't have

the nerve to refuse. Well, do you?

1. The writer describes those requests as "magic words" because they ___

A.  are amusing  

B.  are harmless  

C.  always work    

D.  are easily understood

2. According to the writer, asking permission to smoke is ___

A. a foolish request            

B. a difficult request  

C. an unnecessary request      

D. none of the above

3. Difficult requests are those which____

A. are never permitted        

B. are never refused

C. make other people uneasy    

D. make other people unfortunate

4. Which of the following may express the main idea of the passage?

A. I'm a polite person            

B. Requests of different kinds

C. How to make a request        

D. How to answer a request

问答题 简答题