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
0%
Conditional Statements in Python
共有
共有
共有
Yousaf3
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
クイズ
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?