πŸ“Š R Programming
Q. What will be the output of the following R code?
> g <- function(x) {
+ a <- 3
+ x+a+y
+ ## 'y' is a free variable
+ }
> y <- 3
> g(2)
  • (A) 9
  • (B) 42
  • (C) 8
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 8

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
102
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate