ExamVeda
Login
Home
61
What is the output of the given code?
a=[1,2,3,4,5]
b=[1,2,3,4,5]
if a==b
    print "Equal"
else
    print "Not equal"
end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
62
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
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
63
What is the output of the given code?
a=["hey", "ruby", "language"]
b=["hey", "language", "ruby"]
if a==b
    print "Equal"
else
    print "Not equal"
end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
64
What is the output of the given code?
string_array = ["a","e","i","o","u"]
boolean_array = ["True","False"]
puts string_array[3]
puts boolean_array
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
What is the output of the given code?
a=[1,2,3,4,5]
b=[1,2,4,6,8]
if a[3]==b[2]
    print "Equal"
end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following?
array = [100, 200, 300, 400, 500]
print array[5]
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
67
Array of arrays are called multidimensional arrays.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
68
What is the output of the given code?
a=["hey", "ruby", "language"]
b=[1, 2, 3]
puts b[1]
puts a[2]
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
What is the output of the given code?
string_array = ["a","e","i","o","u"]
print string_array
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
What is the output of the given code?
string_array = ["a","e","i","o","u"]
print string_array
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board