【简答题】下面哪份代码 (Java) 最接近于图中对 Segment 的描述? A public class Segment implementsGraphics { privatc voidDraw(); public Point ptStart ; public Point ptEnd ; } B public class Segment extendsGraphics { public void Dr...
【单选题】“ 酒香不怕巷子深 ” 、 “ 皇帝的女儿不愁嫁 ” 是典型的
【单选题】图描述了图形接口(Graphics)、线段(Segment)、矩形(Rectangle)、点(Point)和三维点(Point3D)之间的关系 下面哪份代码(Java)最接近于图中对Segment的描述?
A.
public class Segment implements Graphics { privatc void Draw(); public Point ptStart ; public Point ptEnd ; }
B.
public class Segment extends Graphics { public void Draw(); private Point ptStart ; private Point ptEnd ; }
C.
public class Segment implements Graphics { private Point ptStart ; private Point ptEnd ; public void Draw(); }
D.
public class segment implements graphics { public void Draw(); private Point ptStart ; private Point ptEnd ; }
【单选题】下面哪份代码(C++)最接近于图中对MenuItem的描述
A.
class MenuItem { private: virtual void Click() =0; public: Command* command; };
B.
class MenuItem { public: virtual void Click() = 0; private: Command* command; };
C.
class MenuItem { private: virtual void Click() = 0; void undo(); public: Command* command; };
D.
class menuitem { public: virtual void Click() = 0; private: Command* command; };
【简答题】现在只知道关系包含的属性和关系的键码,则一定是第二范式的关系是( )。 A. R1{A1,A2,A3} KEY{A1,A2} B. R2{B1,B2,B3} KEY{B1} C. R3{C1,C2,C3} KEY{C2,C3} D. R4{D1,D2,D3} KEY{D1,D3}
【单选题】上图描述了图形接口(Graphics)、线段(Segment)、矩形(Rectangle)、点(Point)和三维点(Point3D)之间的关系。下面哪份代码(Java)最接近于图中对Segment的描述?( )
A.
public class Segment implements Graphics { privatc void Draw(); public Point ptStart; public Point ptEnd; }
B.
public class Segment extends Graphics { public void Draw(); private Point ptStart; private Point ptEnd; }
C.
public class Segment implements Graphics { private Point ptStart; private Point ptEnd; public void Draw(); }
D.
public class segment implements graphics { public void Draw(); private Point ptStart; private Point ptEnd; }
【单选题】关系模式R包含属性{A1,A2,A3,A4,A5},其中{ A1,A2}为码,则下面说法正确的是( )。
A.
{ A1} 或{ A2}有可能单独成为R的主码
C.
R 中绝对不可能出现两个在A1,A2上取值完全相同的元组
D.
R 的所有元组中,A1或者A2的值都是不能重复的
【单选题】关系模式 R 包含属性 {A 1 , A 2 , A 3 , A 4 , A 5 } ,其中 { A 1 , A 2 } 为码,则下面说法正确的是( )。
A.
{ A 1 } 或 { A 2 } 有可能单独成为 R 的码
B.
{ A 1 , A 2 , A3} 必然也是 R 的码
C.
R 中绝对不可能出现两个在 A 1 , A 2 上取值完全相同的元组
D.
R 的所有元组中, A 1 或者 A 2 的值都是不能重复的