Home / MCQ Bank / Computer
Computer Arrays, Hashes And Strings In Ruby

What will be the output of the following? array1 = [0,0,0] array2 = [0,0,0] if array1 == array2 print "They are equal" else print "Not equal" end

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • They are equal

Related Computer Questions

Which of the following queries modifies fields not records? What is name mangling in C++? The free() function frees the memory state pointed to by a pointer and returns ______ What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { public: virtual A(){ cout<<"A's Constructor\n"; } }; class B: public A { public: A(){ cout<<"Present inside the class B\n"; } }; int main(int argc, char const *argv[]) { A a; return 0; } Which of the following is a global object for a new worker?