单选题A student is instructed to arrange four cards in a row on a table. She has six cards to choose from, each of which has a different color: black, red, blue, green, yellow, and brown. If the student follows these instructions but otherwise chooses her ca

题目
单选题
A student is instructed to arrange four cards in a row on a table. She has six cards to choose from, each of which has a different color: black, red, blue, green, yellow, and brown. If the student follows these instructions but otherwise chooses her cards randomly, what is the probability that her arrangement will be blue, red, yellow, and green, in that order?
A

1/90

B

1/ 180

C

1/360

D

1/540

E

1/720

参考答案和解析
正确答案: B
解析:
从6张不同颜色的卡片中选出其中四张排列为1列,第一张卡片有6中选择,第二张卡片有5中选择,以此类推,第三张和第三张卡片分别有4种和3种选择,所以将4张卡片排在一起的可能性为6 x 5 x 4 x 3 = 360种。所以概率为1/360。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

以下选项中不能正确把c1定义成结构体变量的是

A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;

B.struct color c1 {int red int green: int blue; };

C.struct color {int red , int green : int blue : )cl;

D.struct {int red; int green; int blue } c1 ;


正确答案:B
解析:本题考核的知识点是结构体类型定义。结构体类型的定义格式为:strcut结构体名{成虽说明列表};结构体变量的定义有3种形式:第一种,定义结构体型的同时定义结构体变量,如:strcut结构体名{成员说明列表}变量;选项C属于这种情况,故选项C正确:第二种,先定义一个结构体类型,然后使用该类型来定义结构体变量,如:strcutstudent{成员说明列表}:student变量;选项A属于这种情况,故选项A正确;第三种,定义一个无名称的结构体类型的同时定义结构体变量,如:strcutstudent{成员说明列表}变量;选项D属于这种情况,故选项D正确.所以,4个选项中选项B符合题意。

第2题:

以下选项中不能正确把cl定义成结构体变量的是

A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;

B.struct color cl { int red; int green; int blue; }

C.struct color { int red; int green; int blue; } cl;

D.struct { int red; int green; int blue; } cl;


正确答案:B
解析:选项A)是把结构体类型改名后定义为变量cl。选项C),D)则是在定义结构体类型时定义变量,而选项B)不符合结构体类型定义的语法规则。

第3题:

设有说明var color:(red,green,yellow,blue);a:boolean;下面语句正确的是( )。

Aolor:=‘green‘;

Bwriteln(green);

Cwriteln(color);

Da:=color=red;


正确答案:D

第4题:

下列选项中不能正确定义结构体的是_______。

A.typedef struct

B.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;

C.struct color

D.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;


正确答案:B
解析:将一个变量定义为标准类型与定义为结构体类型不同之处在于:后者不仅要求指定变量为结构体类型,而且要求指定为某一特定的结构体类型(例如,struct color),不能只指定结构体名。其中可以不出现结构体名,答案D就是缺省结构体名的隋况。而变量名歹婊必须放在成员列表后面,所以B答案不能正确将cl定义为结构件变量。

第5题:

以下选项中不能正确把c1定义成结构体变量的是

A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;

B.struct color cl { int red; int green; int blue; };

C.struet color { int red; int green; int blue; }c1;

D.struct { int red; int green; int blue; }cl;


正确答案:B
解析:结构体类型的定义格式为:
  stract结构体名
  成员说明列表};
  结构体变量的定义有3种形式:第一种,定义结构体类型的同时定义结构体变量,如: street结构体名{成员说明列表}变量;第二种,先定义一个结构体类型,然后使用该类型来定义结构体变量,如:strect student{成员说明列表};student变量;第三种,定义一个无名称的结构体类型的同时定义结构体变量,如:strect student{成员说明列表}变量;。

第6题:

There are mainly six types of tea in the traditional Chinese concept, namely, black tea, green tea, white tea, oolong tea, yellow tea and dark tea.

Black tea is fully fermented, so its leaves and tea soup are red.The flavour and aroma of black tea are rich and robust with a little bitterness.Famous black tea includes Qimen black tea, Tanyang Gongfu, etc.

Green tea is non-fermented and the tea soup is green.It has a more delicate and fresher flavour than black tea.Famous green tea includes West Lake Longjing Tea, Bi Luo Chun Tea, etc.

White tea, originated in Fujian Province, is probably the rarest tea.It is slightly fermented, just left to dry as it is.White tea has a lighter colour than other types of tea with a subtle flavor.

One of the most famous white teas is White Tip Silver Needle.

Oolong tea is partially fermented and has the most difficult tea processing.The result is a distinctive flavour, which combines the freshness of green tea and the mellowness of black tea.Famous oolong tea includes Tie Guan Yin, Da Hong Pao, etc.

Yellow tea is relatively unknown.It is fermented.In the tea processing, the leaves are mounded and dried by the heat of fermentation.The flavour is close to green and white teas.Famous yellow tea includes Junshan Yinzhen, Huoshan Huangya, etc.

Dark tea is post-fermented, which gives the leaves a dark black colour.The tea soup has a strong aroma with a thick and robust flavour.Famous dark tea includes Hunan dark tea, Yunnan Pu-erh tea, etc.

Choose the best answer A, B, C or D to complete each statement based on Passage B.

11._____ tea is non-fermented.

A.Yellow

B.Green

C.Black

D.White

12._____ tea is slightly fermented and the rarest kind of all.

A.Green

B.White

C.Yellow

D.Black

13._____ tea is partially fermented and combines the freshness of green tea and the mellowness of black tea.

A.White

B.Black

C.Yellow

D.Oolong

14.The flavour of _____ tea is similar to green and white teas.

A.white

B.black

C.yellow

D.oolong

15.The soup of _____ tea has a strong aroma with a thick flavour.

A.white

B.black

C.yellow

D.dark


答案:BBDCD

第7题:

下列枚举类型的定义中,包含枚举值3的是

A.enum test{RED,YELLOW,BLUE,BLACK};

B.enum test{RED,YELLOW=4,BLUE,BLACK};

C.enum test{RED=-1,YELLOW,BLUE,BLACK};

D.erium test{RED,YELLOW=6,BLUE,BLACK};


正确答案:A
解析:在枚举类型定义中,如果没有进行显式设置,则隐式设置整数值。将枚举声明中的第一个枚举值设置为O。后续所有成员的值如果没有进行显式设置,便确定为前一个成员的值加1。所以只能选择答案A)。选项B)中对应的枚举值是0,4,5,6;选项c)中对应的枚举值是-1,0,1,2;选项D)中对应的枚举值是0,6,7,8。

第8题:

( 18 )下列枚举类型的定义中,包含枚举值 3 的是

A ) enum test {RED, YELLOW, BLUE, BLACK};

B ) enum test {RED, YELLOW=4, BLUE, BLACK};

C ) enum test {RED=-1, YELLOW,BLUE, BLACK};

D ) enum test {RED, YELLOW=6, BLUE, BLACK};


正确答案:A

第9题:

WhichofthefollowingisthecorrectwiringorderforanRJ-11twolinejack?()

A.Black,Green,Red,Yellow

B.Black,Red,Green,Yellow

C.Red,Black,Green,Yellow

D.Yellow,Red,Green,Black


参考答案:B

第10题:

The traffic lights were red when the driver reached them.To the surprise of his passenger,the ear did not slow down.Unexpectedly the passenger was thrown forward in the vehicle as the driver put on his brakes at the last moment.The car stopped just in time.
"Sorry,I didn't notice the light.I thought it was green until I saw that it was the top light which was shining."
This strange story is quite true.About ten men in every hundred are color blind in some way;women are luckier--only about one in two hundred suffers from color blindness.
In some cases,a man may not be able to see deep red.He may think that red,orange and yellow are all the same as green.
People often like one color more than others.Blue is the color of the sky and sea.Green makes us think of fields and trees.Red is the color of blood and makes some people think of danger.Black is the color of night.In the dark we cannot see what is around us so we are sometimes afraid of the unknown and do not like black as a color.

One is considered as a color blind man if__.

A.he can see the difference between red and deep red
B.he can see the difference between blue and green
C.he can't tell the difference between orange and green
D.he thinks green is the same as blue

答案:C
解析:
参见第四段。

更多相关问题