1) What keyword starts a conditional statement? a) if b) for c) while d) def 2) Which keyword is used for alternatives? a) else b) elif c) then d) end 3) What does 'elif' stand for? a) else if b) else c) if else d) end if 4) How do you end a conditional block? a) No end b) end c) stop d) finish 5) What symbol is used for equality? a) == b) = c) === d) != 6) Which operator checks inequality? a) != b) == c) <> d) <=> 7) What does 'and' do in conditions? a) Both true b) Either true c) None true d) Always false 8) What does 'or' do in conditions? a) Either true b) Both true c) None true d) Always false 9) Which is a valid condition? a) x > 5 b) x => 5 c) x >< 5 d) x <> 5 10) What is the result of 'if False:'? a) No execution b) Execute c) Error d) Loop 11) What is the result of 'if True:'? a) Execute b) No execution c) Error d) Loop 12) What is the default condition? a) else b) elif c) if d) then

લીડરબોર્ડ

દૃશ્યમાન શૈલી

વિકલ્પો

ટેમ્પલેટ બદલો

આપોઆપ સંગ્રહ થયેલ છે: ?