R PROGRAMMING QUIZ DESCRIPTION

What will be output for the following code?
print(mean(25:82))

  • 1526

  • 53.5

  •  50.5

  • 55

Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?
 

  • f.tests ()

  •  l.tests ()

  • t.tests ()

  • p.tests ()

What will be output for the following code?
paste("a", "b", se = ":")

 

  • a+b

  • a:b

  •  a-b

  • None of the above
     

Command lines entered at the console are limited to about ________ bytes

  • 4095
     

  •  4096
     

  •  4097
     


  • 4098

Which function is preferred over sapply as vapply allows the programmer to specific the output type?

  • Lapply

  • Japply

  • Vapply

  • Zapply

How will you check if an element is present in a vector?

  • Match()

  • Dismatch()

  • Mismatch()

  • Search()

Which one is true about R packages ?

 

(a) the fundamental unit of shareable code (b) They are stored under a directory called "library" in the R environment (c) A collection of R functions, c

  • a  c d b

  • a c b d

  • D b a c

  • B d a c

Which of the following is true about R?

  • R is a well-developed, simple and effective programming language

  • R has an effective data handling and storage facility

  • R provides a large, coherent and integrated collection of tools for data analysis.

  • All of the above

Who created R?

  • Dennis Ritchie
     


  •     John Chambers
     


  •     jarne Stroustrup
        


  •     Ross Ihaka

R is an__________programming language?

  • Closed source
     


  • GPL
     


  • Open source
     


  • Definite source

In R studio, Scripts will run on ___________________

  • Script editors
        

  •     Console
        

  •  Terminal
       

  • GCC compiler

Which of the following finds the maximum value in the vector x

  • rm(x)
        


  •     all(x)
       


  •     max(x)
     


  •     maximum(x)

Predictive analysis is the branch of __________analysis?

  • Advanced
     

  •  Core
     

  •  Both the above

A brief description for Python is....

  • Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packa

  • Python is used to create databases and store information for apps, and uses clauses like SELECT and CREATE TABLE

  • Python is used to animate webpages, make drawing and animations, make simple games, and has 6 primitives.

  • none of the above

How many steps does the predictive analysis process contained?

  • 5

  • 6

  • 7

  • 8

You can check to see whether an R object is NULL with the _________ function.

  • is.null()

  • is.nullobj()

  • null()

  • as.nullobj()

In the base graphics system, which function is used to add elements to a plot?

  • Boxplot()

  •  Text()

  • Treat()

  •  Both A and B

R was named partly after the first names of____R authors?

  • 1

  • 2

  • 3

  • 4

_________code is used for scatter plot in R.
 

  • scatter.plain()
       

  •   scatter()
        

  • plot()
       

  • None of these

R language is a dialect of which of the following languages?

  • s

  • c

  • sas

  • matlab

_________code is used to run linear regression model in R.
    


  • linear.model()
     

  • sum()
     

  •   lm()
       

  •    None of the above

R is an interpreted language so it can access through_____________?

  • Disk operating system
     


  • User interface operating system
     

  • Operating system
     

  • Command line interpreter

R was created by?

  • Ross Ihaka

  • Robert Gentleman

  • Both A and B

  • Ross Gentleman

R is free software distributed under a GNU-style copy left, and an official part of the GNU project called?

  • GNU A

  • GNU S

  •  GNU L

  • GNU R

R files has an extension _____.

  • S

  • RP

  • R

  • SP

R was named partly after the first names of____R authors?

  • One
     


  •  Two
     


  • Three
     


  • Four

Many quantitative analysts use R as their____tool?

  • Leading tool
     

  • Programming tool
     

  • Both the above

______command is used to exit R programming?
 

  • quit()
       


  •     qu()
       


  •     exit
        


  •     None of these

R allows integration with the procedures written in the?

  • C

  • Ruby

  • Java

  • Basic

_________ function is used to watch for all available packages in library

  • lib()

  • fun.lib()

  • libr()

  • library