假设某股票市场遭遇牛市,熊市,正常市的概率分别为三分之一,有三只股票X,Y,Z,在牛市下,X的收益率为20%,Y的收益率为15%,Z的收益率为25%,在正常市下,X的收益率为10%,Y的收益率为5%,Z的收益率为5%,在熊市下,X的收益率为-5%,Y的收益率为-10%,Z的收益率为-15%。

X,Y股票的协方差为( )。

A:0.0106 B:0.0073 C:0.0086 D:0.0253

假设某股票市场遭遇牛市,熊市,正常市的概率分别为三分之一,有三只股票X,Y,Z,在牛市下,X的收益率为20%,Y的收益率为15%,Z的收益率为25%,在正常市下,X的收益率为10%,Y的收益率为5%,Z的收益率为5%,在熊市下,X的收益率为-5%,Y的收益率为-10%,Z的收益率为-15%。

X,Y股票的相关系数为( )。

A:0.8 B:0.6 C:0.5 D:1

设有下列说明语句:
Strcut Str
int x;float y;char z;st;
则下列的叙述中不正确的是()。

A:struct是结构体类型的关键字 B:st是结构体类型名 C:x、y、z都是结构体成员名 D:struct str是结构体类型名

设有下列说明语句:
strcut str
int x; float y; char z;st;
则下列的叙述中不正确的是( )。

A:struct是结构体类型的关键字 B:st是结构体类型名 C:x、y、x都是结构体成员名 D:struct str是结构体类型名

有以下程序:
#include <iostream>
#include <string>
using namespace std;
class Y;
class X

private:
int x;
char *strx;
public:
X(int a, char *str)

x=a;
strx=new char[strlen(str)+1];
strcpy(strx,str);

void show(Y &ob) ;
;
class Y

private:
int y;
char *stry;
public:
Y(int b,char *str)

y=b;
stry=new char[strlen(str)+1];
strcpy(stry, str);

friend void X: :show(Y &ob) ;
;
void X: :show(Y &ob)

cout<<strx<<", ";
cout<<ob, stry<<end1;

int main ( )

X a(10,"X");
Y b (20, "Y");
a. show(B) ;
return 0;

执行后的输出结果是( )。

A:X,Y B:a,b C:X,X D:Y,Y

设有下列说明语句:

strcut str

int x;float y;char z;st;

则下列的叙述中不正确的是( )。

A:struct是结构体类型的关键字 B:st是结构体类型名 C:x、y、z都是结构体成员名 D:struct str是结构体类型名

有以下程序: #include <iostream> #include <string> using namespace std; class Y; class X { private: int x; char *strx; public: X(int a, char *str) { x=a; strx=new char[strlen(str)+1]; strcpy(strx,str); } void show(Y &ob) ; }; class Y { private: int y; char *stry; public: Y(int b,char *str) { y=b; stry=new char[strlen(str)+1]; strcpy(stry, str); } friend void X: :show(Y &ob) ; }; void X: :show(Y &ob) { cout<<strx<<", "; cout<<ob, stry<<end1; } int main ( ) { X a(10,"X"); Y b (20, "Y"); a. show(B) ; return 0; } 执行后的输出结果是( )。

A:X,Y B:a,b C:X,X D:Y,Y

定义变量如下: Dim Str_x Str_x="祝你成功!" 若在立即窗口中显示Str_x的值,下面正确的是______。

A:Debu Print Str_x B:PictureBo Print Str_x C:Printe Print Str_x D:Print Str_x

微信扫码获取答案解析
下载APP查看答案解析