1) What type of loop is a while loop? a) Condition controlled b) Count controlled 2) What is the value of x? a) 101 b) 99 c) 100 d) None of the above, it's an infinite loop 3) What is the output of this if statement? a) True b) False 4) In programming, what is iteration? a) The repetition of steps within a program b) A decision point in a program c) The order in which instructions are carried out d) Testing a program to make sure it works 5) Which two statements are used to implement iteration? a) IF and WHILE b) FOR and WHILE c) ELSE and WHILE d) IF and ELSE 6) Which of the following symbols is used in Python to mean "Not equal to"? a) == b) <> c) != d) >< 7) To repeat a fixed number of times use a a) while loop b) for loop 8) To repeat until a particular condition is true use a) while loop b) for loop 9) The character that must be at the end of the line for if, while, for is... a) : b) . c) ; d) , 10) Data type that can only be true or false a) int b) bool c) string d) float
0%
Python Quiz 2
共享
共享
共享
由
Karenahmed81
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?