PHP interview questions part 14

PHP interview questions part 14

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

Total Questions: 20

1. ________ add new variables/columns or transform existing variables

Correct Answer is : Case 4 was executed

2. _________ extract a subset of rows from a data frame based on logical conditions.

Correct Answer is : Time To Live King Size

3. dplyr can be integrated with the ________ package for large fast tables

Correct Answer is : Error

4. _________ is an indication that a fatal problem has occurred and execution of the function stops

Correct Answer is : I am here to spoil this code

5. What would be the value of following expression ? log(-1)

Correct Answer is : Error

6. Warnings are generated by the _________ function

Correct Answer is : 0

7. What will be the output of the following code ? > printmessage <- function(x) { + if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage(1)

Correct Answer is : No Output

8. To get the current date, the _______ function will return a Date object which can be converted to a different class if necessary.

Correct Answer is : Not True

9. Which of the following code represents internal representation of a Date object ?

Correct Answer is : 100

10. What would be the output of the following code ? > x <- as.Date("1970-01-01") > x

Correct Answer is : ERROR

11. What would be the output of the following code ? > printmessage <- function(x) { + if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage(NA)

Correct Answer is : Hello World

12. What would be the value of following expression ? > log(-2.3)

Correct Answer is : This WorksThis Too Seems To Work

13. What will be the output of the following code ? > printmessage <- function(x) { + if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage(1)

Correct Answer is : 5

14. What will be the value of following expression ?

Correct Answer is : $num

15. What would be the output of the following code ? > printmessage2 <- function(x) { + if(is.na(x)) + print("x is a missing value!") + else if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage2(NA)

Correct Answer is : Returned value from the function : 30

16. What would be the output of the following code ? > printmessage <- function(x) { + if(x > 0) + print("x is greater than zero") + else + print("x is less than or equal to zero") + invisible(x) + } > printmessage(NA)

Correct Answer is : Have a good night!

17. __________ prints out the function call stack after an error occurs.

Correct Answer is : @yahoo.com

18. Which of the following is primary tool for debugging?

Correct Answer is : $_GET & $_SET

19. ________ allows you to insert debugging code into a function a specific places

Correct Answer is : cross-site scripting

20. _______ allows you to modify the error behavior so that you can browse the function call stack

Correct Answer is : everyone

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon