Home / MCQ Bank / Computer
Computer Control Structures In Ruby

What is the use of else statement?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • When the if condition is false and if else condition is true then only it will get executed

Related Computer Questions

What is the maximum number of possible non zero values in an adjacency matrix of a simple graph with n vertices? Which of the following is true for the LSD radix sort? Which of the following values are zccepted by the float Property? What is the result of the following code snippet? class Parent { static void display() { System.out.println("Parent"); } } class Child extends Parent { public static void main(String[] args) { Child obj = new Child(); obj.display(); } } Which of the following is NOT a common data format used in Data Science projects?