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
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม