Home / MCQ Bank / Computer
Computer Best Practices And Code Conventions In Ruby Difficulty: Medium

What is the purpose of using constants in Ruby programming?

Select the correct option to test your answer:

More Computer Questions

Which of the following is not an example of non comparison sort? A self-relocating program is one which Which LINQ operator is used to perform a right outer join between two sequences based on matching keys? What will be the output of the following Java program? class Output { public static void main(String args[]) { int a = 1; int b = 2; int c = 3; a |= 4; b >>= 1; c <<= 1; a ^= c; System.out.println(a + " " + b + " " + c); } } What will be the output of the following C++ code? #include<iostream> using namespace std; int main() { int a = 5; int b = 5; auto check = [&a]() { a = 10; b = 10; } check(); cout<<"Value of a: "<<a<<endl; cout<<"Value of b: "<<b<<endl; return 0; }