Dynamic Shape是()。
Trees should only be pruned (修剪) when there is a good reason for doing so. Many gardeners believe that more damage results from doing it unnecessarily than from leaving the tree to grow in its own way.
First, pruning may be done to make sure that trees have a desired shape. The object may be to get a tree of the right height, and to help the growth of small side branches which will thicken its appearance or give it a special shape. Secondly, pruning may be done to make the tree healthier. You may cut out diseased or dead wood, or branches that are rubbing against each other and thus causing wounds. A tree may grow healthier by removing the branches that are locking up the centre and so preventing the free movement of air.
One result of pruning is that an open wound is left on the tree and this provides an easy entry (进入) for diseases, but it is a wound that will heal. Often there is a race between the healing and the disease as to whether the tree will live or die. Pruning is usually done in winter, for then you can see the shape of the tree clearly without the interference from the leaves.
The wounds result from pruning will do the following EXCEPT ( )
A:damage the tree B:heal itself C:cause the disease D:give the tree a desired shape
在图形显示系统的类层次结构中,类Shape定义了“图形”所具有的公有方法:display( ),并将其声明为抽象方法:类Line是Shape的子类。则下列说法中正确的是 (1) 。若类Line正确继承了Shape类,并定义了方法display(int N),这种机制称为 (2) 。这样,通过Shape对象的正确引用就能实现Line对象的相应方法,体现了面向对象程序设计语言基本特征中的 (3) 。
1()
A:类Shape可进行实例化 B:可通过类名Shape直接调用方法display C:类Line必须重置方法display D:类Line,必须重载方法display
下面是类Shape的定义:
class Shape
public:
virtual void Draw( )=0;
下列关于Shape类的描述中,正确的是( )。
A:类Shape是虚基类 B:类Shape是抽象类 C:类Shape中的Draw函数声明有误 D:语句“Shape s;”能够建立Shape的一个对象s
窗体上有一个名称为Timer1的计时器控件,一个名称为Shape1的形状控件,其Shape属性值为3(Circle)。编写程序如下:
Private Sub Form_Load ( )
Shape1. Top = 0
Timer1. Interval = 100
End Sub
Private Sub Timer1_Timer( )
Static x As Integer
Shapel. Top = Shape1. Top + 100
x=x+1
If x Mod 10 =0 Then
Shape1. Top = 0
End If
End Sub
以下关于上述程序的叙述中,错误的是( )。
A:每执行一次Timer1_Timer事件过程,x的值都在原有基础上增加1 B:Shape1每移动10次回到起点,重新开始 C:窗体上的shape1由下而上移动 D:Shape1每次移动100
看体上有一个名称为Timer1的计时器控件,一个名称为shape1的形状控件,其Shape属性值为3(Cirele)。编写程序如下:
Private Sub Form_Load( )
Shape1.Top=0
Timer1.Interval=100
End Sub
Private Sub Timer1_Timer( )
Static x As Integer
Shape1.Top=Shape1.Top+100
x=x+1
If x Mod 10=0 Then
Shape1.Top=0
End If
End Sub
以下关于上述程序的叙述中,错误的是()。
A:每执行一次Timer1_Timer事件过程,x的值都在原有基础上增加1 B:Shape1每移动10次回到起点,重新开始 C:窗体上的Shape1由下而上移动 D:Shape1每次移动100
下面是类Shape的定义:
class Shape
public:
virtualvoidDraw()=0;
下列关于Shape类的描述中,正确的是()。
A:类Shape是虚基类 B:类Shape是抽象类 C:类Shape中的Draw函数声明有误 D:语句“Shape s;”能够建立Shape的一个对象s
窗体上有一个名称为Shape1的形状控件和由三个命令按钮组成的名称cmdDraw的控件数组。窗体外观如图所示(从上到下的3个命令按钮下标分别为0、1、2)。有事件过程如下:
Private Sub cmdDraw_Click(Index As Integer)
Select Case Index
Case 0
Shape1.shape=0
Case 1
Shape1.shape=1
Case 2
Shape1.Shape=3
End Select
End Sub
当单击“画圆”命令按钮时,会执行cmdDraw_Click事件过程。以下叙述中正确的是()。
A:Case2分支有错,此Case后面表达式的值应该与赋给Shape1.Shape的值一致 B:程序运行有错,控件数级别的下标应该从1开始 C:Index是形状控件的参数 D:程序正常运行,形状控件被显示为圆形
下面是类Shape的定义:
class Shape{
public:
virtual void Draw( )=0;
};
下列关于Shape类的描述中,正确的是()
A:类Shape是虚基类 B:类Shape是抽象类 C:类Shape中的Draw函数声明有误 D:语句“Shape s;”能够建立Shape的一个对象s