1) What does print("Hello") do? a) Shows Hello on screen b) Gives error c) Saves Hello in a file d) None 2) In Python, what symbol is used for comments? a) // b) # c) * d) % 3) Which of these is NOT a Python data type? a) int b) float c) number d) str 4) What error happens here? a) SyntaxError b) ZeroDivisionError c) Runtime Error d) None 5) In Python, what do we call mistakes in code? a) Bugs b) Errors c) Debugging d) Spaghetti 6) Which function is used to get user input in Python 3? a) read() b) input() c) scan() d) gets() 7) Find the error: a) No error b) Missing : c) IndentationError d) Missing () 8) Which keyword is used to handle errors in Python? a) catch b) error c) try d) handle 9) Output? a) HiHiHi b) Hi 3 times in new lines c) Error d) 333 10) Which of these will cause an error? a) x = 10 b) y = "Hello" c) print(z) d) print(5+5) 11) In C, which header file is needed for printf? a) stdio.h b) conio.h c) math.h d) string.h 12) Which symbol is used for single-line comments in C? a) # b) // c) % d) -- 13) What happens here? a) Prints 0 b) Prints garbage value c) Error d) Nothing 14) Which operator is used for comparison in C? a) = b) == c) === d) := 15) What is the error? a) No error b) Missing " c) Missing ; d) Both b and c 16) In C, which function is used to read input? a) scan() b) scanf() c) input() d) get() 17) Output? a) 2.5 b) 2 c) 3 d) Error 18) Which of these is a valid variable name in C? a) 1num b) num_1 c) int d) for 19) What error will this cause? a) Prints 52 b) TypeError c) ValueError d) No error 20) In C, which loop always runs at least once? a) for b) while c) do...while d) None 21) Debugging means: a) Finding and fixing errors b) Writing comments c) Running fast code d) Printing output 22) In C, uninitialized variables contain: a) 0 b) Garbage value c) -1 d) None 23) In Python, what happens if you type print(2 + "2")? a) 4 b) 22 c) Error d) None 24) In C, what happens if you divide by 0? a) Prints 0 b) Garbage c) Compile-time error d) Runtime error 25) In Python, what error happens if you use the wrong indentation? a) Runtime error b) IndentationError c) SyntaxError d) Logical error
0%
DEBUGGING QUIZ(TECHTONIC2025)
共有
共有
共有
2301721058009
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
クイズ
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?