问题 单项选择题

试题(38)、(39) 在面向对象技术中,____(38)____说明一个对象具有多种形态,____(39)____定义超类与子类之间的关系。

(39)处填()。

A.继承

B.组合

C.封装

D.多态

答案

参考答案:A

解析:

试题(38)、(39)分析 本题考查面向对象的基本知识。 面向对象技术中,继承关系是一种模仿现实世界中继承关系的一种类之间的关系,是超类(父类)和子类之间共享数据和方法的机制。在定义和实现一个类的时候,可以在一个已经存在的类的基础上来进行,把这个已经存在的类所定义的内容作为自己的内容,并加入新的内容。组合表示对象之间整体与部分的关系。封装是一种信息隐藏技术,其目的是使对象(组件)的使用者和生产者分离,也就使地其他开发人员无需了解所要使用的软件组件内部的工作机制,只需知道如何使用组件,即组件提供的功能及其接口。多态(polymorphism)是不同的对象收到同一消息可以产生完全不同的结果的现象,使得用户可以发送一个通用的消息,而实现的细节则由接收对象自行决定,达到同一消息就可以调用不同的方法,即多种形态。

完形填空

完形填空(共20小题;每小题1.5分,满分30分)

阅读下面短文,掌握其大意,然后从36-55各题所给的四个选项(A、B、C和D)中,选出最佳选项,并在答题卡上将该项涂黑。

Many people go to school for  36 . They learn languages, history, geography, physics, chemistry and mathematics.  37  go to school to learn a skill  38 they can make a living. School education is very important and useful. Yet no one can learn  39 from school. A teacher, no matter how much he  40 , can not teach his students everything they  41  to know. The teacher’s job is to show his students  42  to learn. He teaches  43 how to read and how to think. So much more is to be learned  44  school by the students themselves.

It is always more  45  to study by oneself than to remember some facts or formulas (公式). It is quite  46  to learn a certain fact in history  47  a formula in mathematics. But it is very difficult to  48  a formula in working out a maths problem. Great  49  such as Einstein, Newton and Galileo didn’t get everything from school. But they were  50  successful. They knew  51  to study, they read books that  52 not taught at school. They worked hard all their lives  53  not a single moment. They  54  ask many questions as they read and they did thousands of experiments.

Above all, they knew how to use their  55  .  

36. A. education  B. educating      C. study     D. learning

37. A. Other      B. Others    C. The other      D. Another

38. A. such that   B. so as to         C. so that    D. in order

39. A. nothing    B. something      C. anything        D. everything

40. A. understands   B. will know   C. knows     D. knew

41. A. eager        B. want      C. ask        D. wanted

42. A. how         B. what      C. when     D. where

43. A. the teacher  B. them     C. student    D. the student

44. A. at      B. inside     C. outside    D. out

45. A. possible    B. important       C. impossible      D. unimportant

46. A. easy         B. uneasy          C. difficult        D. hard

47. A. but                 B. and       C. or         D. other

48. A. learn       B. use        C. study     D. work

49. A. scientists  B. teachers         C. students         D. people

50. A. either       B. both       C. all         D. neither

51. A. what        B. which           C. this        D. why

52. A. is      B. were      C. will be          D. have been

53. A. waste       B. wasted          C. wasting         D. to waste

54. A. could       B. should    C. might     D. would

55. A. cleverness        B. thoughts        C. hearts     D. brains

单项选择题 A2型题