1) Which of the following is the correct extension of the Python file? a) .py b) .python c) .pyn 2) Which of the following character is used to give single-line comments in Python? a) // b) # c) >>> 3) Amongst which of the following is / are the Numeric Types of Data Types? a) int, float, complex b) str,num,int c) num, int, dict 4) The type() function can be used to get the data type of any object. a) True b) False 5) What is the name of the operator ** in Python? a) Floor division b) Exponentiation c) Modulus 6) Which arithmetic operators can we NOT use with strings? a) * b) + c) - 7) Python is case sensitive a) True b) False 8) Which of the following statements assigns the value 25 to the variable x in Python: a) x << 25 b) x : 25 c) x=25 9) If x=3.123, then int(x) will give ? a) 3 b) 1 c) 3.1 10) Which of the following is not the mode of interacting with python? a) Hybrid b) interactive c) script 11) What will be the data type of the following variable? A = '101' a) str b) int c) float 12) Which of the following assignment will return error? a) a = b = c = 89 b) a=10, b=6 c) a,b,c=12,13,14 13) Variables whose values can be changed after they are created and assigned are called __________________ a) mutable b) immutable c) changeable 14) Which method is used to find the memory location of variable? a) id b) add c) find 15) How to output the string “May the odds favor you” in Python? a) print(“May the odds favor you”) b) echo(“May the odds favor you”) c) System.out(“May the odds favor you”)
0%
Python basics
共有
共有
共有
Biya
さんの投稿です
10-18
Computer
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
ゲームショウ・クイズ
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?