What is the output of the given code? x=1 if x > 2 ...
View QuestionIf statement inside if statement is called Nested if statements.
a) True b) False Answer: a Explanation: Nested if means statement inside statement.
View Question
What is the output of the given code?
if 79>78
puts “True”.upcase
if 9>8
puts “True”.Upcase
if 7==7
puts “equal”.downcase
end
end
end
What is the output of the given code? if 79>78 puts "True".upcase ...
View Question
What is the output of the given code?
if 79>78
puts “True”.upcase
if 9>8
puts “True”.reverse
if 7==7
puts “equal”.downcase
end
end
end
What is the output of the given code? if 79>78 puts "True".upcase ...
View Question
What is the output of the given code?
if 11>2
puts “Eleven is greater than two”
end
print “You’r right”
What is the output of the given code? if 11>2 puts "Eleven is greater than ...
View Question
What is the output of the code?
if 11<2
print “Eleven is less than two”
end
print “11 is greater”
What is the output of the code? if 11<2 print "Eleven is less than ...
View Question
What is the output of the following?
if 1<2
print “one is less than two”
end
What is the output of the following? if 1<2 print "one is less than two"
View QuestionWhat error does the if condition gives if not terminated with end statement?
a) Syntax error b) Unexpected end c) Expecting keyword end d) All of the mentioned
View QuestionIf expression. The expression can be of which type?
If expression. The expression can be of which type? a) True b) Any number c) Any string d) All of ...
View Question
The following syntax is correct for if conditional statement.
if condition
code
end
The following syntax is correct for if conditional statement. if condition code ...
View Question