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

Conditional Statements in Python

순위표

비주얼 스타일

옵션

템플릿 전환하기

자동 저장된 게임을 복구할까요?