1. Which of the following code create n samples of size “size” with probability prob from the binomial ? a) z <- rinom(n,size,prob) b) z <- rbinom(n,size,prob) c) z <- binom(n,size,prob) d) all of the mentioned AnswerAnswer: b [Reason:] To use the rbinom() function, you need to define three parameters. 2. Which of the following…