单选题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.28B 0

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


相似考题
更多“单选题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.28B 0”相关问题
  • 第1题:

    以下选项中不能正确把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)不符合结构体类型定义的语法规则。

  • 第2题:

    WhichofthefollowingisthecorrectwiringorderforanRJ-11twolinejack?()

    A.Black,Green,Red,Yellow

    B.Black,Red,Green,Yellow

    C.Red,Black,Green,Yellow

    D.Yellow,Red,Green,Black


    参考答案:B

  • 第3题:

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

    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定义为结构件变量。

  • 第4题:

    阅读下列说明和 C++代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 设计 RGB 方式表示颜色的调色板,进行绘图,其类图如图 5-1 所示。该程序的 C++代码附后。图5-1 类图

    【C++代码】 include <iostream> include <stdlib.h> include <ctime> using namespace std; class MyColor{ private: int red; int green; int blue; public: MyColor() {red = 0; green = 0; blue = 0; } ~MyColor() { } MyColor(int red ,int green ,int blue) { this->red = red; this->green = green; this->blue = blue;} //其他方法略 void print() { cout<<"Red: " << red << "\tGreen: " << green << "\tBlue " << blue << endl; } }; class Palette ( private: int number; MyColor** palette; public: Palette() { number = 256; palette = (MyColor*)malloc (sizeof(MyColor ) *number); } ~Palette () { for (int i = 0; i < number; i++) { delete palette[i]; } (1) ; } Palette(MyColor** pale ,int number) { (2) = number; palette = (MyColor**)malloc(sizeof(MyColor*)*number) ; memcpy(palette ,pale ,sizeof(pale)*number); } //其他方法略 void print () { for (int i = 0; i < number; i++) { cout << i << " : " ; palette[i]->print(); } } }; class Drawing{ public: (3) int COLORNUMBER = 16; public: ~Drawing () { } void draw() ( Palette* palette; int red ,green ,blue; MyColor* color[COLORNUMBER); srand((unsigned)time(O)); for (int i = 0; i < COLORNUMBER; i++) red=rand ()% 256; green = rand() % 256; blue = rand ()% 256; color [i) = (4) (red ,green ,blue); } palette = new Palette(color ,COLORNUMBER); palette->print(); for (int i = 0; i < COLORNUMBER; i++) delete color[i]; } }; int main () { Drawing * d = (5) ; d->draw(); delete d; }


    正确答案:(1) free(palette)
    (2) this->number
    (3) static const
    (4) new MyColor
    (5) new Drawing()

  • 第5题:

    共用题干
    第三篇

    Ways to Create Colors in a Photograph

    There are two ways to create colors in a photograph.One method called additive,starts with three basic colors and adds them together to produce some other color. The second method,called subtractive,starts with white light(a mixture of all colors in the spectrum)and,by taking away some or all other colors,leaves the one desired.
    In the additive method,separate colored lights combine to produce various other colors.The three additive primary colors are green,red and blue(each providing about one-third of the wavelengths in the total spectrum).Mixed in varying proportions,they can produce all colors.Green and red light mix to produce yellow,red and blue light mix to produce magenta(a purplish pink);green and blue mix to produce cyan(a bluish green).When equal parts of all three of these primary-colored beams of light overlap(重叠),the mixture appears white to the eye.
    In the subtractive process colors are produced when dye(染料)absorbs some wavelengths and so passes on only part of the spectrum.The subtractive primaries are cyan,magenta and yellow; these primaries or dyes absorb red,green and blue wavelengths respectively,thus subtracting them from white light. These dye colors are the complementary colors to the three additive primaries of red,green and blue.Properly combined,the subtractive primaries can absorb all colors of light, producing black.But,mixed in varying proportions,they too can produce any color in the spectrum.
    Whether a particular color is obtained by adding colored lights together or by subtracting some light from the total spectrum,the result looks the same to the eye.The additive process was employed for early color photography. But the subtractive method,while requiring complex chemical techniques,has turned out to be more practical and is the basis of all modern color films.

    It can be inferred from the passage that white can be produced by______.
    A:mixing different proportions of magenta,green and red
    B:mixing equal proportions of green,red and blue
    C:mixing different proportions of cyan, yellow and blue
    D:mixing equal proportions of black,red and green

    答案:B
    解析:
    这是一道理解主旨的题。第一段第一句明确提出,照片中的颜色是通过加色法和减色法两种方式形成的。之后二、三段分别详细介绍了两种方式的具体情况。A、B、D选项均不是文章主旨。
    第二段最后一句话提到当等比例的三原色重叠时,形成白色。因此B选项是正确的。
    这是一道关于减色法过程的细节题。根据第三段第二句话可知,减色法中的三原色分别是蓝绿色、紫红色、黄色;它们分别从白色中吸取红色、绿色、蓝色的光波。故可得出蓝绿色吸收的是红色的光波。
    根据文章内容可知,加色法的三原色分别为红、绿、蓝,减色法的三原色分别是蓝绿色、紫红色、黄色。没有黑色和白色。
    根据最后一段可知,通过加色法和减色法所获的特定颜色用肉眼来看效果是一样的。加色法用于早期彩色照片的处理,而减色法虽然需要复杂的化学工艺,却被证实是更为实用的方法,所以它成为了现代彩色胶片的基础。由此可知相对于加色法,减色法更为有效。

  • 第6题:

    以下程序的输出结果是()。enumColor{Red,Green=2,Blue}staticvoidMain(string[]args){Colorc=0;Colorc1=(Color)2;Console.WriteLine("{0},{1}",c,c1);Console.Read();}

    • A、Green,Red
    • B、Red,Green
    • C、Red,Blue
    • D、Green,Blue

    正确答案:B

  • 第7题:

    Which of the following is the correct pin out for T568B?()

    • A、Orange/white, orange, green/white, blue, blue/white, green, brown/white, brown
    • B、Blue, blue/white, orange/white, orange, brown/white, brown, green/white, green
    • C、Green/white, green, orange/white, blue, blue/white, orange, brown/white, brown
    • D、Orange/white, orange, brown/white, brown, green/white, green, blue, blue/white

    正确答案:A

  • 第8题:

    public class test(   public static void main(stringargs){   string foo = args [1];   string foo = args ;   string foo = args ;   }   )   And command line invocation:  Java Test red green blue  What is the result? () 

    • A、 Baz has the value of “”
    • B、 Baz has the value of null
    • C、 Baz has the value of “red”
    • D、 Baz has the value of “blue”
    • E、 Bax has the value of “green”
    • F、 The program throws an exception.

    正确答案:F

  • 第9题:

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

  • 第10题:

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

  • 第11题:

    单选题
    Which of the following is the correct pin out for T568B?()
    A

    Orange/white, orange, green/white, blue, blue/white, green, brown/white, brown

    B

    Blue, blue/white, orange/white, orange, brown/white, brown, green/white, green

    C

    Green/white, green, orange/white, blue, blue/white, orange, brown/white, brown

    D

    Orange/white, orange, brown/white, brown, green/white, green, blue, blue/white


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

  • 第12题:

    单选题
    public class test(   public static void main(stringargs){   string foo = args [1];   string foo = args ;   string foo = args ;   }   )   And command line invocation:  Java Test red green blue  What is the result? ()
    A

     Baz has the value of “”

    B

     Baz has the value of null

    C

     Baz has the value of “red”

    D

     Baz has the value of “blue”

    E

     Bax has the value of “green”

    F

     The program throws an exception.


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

  • 第13题:

    以下选项中不能正确把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{成员说明列表}变量;。

  • 第14题:

    Which of the following is the correct pin out for T568B?()

    A. Orange/white, orange, green/white, blue, blue/white, green, brown/white, brown

    B. Blue, blue/white, orange/white, orange, brown/white, brown, green/white, green

    C. Green/white, green, orange/white, blue, blue/white, orange, brown/white, brown

    D. Orange/white, orange, brown/white, brown, green/white, green, blue, blue/white


    参考答案:A

  • 第15题:

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

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

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

    C.stmctcolor { int red, int green; int blue; }c1;

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


    正确答案:D
    解析:因为结构体中不能出现同名的成员变量,所以选项A和B都是错误的;又因为结构体中成员的定义应该由分号隔开,所以选项C也是错误的。选项D定义了一个无名结构体,并同时定义该结构体变量c1,是正确的写法。故应该选择D。

  • 第16题:

    阅读以下说明和 Java 代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 设计 RGB 方式表示颜色的调色板,进行绘图。其类图如图 6-1 所示。该程序的 Java代码附后。图6-1 类图

    【Java 代码】 //颜色类 class MyColor { private int red ,green, blue; public MyColor( ) { red = o; green = 0; blue = 0; } public MyColor(int red ,int green ,int blue) { this.red = red; this.green = green; this.blue = blue; } //其他方法略 public String toString( ) { return "Red: " + red + "\tGreen: " + green + "\tBlue " + blue; } } //调色板类 class Palette { public int number; / /颜色数 private (1)palette; //颜色表 public Palette( ) { number = 256; palette = new MyColor[number); } public Palette(MyColor[] palette ,int number) { (2)= number; (3)= palette; } //其他方法略 public String toString( ) { String str = ""; for (int i = 0; i < number; i++) { str +=i+ " : " + palette[i] + "\n"; } return str; } //绘图类 class Drawing { public (4) int COLORNUMBER = 16; public static void main(String[] args) { Palette palette; int red ,green ,blue; MyColor[] color = new MyColor[COLORNUMBER]; for (int i = 0; i < COLORNUMBER; i++) { red = (int) (Math.random( ) * 256); green = (int) (Math.random( ) * 256); blue = (int) (Math.random( ) * 256); color [i] = (5) (red ,green ,blue); } palette = new Palette(color ,COLORNUMBER); System.out.println(palette); } }


    正确答案:(1) MyColor[]
    (2) this.number
    (3) this.palette
    (4) static final
    (5) new MyColor

  • 第17题:

    在RGB彩色模型中,如果要产生黄色(Yellow),应是()颜色的混合。

    • A、Red+Green+Blue
    • B、Red+Green
    • C、Red+Blue
    • D、Green+Blue

    正确答案:B

  • 第18题:

    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

  • 第19题:

    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

  • 第20题:

    问答题
    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项。

  • 第21题:

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

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

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