1) Operators used to compare values such as: ==, >, <, <=, >=, != a) Relational operator b) Logical operator 2) Operators which result in either true or false such as: or and not a) Relational operator b) Logical operator 3) Combines else and if, allows you to add more than one a) If statement b) Elif statement 4) Selection/decision statement used to choose the code blocks to run a) If-else statement b) If statement 5) A reference to a location in memory for data storage a) Variable b) Data type 6) Can we write if/else into one line in python? a) Yes b) No c) if/else not used in python d) None of the above 7) What is the result of the condition passed in the if block in Python? a) “Boolean Output” b) Numerical Output” c) ”Both based on the scenario” d) ”None of these” 8) What keyword would you use to add an alternative condition to an if statement? a) else if b) elseif c) elif d) None of the above 9) Which one of the following is a invalid Python if statement : a) if a>=2 : b) if (a >= 2): c) if (a => 22): d) none of the above: 10) Does python have switch case statement? a) True b) False c) Python has switch statement but we can not use it. d) None of the above
0%
Python If statements
共有
共有
共有
Nn87
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
ゲームショウ・クイズ
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?