Home / MCQ Bank / Computer
Computer Control Structures In R Programming

In R, what is the purpose of the if-else statement?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • To execute a block of code if a condition is true, otherwise execute another block of code

Related Computer Questions

What is the name of the system which deals with the running of the actual computer and not with the programming problems? What is the purpose of the 'std::unexpected' function in C++ exception handling? What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { enum channel {star, sony, zee}; enum symbol {hash, star}; int i = 0; for (i = star; i <= zee; i++) { printf("%d ", i); } return 0; } In recursion, the condition for which the function will stop calling itself is ______ Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?