PHP Interview Questions - 36 | Snaprecruit.com
PHP Interview Questions - 36 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
PHP interview questions part 36
PHP interview questions part 36
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What would be the output of the following code ? > x <- matrix(1:6, 2, 3) > x[1, 2]
A. $mysqli=select_db(‘databasename’);
B. mysqli=select_db(‘databasename’);
C. mysqli->select_db(‘databasename’);
D. $mysqli->select_db(‘databasename’);
Show Correct Answer
Correct Answer is :
$mysqli->select_db(‘databasename’);
2. What would be the output of the following code ? > x <- matrix(1:6, 2, 3) > x[1, ]
A. connect_errno()
B. connect_error()
C. mysqli_connect_errno()
D. mysqli_connect_error()
Show Correct Answer
Correct Answer is :
mysqli_connect_errno()
3. Which of the following code extracts the second column for the following matrix ? > x <- matrix(1:6, 2, 3)
A. errno()
B. errnumber()
C. errorno()
D. errornumber()
Show Correct Answer
Correct Answer is :
errno()
4. What would be the output of the following code ? > x <- matrix(1:6, 2, 3) > x[1, , drop = FALSE]
A. TRUE
B. FALSE
C. Empty String
D. 0
Show Correct Answer
Correct Answer is :
Empty String
5. .What would be the output of the following code ? > x <- list(foo = 1:4, bar = 0.6) > x
A. #include ‘filename’;
B. include ‘filename’;
C. @include ‘filename’;
D. #include ;
Show Correct Answer
Correct Answer is :
include ‘filename’;
6. Which of the following extracts first element from the following list ? > x <- list(foo = 1:4, bar = 0.6)
A. query()
B. send_query()
C. sendquery()
D. query_send()
Show Correct Answer
Correct Answer is :
query()
7. What would be the output of the following code ? > x <- list(foo = 1:4, bar = 0.6, baz = "hello") > name <- "foo" > x$name
A. destroy()
B. remover()
C. alloc()
D. free()
Show Correct Answer
Correct Answer is :
free()
8. What would be the output of the following code ? > x <- list(foo = 1:4, bar = 0.6, baz = "hello") > name <- "foo" > x[[name]]
A. get_array() and get_row()
B. get_array() and get_column()
C. fetch_array() and fetch_row()
D. fetch_array() and fetch_column()
Show Correct Answer
Correct Answer is :
fetch_array() and fetch_row()
9. What would be the output of the following code ? > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81)) > x[[c(1, 3)]]
A. num_rows()
B. affected_rows()
C. changed_rows()
D. new_rows()
Show Correct Answer
Correct Answer is :
affected_rows()
10. What would be the output of the following code ? > x <- list(aardvark = 1:5) > x$a
A. MySQL 4.0
B. MySQL 4.1
C. MySQL 4.2
D. MySQL 4.3
Show Correct Answer
Correct Answer is :
MySQL 4.1
11. Which of the following code extracts 1st element of the 2nd element ? > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81))
A. bind_param()
B. bind_result()
C. bound_param()
D. bound_result()
Show Correct Answer
Correct Answer is :
bind_param()
12. What would be the output of the following code ? > x <- list(aardvark = 1:5) > x[["a", exact = FALSE]]
A. end()
B. finish()
C. final()
D. close()
Show Correct Answer
Correct Answer is :
close()
13. .What would be the output of the following code ? > x <- c(1, 2, NA, 4, NA, 5) > bad <- is.na(x) > print(bad)
A. get_row()
B. fetch_row()
C. fetch()
D. row()
Show Correct Answer
Correct Answer is :
fetch()
14. Which of the following is used for reading in saved workspaces ?
A. commit()
B. undo()
C. back()
D. rollback()
Show Correct Answer
Correct Answer is :
rollback()
15. ________ is used for outputting a textual representation of an R object
A. 8
B. 9
C. 10
D. 11
Show Correct Answer
Correct Answer is :
9
16. Which of the following argument denotes if the file has a header line ?
A. 8
B. 9
C. 10
D. 11
Show Correct Answer
Correct Answer is :
11
17. Which of the following statement would read file “foo.txt” ?
A. DateTime::format()
B. DateTime::modify()
C. DateTime::setTime()
D. DateTime::setDate()
Show Correct Answer
Correct Answer is :
DateTime::format()
18. Which of the following function is identical to read.table ?
A. $date = get_Class(DateTime);
B. $date = class DateTime;
C. $date = new DateTime();
D. $date = new class DateTime();
Show Correct Answer
Correct Answer is :
$date = new DateTime();
19. Which of the following code would read 100 rows ?
A. Sunday, February 24th 2008
B. 39502
C. Sunday, 24 02 2008
D. Sunday, 24th February 2008
Show Correct Answer
Correct Answer is :
Sunday, February 24th 2008
20. What is the result of the following code ? > y <- data.frame(a = 1, b = "a") > dput(y)
A. date_set_timezone(‘Europe/London’);
B. date_default_timezone_set(‘Europe/London’);
C. date_set_default_timezone(‘Europe/London’);
D. date_default_timezone(‘Europe/London’);
Show Correct Answer
Correct Answer is :
date_default_timezone_set(‘Europe/London’);
Similar Interview Questions
Search for latest jobs
Find Jobs