JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
PHP interview questions part 35
PHP interview questions part 35
Back
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)
A. 2
B. 3
C. 0
D. 1
Show Correct Answer
Correct Answer is :
3
2. ________ generate random Normal variates with a given mean and standard deviation
A. 0
B. infinite loop
C. 1
D. 1
Show Correct Answer
Correct Answer is :
1
3. ______ evaluate the cumulative distribution function for a Normal distribution
A. hello
B. infinite loop
C. hihello
D. error
Show Correct Answer
Correct Answer is :
hello
4. _______ generate random Poisson variates with a given rate
A. Hi is printed 8 times, hello 7 times and then hi 2 times
B. Hi is printed 10 times, hello 7 times
C. Hi is printed once, hello 7 times
D. Hi is printed once, hello 7 times and then hi 2 times
Show Correct Answer
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 ?
A. hello
B. infinite loop
C. hihello
D. error
Show Correct Answer
Correct Answer is :
infinite loop
6. _________ is the most common probability distribution to work with.
A. hello
B. infinite loop
C. hihello
D. error
Show Correct Answer
Correct Answer is :
infinite loop
7. What will be the output of the following code ? > x <- rnorm(10) > x
A. 4hello4hello4hello4hello4hello…..infinite
B. 5hello5hello5hello5hello5hello…..infinite
C. no output
D. error
Show Correct Answer
Correct Answer is :
4hello4hello4hello4hello4hello…..infinite
8. What will be the output of the following code ? > x <- rnorm(10) > summary(x)
A. 5
B. 555555555…infinitely
C. 54321
D. error
Show Correct Answer
Correct Answer is :
555555555…infinitely
9. What will be the output of the following code ? > pnorm(2)
A. 54321111111….infinitely
B. 555555555…infinitely
C. 54321
D. 5
Show Correct Answer
Correct Answer is :
54321111111….infinitely
10. _________ ensures reproducibility of the sequence of random numbers.
A. 1234567891011121314….infinitely
B. 01234567891011121314…infinitely
C. 1
D. 0
Show Correct Answer
Correct Answer is :
1234567891011121314….infinitely
11. 5 Normal random numbers can be generated with rnorm() by setting seed value to :
A. 1234567891011121314….infinitely
B. 01234567891011121314…infinitely
C. no output
D. error
Show Correct Answer
Correct Answer is :
no output
12. _______ function is used to simulate binary random variables.
A. 00000000000000000000….infinitely
B. -1-1-1-1-1-1-1-1-1-1…infinitely
C. no output
D. error
Show Correct Answer
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)
A. 210
B. 10
C. no output
D. infinite loop
Show Correct Answer
Correct Answer is :
210
14. __________ distribution is commonly used to model data that come in the form of counts.
A. 210
B. 10
C. no output
D. infinite loop
Show Correct Answer
Correct Answer is :
infinite loop
15. What will be the output of the following code ? > rpois(10, 1)
A. Oracle Database
B. SQL
C. SQL+
D. MySQL
Show Correct Answer
Correct Answer is :
MySQL
16. Which of the following code represents count with mean of 2 ?
A. MySQL
B. mysql
C. mysqli
D. mysqly
Show Correct Answer
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)
A. extension=php_mysqli.dll
B. extension=mysql.dll
C. extension=php_mysqli.dl
D. extension=mysqli.dl
Show Correct Answer
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")
A. PHP 5.0
B. PHP 5.1
C. PHP 5.2
D. PHP 5.3
Show Correct Answer
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")
A. CREATE TABLE table_name (column_name column_type);
B. CREATE table_name (column_type column_name);
C. CREATE table_name (column_name column_type);
D. CREATE TABLE table_name (column_type column_name);
Show Correct Answer
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)]
A. mysqli = new mysqli()
B. $mysqli = new mysqli()
C. $mysqli->new.mysqli()
D. mysqli->new.mysqli()
Show Correct Answer
Correct Answer is :
$mysqli = new mysqli()
Similar Interview Questions
Search for latest jobs
Find Jobs