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

What is the output of the given code? var = 1 print "1 -- Value is set\n" if var print "2 -- Value is set\n" unless var var = false print "3 -- Value is set\n" unless var

Select the correct option to test your answer:

More Computer Questions

How many different shapes does maintenance of AA-Tree need to consider? Which key deletes the character to the left of the cursor? What will be the output of the following Java program? import java.util.*; public class genericstack <E> { Stack <E> stk = new Stack <E>(); public void push(E obj) { stk.push(obj); } public E pop() { E obj = stk.pop(); return obj; } } class Output { public static void main(String args[]) { genericstack <Integer> gs = new genericstack<Integer>(); gs.push(36); System.out.println(gs.pop()); } } Which of the following property defines in a shorthand form the width, style, and color for the top border of an element? What is the utility of Tally Vault Password