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

What will be the output of the following C++ code? #include <iostream> #include <complex> using namespace std; int main() { complex <double> cn(3.0, 4.0); auto cnj = conj(cn); cout<<"Conjugate of "<<real(cn)<<"+("<<imag(cn)<<")i is: "<<real(cnj)<<" +("<<imag(cnj)<<")i"<<endl; return 0; } Which of the following is machine independence program? Which is used to store firmware. What will be the ciphered text corresponding to plain text "ACT" if pigpen cipher is used for encryption? Which function is used to automatically vectorize?