PHP interview questions part 35

PHP interview questions part 35

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What will be the output of following code ? > g <- function(x) { + a <- 3 + x+a+y + ## 'y' is a free variable + } > y <- 3 > g(2)

Correct Answer is : 3

2. ________ generate random Normal variates with a given mean and standard deviation

Correct Answer is : 1

3. ______ evaluate the cumulative distribution function for a Normal distribution

Correct Answer is : hello

4. _______ generate random Poisson variates with a given rate

Correct Answer is : Hi is printed once, hello 7 times and then hi 2 times

5. Which of the following evaluate the Normal probability density (with a given mean/SD) at a point ?

Correct Answer is : infinite loop

6. _________ is the most common probability distribution to work with.

Correct Answer is : infinite loop

7. What will be the output of the following code ? > x <- rnorm(10) > x

Correct Answer is : 4hello4hello4hello4hello4hello…..infinite

8. What will be the output of the following code ? > x <- rnorm(10) > summary(x)

Correct Answer is : 555555555…infinitely

9. What will be the output of the following code ? > pnorm(2)

Correct Answer is : 54321111111….infinitely

10. _________ ensures reproducibility of the sequence of random numbers.

Correct Answer is : 1234567891011121314….infinitely

11. 5 Normal random numbers can be generated with rnorm() by setting seed value to :

Correct Answer is : no output

12. _______ function is used to simulate binary random variables.

Correct Answer is : 00000000000000000000….infinitely

13. What will be the output of the following code > > set.seed(10) > x <- rbinom(100, 1, 0.5) > str(x)

Correct Answer is : 210

14. __________ distribution is commonly used to model data that come in the form of counts.

Correct Answer is : infinite loop

15. What will be the output of the following code ? > rpois(10, 1)

Correct Answer is : MySQL

16. Which of the following code represents count with mean of 2 ?

Correct Answer is : mysqli

17. What will be the output of the following code ? > set.seed(20) > x <- rnorm(100) > e <- rnorm(100, 0, 2) > y <- 0.5 + 2 * x + e > summary(y)

Correct Answer is : extension=php_mysqli.dll

18. Which of the following extracts first element from the following vector ? > x <- c("a", "b", "c", "c", "d", "a")

Correct Answer is : PHP 5.3

19. Which of the following extracts first four element from the following vector ? > x <- c("a", "b", "c", "c", "d", "a")

Correct Answer is : CREATE TABLE table_name (column_name column_type);

20. What would be the output of the following code ? > x <- c("a", "b", "c", "c", "d", "a") > x[c(1, 3, 4)]

Correct Answer is : $mysqli = new mysqli()

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon