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 代码
删除
恢复自动保存:
?