Home / MCQ Bank / Computer
Computer Blocks And Procs In Ruby Difficulty: Medium

What is a proc in Ruby?

Select the correct option to test your answer:

More Computer Questions

What will be the chromatic index for an empty graph having n vertices? Which of the following is not a fibonnaci number? What will be the output of the following Java code? import java.util.*; class hashtable { public static void main(String args[]) { Hashtable obj = new Hashtable(); obj.put("A", new Integer(3)); obj.put("B", new Integer(2)); obj.put("C", new Integer(8)); System.out.print(obj.contains(new Integer(5))); } } Which of the printers used in conjunction with computers uses dry ink powder? Determine Output: void main() { int i = abc(10); printf("%d", --i); } int abc(int i) { return(i++); }