更多“单选题A jar contains 4 red, 1 green, and 3 yellow marbles. If 2 marbles are drawn from the jar without replacement, what is the probability that both will be yellow?A 3/8B 3/28C 1/4D 3/56E 5/56”相关问题
  • 第1题:

    在下列程序段中,enumcolor{red,yellow,blue=4,green,white}c1,c2;c1=yellow;c2=white;枚举变量c2的值是()

    A、1

    B、3

    C、5

    D、6


    参考答案:D

  • 第2题:

    已知枚举类型声明语句为: enumCOLOR{WHITE,YELLOW,GREEN=5,RED,BLACK=10}; 则下列说法中错误的是

    A.枚举常量YELLOW的值为1

    B.枚举常量RED的值为6

    C.枚举常量BLACK的值为10

    D.枚举常量WHITE的值为1


    正确答案:D
    解析:枚举变量中的枚举元素系统是按照常量来处理的。如果没有进行元素赋值操作,那么元素将会被系统从0开始自动递增地进行赋值操作,但是,如果一旦定义了某一个元素的值,那么系统将对下一个元素进行按前一个元素的值加1操作,故wHITE=1,YELLOW=2,GREEN=5,RED=6,BLACK=10。

  • 第3题:

    WhichofthefollowingisthecorrectwiringorderforanRJ-11twolinejack?()

    A.Black,Green,Red,Yellow

    B.Black,Red,Green,Yellow

    C.Red,Black,Green,Yellow

    D.Yellow,Red,Green,Black


    参考答案:B

  • 第4题:

    在下列程序段中,枚举变量 c1的值是()。

    enum color { red,yellow,blue=4,green,white}c1; c1=yellow; c1=white;

    A 1

    B 3

    C 5

    D 6


    正确答案:D

  • 第5题:

    在列表:c=["black","red","green","yellow","orange","blue"]中,设定变量j=3,那么运行代码turtle.pencolor(c[j])后,画笔的颜色将变成黄色。


    正确答案:正确

  • 第6题:

    Which of the following is the correct wiring order for an RJ-11 two line jack?()

    • A、Black,Green,Red,Yellow
    • B、Black,Red,Green,Yellow
    • C、Red,Black,Green,Yellow
    • D、Yellow,Red,Green,Black

    正确答案:B

  • 第7题:

    enum color{red,green,yellow=5,white,black};定义了一枚举类型。编译程序为值表中各标识符分配的枚举值依次为()。

    • A、1、2、3、4、5
    • B、0、1、5、2、3
    • C、0、1、5、6、7
    • D、3、4、5、6、7

    正确答案:C

  • 第8题:

    单选题
    A jar contains 54 marbles each of which is blue, green, or white. The probability of selecting a blue marble at random from the jar is 1/3, and the probability of selecting a green marble at random is 4/9. How many white marbles does the jar contain?
    A

    6

    B

    8

    C

    9

    D

    12

    E

    18


    正确答案: A
    解析:
    Since the probability of selecting a blue marble at random from the jar is 1/3 and the probability of selecting a green marble at random from the jar is 4, the probability of selecting a white marble is 1-(1/3 + 4/9) = 1- (7/9) = 2/9. If x marbles of the 54 marbles in the jar are white, then x/54 = 2/9, 9x = 108, x = 108/9 = 12.

  • 第9题:

    单选题
    A jar contains 4 red, 1 green, and 3 yellow marbles. If 2 marbles are drawn from the jar without replacement, what is the probability that both will be yellow?
    A

    3/8

    B

    3/28

    C

    1/4

    D

    3/56

    E

    5/56


    正确答案: B
    解析:
    There are eight marbles in the jar. The probability of choosing the first yellow marble is 3/8. The probability that your second marble will also be yellow is 2/7. The probability that both will be yellow is 3/8×2/7=6/56=3/28.

  • 第10题:

    单选题
    The faces of a red die and a white die are numbered from 1 to 6. Both dice are rolled. What is the probability that the top face of each die will have the same number?
    A

    1/3

    B

    1/6

    C

    1/12

    D

    1/36

    E

    1/72


    正确答案: E
    解析:
    If the top face of the red die is a number from 1 to 6, then the probability that the top face of the white die will have the same number is 1/6. So the probability that the top face of each die will have the same number is 1×(1/6) or 1/6.

  • 第11题:

    单选题
    enum color{red,green,yellow=5,white,black};定义了一枚举类型。编译程序为值表中各标识符分配的枚举值依次为()。
    A

    1、2、3、4、5

    B

    0、1、5、2、3

    C

    0、1、5、6、7

    D

    3、4、5、6、7


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    You have berthed in a area with other tank vessels. What signal is displayed by a vessel to indicate it is transferring flammable or combustible liquid cargo?().
    A

    A flashing yellow light

    B

    A red light visible all around the horizon

    C

    A green light visible all around the horizon

    D

    An illuminated red and yellow caution flag


    正确答案: D
    解析: 暂无解析

  • 第13题:

    ( 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

  • 第14题:

    下列枚举类型的定义中,包含枚举值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。

  • 第15题:

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

    A.entire test(RED,YELLOW,BLUE,BLACK);

    B.entire test(RED,YELLOW,BLUE,BLACK);

    C.enum test(RED=-1,YELLOW,BLUE,BLACK);

    D.enum test(RED,YELLOW=6,BLUE,BLACK);


    正确答案:A
    解析:枚举变量中的枚举元素系统是按照常量来处理的,如果没有进行元素赋值操作,那么元素将会被系统自动从0开始自动递增地进行赋值操作,但是,如果一旦定义了某一个元素,那么系统将对下一个元素进行前一个元素的值加1操作。

  • 第16题:

    A special daymark is a ______.

    A.red-and-white octagon

    B.daymark with a yellow stripe on it

    C.green square

    D.yellow diamond


    正确答案:D

  • 第17题:

    已知enumcolor{red,yellow=2,blue,white,black}ren;执行printf("%d",ren=white);的输出结果是()

    • A、0
    • B、1
    • C、3
    • D、4

    正确答案:D

  • 第18题:

    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."

    • A、The sky is red.
    • B、The sky is blue.
    • C、The sky is green.
    • D、The sky is yellow.

    正确答案:C

  • 第19题:

    问答题
    If there are only red, blue, and green marbles in a jar, what is the ratio of red to blue marbles?  (1) The ratio of red to green marbles is 2:3.  (2) The ratio of green to blue marbles is 6:5.

    正确答案: C
    解析:
    题目中含三个未知量,(1)、(2)条件相结合可以计算红色和蓝色珠子的比例,两个条件无法单独决定,故本题选C项。

  • 第20题:

    单选题
    A jar contains 10 blue, 8 green, and 6 red marbles. Every time a marble is removed from the jar, it is not replaced. What is the probability, to the nearest hundredth, that the second marble chosen is green if the first marble chosen is green?
    A

    0.28

    B

    0.29

    C

    0.30

    D

    0.31

    E

    0. 32


    正确答案: C
    解析:
    Because the first marble drawn is green that means there are a total of 23 marbles remaining. Seven of these are green. P (second green) = 7/23= 0.30

  • 第21题:

    单选题
    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."
    A

    The sky is red.

    B

    The sky is blue.

    C

    The sky is green.

    D

    The sky is yellow.


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    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。

  • 第23题:

    判断题
    在列表:c=["black","red","green","yellow","orange","blue"]中,设定变量j=3,那么运行代码turtle.pencolor(c[j])后,画笔的颜色将变成黄色。
    A

    B


    正确答案:
    解析: 暂无解析

  • 第24题:

    单选题
    A bag contains three green marbles, four blue marbles, and two orange marbles. If a marble is picked at random, what is the probability that an orange marble will NOT be picked?
    A

    1/4

    B

    1/3

    C

    4/11

    D

    1/2

    E

    9/7


    正确答案: A
    解析:
    The total number of marbles in the bag is 3+4+2 or 9. Of these 9 marbles, 3+4 or 7 marbles are not orange. Hence, the probability that an orange marble will NOT be picked is 7/9.