Home / MCQ Bank / Computer
Computer Data Types And Variables In Ruby

Which of the following is the correct way to define a variable in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • var_name = value

Related Computer Questions

Which of the following function can be used to terminate the main function from another function safely? The if..else statement can be replaced by which operator? What does the following form define? Protocol://HostName/FilePath?Query What will be the output of the following Java code? class conversion { public static void main(String args[]) { double a = 295.04; int b = 300; byte c = (byte) a; byte d = (byte) b; System.out.println(c + " " + d); } } Which Network topology needs HUB for its working?