JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
PHP interview questions part 4
PHP interview questions part 4
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is output of getOption(“defaultPackages”) in R studio?
A. Array ( [0] => peach )
B. Array ( [0] => apple [1] => mango [2] => peach )
C. Array ( [0] => apple [1] => mango )
D. Array ( [0] => peach [1] => pear [2] => orange )
Show Correct Answer
Correct Answer is :
Array ( [0] => peach [1] => pear [2] => orange )
2. What is the output of the following code? x <- c(3, 7, NA, 4, 7) y <- c(5, NA, 1, 2, 2) x + y
A. Error
B. Array ( [0] => apple [1] => mango [2] => peach )
C. Array ( [0] => apple [1] => mango )
D. Array ( [0] => pear [1] => orange )
Show Correct Answer
Correct Answer is :
Array ( [0] => apple [1] => mango )
3. R language is a dialect of which of the following languages?
A. 4hello2
B. 4
C. 2
D. 6
Show Correct Answer
Correct Answer is :
6
4. R language has superficial similarity with _________
A. Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA )
B. Array ( [0] => KA [2] => CA [4] => TA )
C. Array ( [1] => IA [3] => GA )
D. Array ( [1] => LA [3] => MA )
Show Correct Answer
Correct Answer is :
Array ( [0] => KA [2] => CA [4] => TA )
5. What is the mode of ‘a’ in the following code? a <- c(1,” a”, FALSE)
A. Polymorphism
B. Inheritance
C. Encapsulation
D. Abstraction
Show Correct Answer
Correct Answer is :
Encapsulation
6. What is the length of b? b <- 2:7
A. Abstraction
B. Polymorphism
C. Inheritance
D. Differential
Show Correct Answer
Correct Answer is :
Polymorphism
7. What is the mode of b in the following code? b <- c(TRUE, TRUE, 1)
A. class creation
B. object creation
C. object instantiation
D. class instantiation
Show Correct Answer
Correct Answer is :
class instantiation
8. What are the typeof(x) and mode(x) in the following syntax? x<-1:3
A. friendly
B. final
C. public
D. static
Show Correct Answer
Correct Answer is :
friendly
9. How many atomic vector types does R have?
A. $obj = new $foo;
B. $obj = new foo;
C. $obj = new foo ();
D. obj = new foo ();
Show Correct Answer
Correct Answer is :
$obj = new foo ();
10. What is the function to set row names for a data frame?
A. constant PI = “3.1415”;
B. const $PI = “3.1415”;
C. constant PI = ‘3.1415’;
D. const PI = ‘3.1415’;
Show Correct Answer
Correct Answer is :
const PI = ‘3.1415’;
11. A single element of a character vector is referred as ________
A. echo PI;
B. echo mathFunction->PI;
C. echo mathFunction::PI;
D. echo mathFunction=PI;
Show Correct Answer
Correct Answer is :
echo mathFunction::PI;
12. R files has an extension ______
A. $object->methodName();
B. object->methodName();
C. object::methodName();
D. $object::methodName();
Show Correct Answer
Correct Answer is :
$object->methodName();
13. If the code is stored in the external file, which of the following function is used to call them to a working directory?
A. Only ii)
B. Only iv)
C. i) and ii)
D. iii) and iv)
Show Correct Answer
Correct Answer is :
i) and ii)
14. Advanced programmers can write ______ code to manipulate R objects.
A. Only ii)
B. Only iv)
C. ii) and iv)
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
15. In ________ Insightful purchased the S language from Lucent for $2 million.
A. Abstract
B. Protected
C. Final
D. Static
Show Correct Answer
Correct Answer is :
Final
16. Functionality of R is divided into a number of __________
A. ii) and iii)
B. All of the mentioned
C. None of the mentioned
D. ii), iii) and iv)
Show Correct Answer
Correct Answer is :
All of the mentioned
17. Dataframes can be converted into a matrix by calling the following function data ______
A. classname()
B. _construct()
C. function _construct()
D. function __construct()
Show Correct Answer
Correct Answer is :
function __construct()
18. What would be the output of the following code? x <- (“a”, “b”) as.logical(x)
A. PHP 4
B. PHP 5
C. PHP 5.3
D. PHP 6
Show Correct Answer
Correct Answer is :
PHP 5
19. What is the output of the following command? a <- (“a” , “b”) mode(a)
A. obj_type()
B. type()
C. is_a()
D. is_obj()
Show Correct Answer
Correct Answer is :
is_a()
20. Which of the following is not an object of R?
A. extends
B. implements
C. inherit
D. include
Show Correct Answer
Correct Answer is :
inherit
Similar Interview Questions
Search for latest jobs
Find Jobs