问题 填空题

有一个事件过程,其功能是:从已存在于磁盘上的顺序文件NM1.txt中读取数据,计算读出数据的平方值,将该数据及其平方值存入新的顺序文件NM2.txt中。请填空。
Private Sub Form_Click()
Dim x As Single,y As Single
  Open"NM1.txt"For Input As #1
  Open"NM2.txt"For Input As #2
  Do While Not EOF(1)
    (14)
   Print x
   y=x^2
    (15)
   Print y
  Loop
  Close #1,#2
End Sub

答案

参考答案:Print #2,x,y

解析: 本题考查顺序文件的读写操作,事件过程中,顺序文件的打开和关闭语句都正确,循环语句使用也正确。事件过程的功能是:从NM1.txt中读取数据,向NM2.txt中写入数据。程序中没有对数据文件进行读写的语句,故空白处要填写的是对顺序文件读数据和写数据的语句。

选择题
问答题

Throughout history, great thinkers have used their creativity and imagination to change the world, How do they come up with ideas for new inventions Thinkers who have changed the world, do not seem to have much in common. They come from different cultures and have different backgrounds, and only some of them did well at school. Creativity is not about getting high test scores, having a high IQ or being smart. Instead, it seems that Creative thinking, which is one of the most highly valued skills in society, is a matter of habits. By thinking about the way we think and practising good thinking strategies, we can become more creative.
Knowledge and learning are important if we want to be successful, but we must also realise that what we have learnt may also limit our thinking. To "think outside the box" is to try new ways to solve a problem. Inventors often rephrase a problem to allow for creative solutions and also try "impossible" or "crazy" solutions. If we looks only for the correct answer and reject ideas that do not provide a complete answer, we may get stuck. Partial solutions, and even failures, give us more information and clues that help us move towards a better solution. Creative thinking is a conscious effort to break away from old thought patterns in order to explore new possibilities.
Good solutions and new ideas are often the result of a change in perception. By looking at a problem in as many ways as possible, creative thinkers can find solutions that would otherwise remain invisible. As with thinking outside the box, the process includes a series of different attempts and several false starts. Each new way of looking at a situation improves our understanding and makes it easier to discover new possibilities. Great thinkers also like to make their ideas visible. A drawing or a model will help you see things that may otherwise remain hidden.
Every new thought or idea has to be connected to what we already know. Unfortunately, it is easy to limit the possibilities of a new idea by connecting it to only one area of our previous knowledge. Great thinkers are aware of this and try to combine new and old ideas in as many different ways as possible. They also try to make connections that may seem strange at first. By comparing and connecting ideas and objects in new ways, creative thinkers are able to think of new applications and solutions. Many of the things that we use every day were invented by someone who saw similarities between his or her ideas and objects or systems in the world.