Home / MCQ Bank / Computer
Computer Control Structures In Ruby Difficulty: Medium

What is the keyword used to define a conditional statement in Ruby?

Select the correct option to test your answer:

More Computer Questions

Before printing a datasheet, you can use ________ to determine whether to change the page orientation from portrait to vertical orientation. What will be the output of the following Java code snippet? public class Demo { public static void main(String[] args) { Map sampleMap = new TreeMap (); sampleMap.put(1, null); sampleMap.put(5, null); sampleMap.put(3, null); sampleMap.put(2, null); sampleMap.put(4, null); System.out.println(sampleMap); } } Consider the following program written in Java. class Test{ public static void main(String args[]){ int x=7; if(x==2); // Note the semicolon System.out.println("NumberSeven"); System.out.println("NotSeven"); } } What would the output of the program be? Which emerging trend in data science focuses on the ethical and responsible use of data and algorithms? What will be the output of the following C code? #include <stdio.h> int main() { char *a = {"p", "r", "o", "g", "r", "a", "m"}; printf("%s", a); }