A toy manufacturer produces the same toy in 4 different colors: red, blue, green, and yellow. The toy manufacturer has 4 production lines dedicated to the red version, 3 production lines dedicated to the blue version, 3 production lines dedicated to the green version, and 5 production lines dedicated to the yellow version. A toy has an equal chance of traveling down any production line. What is the probability that the toy will be red or blue?
a.1/5 b.4/15 c.7/15 d..4/5
b
NOT b. First figure out the total possible production lines that a toy could travel down. Then figure out how many of those lines are red or blue. Then the probability is the number of desired outcomes over the number of total outcomes. That should lead you to the answer.
Note: this is only true when all possibilities are equally likely.
Is this even suppose to be in computer science? this is math
probability/combinatorics is a pretty important aspect of CS..... as well as other maths like discrete math. CS is not just writing code.
Join our real-time social learning platform and learn together with your friends!