Q. Which of the following R code generate a sequence of integers from 1 to 10?

  • (A) > for(i in 1:9) { + print(i) + } [1]
  • (B) > for(i in 0:9) { + print(i) + } [1]
  • (C) > for(i in 1:10) { + print(i) + } [1]
  • (D) > for(i in 2:50) { + print("i") + } [1]
πŸ’¬ Discuss
βœ… Correct Answer: (C) > for(i in 1:10) { + print(i) + } [1]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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