JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
PHP interview questions part 18
PHP interview questions part 18
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following code will print NULL ?
A. Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5)
B. Array([2]=>two [3]=>three [4]=>four)
C. Array([1]=> 1)
D. Array([0]=>0 [5]=>5)
Show Correct Answer
Correct Answer is :
Array([2]=>two [3]=>three [4]=>four)
2. What will be the output of following code ? > f <- function(a, b) { + a^2 + } > f(2)
A. preg_match
B. preg_search
C. preg_find
D. preg_found
Show Correct Answer
Correct Answer is :
preg_match
3. What will be the output of following code snippet ? > paste("a", "b", sep = ":")
A. My name is Will Pitt I am great
B. My name is not Will Pitt I am great
C. My name is Will Pitt I am not great
D. My name is not Will Pitt I am not great
Show Correct Answer
Correct Answer is :
My name is Will Pitt I am not great
4. What will be the output of following code ? > f <- function(a, b) { + print(a) + print(b) + } > f(45)
A. preg_replace()
B. preg_find()
C. preg_find_replace()
D. preg_findre()
Show Correct Answer
Correct Answer is :
preg_replace()
5. R Commander is used to ___________ in R.
A. Hello! My name was Cameron Fox. tea?
B. Hello! My name is Cameron Fox. tea?
C. Hello! My name is Cameron Fox. Coffee?
D. Hello! My name was Cameron Fox. Coffee?
Show Correct Answer
Correct Answer is :
Hello! My name was Cameron Fox. Coffee?
6. Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N.
A. preg_destroy()
B. preg_split()
C. preg_unchain()
D. preg_divide()
Show Correct Answer
Correct Answer is :
preg_split()
7. How missing values and impossible values are represented in R language?
A. You like dogs. I hate dogs. We should marry.
B. Array([0]=>You like dogs. I hate dogs. We should marry.)
C. Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.)
D. Error
Show Correct Answer
Correct Answer is :
Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.)
8. CRAN package ecosystem has more than ______ packages.
A. preg_match
B. preg_match_all
C. preg_matchall
D. preg_split
Show Correct Answer
Correct Answer is :
preg_matchall
9. Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?
A. PHP 4.0
B. PHP 4.1
C. PHP 4.2
D. PHP 4.3
Show Correct Answer
Correct Answer is :
PHP 4.3
10. How many types of data structures does R language have?
A. Digital Network System
B. Domain Network System
C. Digital Name Systmem
D. Domain Name System
Show Correct Answer
Correct Answer is :
Domain Name System
11. __________ is the easiest method for reshaping the data before analysis.
A. checkdns()
B. checkdnsr()
C. checkdnsrr()
D. checkdnsa()
Show Correct Answer
Correct Answer is :
checkdnsrr()
12. ___________ function is used to apply an expression for a given dataset.
A. dns_get_record()
B. dns_record()
C. dnsrr_get_record()
D. dnsrr_record()
Show Correct Answer
Correct Answer is :
dns_get_record()
13. __________ package is used to speed up data frame management code.
A. getmx()
B. retrieve_mx()
C. getmxrr()
D. retrieve_mxrr()
Show Correct Answer
Correct Answer is :
getmxrr()
14. Which package can be integrated with dplyr for large fast tables?
A. 70
B. 80
C. 90
D. 100
Show Correct Answer
Correct Answer is :
80
15. In the base graphics system, which function is used to add elements to a plot?
A. getportname()
B. getservername()
C. getserverbyname()
D. getservbyname()
Show Correct Answer
Correct Answer is :
getservbyname()
16. What are the different types of sorting algorithms available in R language?
A. fsockopen(“www.nachi.com”, 80);
B. sockopen(80,”www.nachi.com”);
C. fsockopen(80,”www.nachi.com”);
D. sockopen(“www.nachi.com”, 80);
Show Correct Answer
Correct Answer is :
fsockopen(“www.nachi.com”, 80);
17. What is the command used to store R objects in a file?
A. mail_send()
B. send_mail()
C. mailrr()
D. mail()
Show Correct Answer
Correct Answer is :
mail()
18. ___________ can be used for storing the data for long-term.
A. 4
B. 5
C. 6
D. 7
Show Correct Answer
Correct Answer is :
5
19. MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets from _________ into R.
A. $mimemail->attachment(‘attachment.pdf’);
B. $mimemail=>attachment(‘attachment.pdf’);
C. $mimemail->addAttachment(‘attachment.pdf’);
D. $mimemail=>addAttachment(‘attachment.pdf’);
Show Correct Answer
Correct Answer is :
$mimemail->addAttachment(‘attachment.pdf’);
20. What will be the output of log (-5.8) when executed on R console?
A. PHP 4
B. PHP 5
C. PHP 5.2
D. PHP 5.3
Show Correct Answer
Correct Answer is :
PHP 5
Similar Interview Questions
Search for latest jobs
Find Jobs