加载中...
StudyPilot
题库
价格
日历
中文
EN
UQ
登录
题库
CSSE1001/7030
【公开题库】期中冲刺练习题库
【公开题库】期中冲刺练习题库
一套包含了热门选择题考点的题库,适合反复练习
0
题目
0
已练习
0
%
你的正确率
~
0
分钟
预计时间
你的进度
0%
0 / 29
已练 0 / 29 · 正确率 0%
开始练习 →
题目预览
01
What is the value of xs after the following is evaluated?xs = 'hello' ys = xs[:] ys = ys.upper()
02
What is the best description of the behaviour of the following function?def check(xs: list, val) -> int: count = 0 for x in xs: if x == val: count += 1 return count
03
What is the value of result after only the following code is run?result = [] for x in range(6): if x == 2 or 3: result.append(x)
04
What is the best description of the behaviour of the following function?def mystery(xs: list[int]) -> bool: for i in range(len(xs) - 1): if xs[i] > xs[i + 1]: return False return True
05
What is the value of count after the following code is run?count = 0 for x in 'Hello World': if x == 'l' or x == 'o': count += 1