PHP interview questions part 36

PHP interview questions part 36

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]

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, ]

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)

Correct Answer is : errno()

4. What would be the output of the following code ? > x <- matrix(1:6, 2, 3) > x[1, , drop = FALSE]

Correct Answer is : Empty String

5. .What would be the output of the following code ? > x <- list(foo = 1:4, bar = 0.6) > x

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)

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

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]]

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)]]

Correct Answer is : affected_rows()

10. What would be the output of the following code ? > x <- list(aardvark = 1:5) > x$a

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))

Correct Answer is : bind_param()

12. What would be the output of the following code ? > x <- list(aardvark = 1:5) > x[["a", exact = FALSE]]

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)

Correct Answer is : fetch()

14. Which of the following is used for reading in saved workspaces ?

Correct Answer is : rollback()

15. ________ is used for outputting a textual representation of an R object

Correct Answer is : 9

16. Which of the following argument denotes if the file has a header line ?

Correct Answer is : 11

17. Which of the following statement would read file “foo.txt” ?

Correct Answer is : DateTime::format()

18. Which of the following function is identical to read.table ?

Correct Answer is : $date = new DateTime();

19. Which of the following code would read 100 rows ?

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)

Correct Answer is : date_default_timezone_set(‘Europe/London’);

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon