What is the output of the given code? counter=1 if counter<=5 puts (counter) ...
View Question
What is the output of the given code?
if(a==10 && b=9)
print “true”
else
print “false”
end
What is the output of the given code? if(a==10 && b=9) print "true" else
View QuestionWhich of the following are used for comparison?
a) Equal to b) Not equal to c) Less than or greater than d) All of ...
View Question
What is the output of the given code?
a=10
b=9
if(a>b)
print (“a greater than b”)
else
print “Not greater”
end
What is the output of the given code? a=10 b=9 if(a>b) print ("a greater than b") else ...
View QuestionAssignment operator is also known as relational operator.
a) True b) False Answer: a Explanation: Assignment operator is used for assigning a value.
View Question
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
What is the output of the given code? a="string" b="strings" if(a==b) print ("a and ...
View Question
What is the output of the given code?
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)
What is the output of the given code? test_1 = 17 > 16 puts(test_1) test_2 = 21 <= ...
View Question
What will the following code evaluate to?
a=9!=10
What will the following code evaluate to? a=9!=10 a) True b) False c) Syntax error d) ...
View QuestionThe ‘=’ is used for assigning value to variable?
a) True b) False Answer: a Explanation: The ‘=’ is known as assignment operator.
View QuestionThe == ‘is equal to’ is known as relational operator.
a) True b) False Answer: a Explanation: The == is used to compare two things are equal or ...
View Question