ExamVeda
Login
Home
91
What is the output of the given code?
counter = 1
while counter < 11
  puts counter
  counter = counter + 1
end
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
92
What is the output of the given code?
counter = true
while counter !=false
  puts counter
end
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
93
What is the output of the given code?
i = 0
while i < 5
  puts i
   i=(i+1)**2
end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
94
What is the output of the given code?
a=5
b=15
while a&&b
puts a+b
end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
95
What is the output of the given code?
a=5
b=15
while b>a
puts a*(b-a)
while a>b
  a+=1
  b-=1
end
end
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
96
What is the output of the given code?
i = 3
while i > 0 do
  print i
  i -= 1
end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
97
What is the output of the given code?
i = 50
while i > 25 do
  print 50/i
  i -= 1
end
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
98
What is the output of the given code?
a = 5
b=10
while a<b do
  puts a*b
  a+=2
  b-=2
  end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
99
What is the output of the given code?
i = 50 
j=55
while i > 25 && j>35 do
  puts 50*j/i
  i -= 1
  j-=2
end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
100
What is the output of the given code?
i = 50 
j=55
while i > 25 && i*j<100 do
  puts (50*j)/i
  i -= 1
  j-=2
end
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board