-2<a+b<-1
-l<a+b<0
0<a+b<l
l<a+b<2
2<a+b<3
第1题:
(53)下列关于函数依赖和多值依赖的叙述中,( )是不正确的。
Ⅰ、若X→Y,则X→→Y Ⅱ、若X→→Y,则X→Y
Ⅲ、若Y í X,则X→Y Ⅳ、若Y í X,则X→→Y
Ⅴ、若X→Y,Y* ì Y,则X→Y* Ⅵ、若X→→Y,Y*ìY,则X→→Y*
A)仅Ⅱ和Ⅳ
B)仅Ⅰ、Ⅱ和Ⅳ
C)仅Ⅱ和Ⅵ
D)仅Ⅳ、Ⅴ和Ⅵ
第2题:
( 13 )有如下复数类的声明,请补充完整。
class complex{
double real; // 实部
double imag; // 虚部
public:
complex(double x , double y){
real=x;
imag=y;
}
perator+(complex c){// 重载加法运算符 “ + ”
return complex(___________)
}
};
第3题:
A. X x=new X();
Y y=new Y();
Z z=new Z();
y=(Y)x;
B. X x=new X();
Y y=new Y();
Z z=new Z();
x=(X)y;
C. X x=new X();
Y y=new Y();
Z z=new Z();
Z=(Z)x;
D. X x=new X();
Y y=new Y();
Z z=new Z();
W w=(W)x;
答案:D
解析:对象的强制类型转换的格式要求:"W w=(W)x;",只有D项符合
第4题:
下面语句正确的是
A.If x<3 * y And x>y Then y=x^3
B.If x<3 * y And x>y Then y=x3
C.If x<3 * y:x>y Then y=x^3
D.If x<3 * y And x>y Then y=x* *3
第5题:
Which of the following indicate(s)possible values for the variables when the segment finishes execution?(74).
Ⅰ. x=1,y=2
Ⅱ. x=1,y=3
Ⅲ. x=4, y=6
A.Ⅰ
B.Ⅰ,Ⅱ
C.Ⅰ, Ⅲ
D.ⅡandⅢ
第6题:
●The construct
cobegin
Statement1;
Statement2;
coend
means Statement1 and Statement2 are to be executed in parallel.The only two atomic actions in this construct are loading the value of a variable and storing into a variable.For the program segment
x=0;y=0;
cobegin
{x=1;y+=x;}
{y=2;x+=3;}
coend
Which of the following indicate(s)possible values for the variables when the segment finishes execution? (74) .
Ⅰ.x=1,y=2
Ⅱ.x=1,y=3
Ⅲ.x=4,y=6
(74) A.Ⅰ
B.Ⅰ,Ⅱ
C.Ⅰ,Ⅲ
D.Ⅱ and Ⅲ
第7题:
6The construct cobegin Statement1; Statement2; coend means Statement1 and Statement2 are to be executed in parallel. The only two atomic actions in this construct are loading thevalue of a variable and storing into a variablE.For the program segment x:=0; y:=O; cobegin begin x:=l; y:=y+x; end; begin y:=2; x:=x+3; end coend Which of the following indicate(s) possible values for the variables when the segment finishes execution? Ⅰ.x=1,y=2 Ⅱ.x=1,y=3 Ⅲ.x=4,y=6
A.Ⅰ
B.Ⅰ and Ⅱ
C.Ⅰ and Ⅲ
D.Ⅱand Ⅲ
第8题:
( 52 )下列关于函数依赖和多值依赖的叙述中,哪些是不正确的?
I . 若 X → Y, 则 X →→ Y Ⅱ .若 X →→ Y, 则 X → Y
Ⅲ .若 Y ? X, 则 X → Y Ⅳ .若 Y ? X, 则 X →→ Y
Ⅴ .若 X → Y, Y ’ ? X, 则 X → Y ’ Ⅵ .若 X →→ Y, Y ’ ? Y, 则 X →→ Y ’
A ) Ⅱ 和 Ⅳ
B ) Ⅰ 、 Ⅲ 和 Ⅳ
C ) Ⅱ 和 Ⅵ
D ) Ⅳ 和 Ⅵ
第9题:
以下程序运行后的输出结果是 ______。 Sub add(x,y) x=x+y Print "x=";x;",y=";y End Sub Private Sub Command1_Click() x=1 y=1 Call add((x),(y)) Print"x="; x;",y=";y End Sub
A.x=1,y=1 x=2,y=2
B.x=2,y=1 x=1,y=1
C.x=1,y=1 x=1,y=1
D.x=2,y=1 x=2,y=1
第10题: