counter = 1
while counter < 11
puts counter
counter+=1
endSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
61
Questions
3/4
Page
Pick an option on a question to see the right answer and solution.
counter = 1
while counter < 11
puts counter
counter+=1
endSelect an option to see the answer and solution.
a=10
b=9
if(a>b)
print ("a greater than b")
else
print "Not greater"
endSelect an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
if(a==10 && b=9)
print "true"
else
print "false"
endSelect an option to see the answer and solution.
test_1 = 17 > 16
puts(test_1)
test_2 = 21 <= 30
puts(test_2)
test_3 = 9 >= 9
puts(test_3)
test_4 = -11 > 4
puts(test_4)Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
a= 5
b=10
while a <10 && b<20
puts a-b
a+=2
b+=2
endSelect an option to see the answer and solution.
counter = 100
while counter > 0
puts counter
counter-=25
endSelect an option to see the answer and solution.
boolean_1 = !true
puts boolean_1
boolean_2 = !true && !true
puts boolean_2Select an option to see the answer and solution.
a="string"
b="strings"
if(a==b)
print ("a and b are same")
else
print "Not same"
endSelect an option to see the answer and solution.
a = 5
b=10
while a <10 && b<20
puts a*b
a+=2
b+=2
endSelect an option to see the answer and solution.
counter=1
if counter<=5
puts (counter)
counter=counter+1Select an option to see the answer and solution.
a=9!=10Select an option to see the answer and solution.
boolean_1 = false || -10 > -9
puts boolean_1Select an option to see the answer and solution.
boolean_1 = (3 < 4 || false) && (false || true)
puts boolean_1Select an option to see the answer and solution.