71. Point out the wrong statement?
72. Which of the following R code can be used to avoid numeric problems such as taking the logarithm of a negative number?
73. debug() flags a function for . . . . . . . . mode in R mode.
74. You can check to see whether an R object is NULL with the . . . . . . . . function.
75. What will be the output of the following R expression?
> log(-2.3)
> log(-2.3)
76. Point out the correct statement?
77. What will be the output of the following R 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)
> 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)
78. A . . . . . . . . in R programming language can also contain numeric and alphabets along with special characters like dot and underline.
79. What will be the output of the following R code?
> nLL <- make.NegLogLik(normals, c(FALSE, 2))
> optimize(nLL, c(-1, 3))$minimum
> nLL <- make.NegLogLik(normals, c(FALSE, 2))
> optimize(nLL, c(-1, 3))$minimum
80. How do you create log linear models in R language?
Read More Section(Control Structures in R Programming)
Each Section contains maximum 100 MCQs question on Control Structures in R Programming. To get more questions visit other sections.