ExamVeda
Login
Home
51
What does the **= assignment operator do?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
52
What is the output of the given code?
 a= 5
b=10
while a <10 && b<20
  puts a-b
  a+=2
  b+=2
  end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
53
What is the output of the given code?
counter = 100
while counter > 0
  puts counter
  counter-=25
  end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
54
What will be the output of the given code?
 boolean_1 = !true
puts boolean_1  
boolean_2 = !true && !true
puts boolean_2
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
55
What is the output of the given code?
a="string"
b="strings"
if(a==b)
    print ("a and b are same")
else 
    print "Not same"
end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
56
What is the output of the given code?
a = 5
b=10
while a <10 && b<20
  puts a*b
  a+=2
  b+=2
  end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
57
What is the output of the given code?
counter=1
if counter<=5
    puts (counter)
    counter=counter+1
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
58
What will the following code evaluate to?
a=9!=10
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
59
What will be the output of the given code?
 boolean_1 = false || -10 > -9
puts boolean_1
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
60
What will be the output of the given code?
 boolean_1 = (3 < 4 || false) && (false || true)
puts boolean_1
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board