Home / MCQ Bank / Computer
Computer Control Structures In R Programming Difficulty: Medium

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

Select the correct option to test your answer:

More Computer Questions

Which of the following is the smallest storage? What will be the output of the following C code? #include <stdio.h> void main() { char a = 'A'; char b = 'B'; int c = a + b % 3 - 3 * 2; printf("%d\n", c); } If a relationship has a cascade updates constraint, then if ________ in the parent table is changed, then the same change will automatically be made to any corresponding foreign key value. What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str="Steve Jobs founded the apple"; string str2 = str.substr (6, 4); unsigned pos = str.find("the"); string str3 = str.substr (pos); cout << str2 << ' ' << str3 << '\n'; return 0; } Which of the following draws plot on current graphics device?