Q. What is the output of the following R code: for (i in 1:5) { if (i %% 2 == 0) { print(i) } }

  • (A) 2
  • (B) 4
  • (C) 2, 4
  • (D) 1, 3, 5
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2, 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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