[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$ftrxgXNhNAxBVebn-0IhKXGj9M_Xs7YWvuDjOWMInKnw":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":13,"question":20,"related":21,"source":32,"type":33},[],"2025-04-27 15:01:01",184813095,[8,9,10,11,12],"d = {'foo': 100, 'bar': 200, 'baz': 300}","d = dict([ ('foo', 100), ('bar', 200), ('baz', 300) ])","d = {} d['foo'] = 100 d['bar'] = 200 d['baz'] = 300","d = dict(foo=100, bar=200, baz=300)","d = { ('foo', 100), ('bar', 200), ('baz', 300) }",{"count":14,"courseId":15,"courseImg":16,"courseName":17,"workId":18,"workName":19},77,"faa2a6b8e8abfe8d32eb1ddbad9faa26","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F3d18244cebfc0039d964dc360a8b8ac8.jpg","Python程序设计（双语）","exam_153755351","期末选择题-复习","Which of the following is not a valid way to define a dictionary in Python",[22,34,43,51,60,69,78,87,90,98],{"answer":23,"createTime":5,"id":24,"options":25,"question":31,"source":32,"type":33},[],184813088,[26,27,28,29,30],"None","False","0","0.000001","[]","Which of the following are truthy","v1",0,{"answer":35,"createTime":5,"id":36,"options":37,"question":42,"source":32,"type":33},[],184813089,[38,39,40,41],"_","foo","my_string_1","1st_string","Which of the following is an invalid variable",{"answer":44,"createTime":5,"id":45,"options":46,"question":50,"source":32,"type":33},[],184813090,[28,47,48,49],"Error","7","6","What will be the output of the following Python code? class change: def __init__(self, x, y, z): self.a = x + y + z x = change(1,2,3) y = getattr(x, 'a') setattr(x, 'a', y+1) print(x.a)",{"answer":52,"createTime":5,"id":53,"options":54,"question":59,"source":32,"type":33},[],184813091,[55,56,57,58],"[1,2,3] [1,2,3,4]","Syntax error","[1, 2, 3, 4] None","[1,2,3,4] [1,2,3,4]","What will be the output of the following Python code? a=[1,2,3] b=a.append(4) print(a) print(b)",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":32,"type":33},[],184813092,[64,65,66,67],"a[2]=45","print(len(a))","a.remove(5)","print(min(a))","If a={5,6,7,8}, which of the following statements is false",{"answer":70,"createTime":5,"id":71,"options":72,"question":77,"source":32,"type":33},[],184813093,[73,74,75,76],"none of the mentioned","error","3 1","1 3","What will be the output of the following Python code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])",{"answer":79,"createTime":5,"id":80,"options":81,"question":86,"source":32,"type":33},[],184813094,[82,83,84,85],"print(t[3])","print(len(t))","t[3] = 45","print(max(t))","Suppose t = (1, 2, 4, 3), which of the following is incorrect",{"answer":88,"createTime":5,"id":6,"options":89,"question":20,"source":32,"type":33},[],[8,9,10,11,12],{"answer":91,"createTime":5,"id":92,"options":93,"question":97,"source":32,"type":33},[],184813096,[94,95,96,74],"5","9","1","ls=[[1,2,3],[4,5,6],[7,8,9]], the value of ls[1][1] is",{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":32,"type":33},[],184813097,[102,103,104,105],"True True","True False","False True","False False","What will be the output of the following Python code snippet? &gt;&gt;&gt; bool(&quot;False&quot;) &gt;&gt;&gt; bool()"]