[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fjJLNbI2svjA_e10uyQr0qxVTqo11Rfxw_wAmzvwSyf8":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-04-27 15:01:01",184813090,[8,9,10,11],"0","Error","7","6",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},77,"faa2a6b8e8abfe8d32eb1ddbad9faa26","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F3d18244cebfc0039d964dc360a8b8ac8.jpg","Python程序设计（双语）","exam_153755351","期末选择题-复习","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)",[21,32,41,44,53,62,71,80,90,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],184813088,[25,26,8,27,28],"None","False","0.000001","[]","Which of the following are truthy","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],184813089,[36,37,38,39],"_","foo","my_string_1","1st_string","Which of the following is an invalid variable",{"answer":42,"createTime":5,"id":6,"options":43,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":45,"createTime":5,"id":46,"options":47,"question":52,"source":30,"type":31},[],184813091,[48,49,50,51],"[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":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],184813092,[57,58,59,60],"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":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],184813093,[66,67,68,69],"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":72,"createTime":5,"id":73,"options":74,"question":79,"source":30,"type":31},[],184813094,[75,76,77,78],"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":81,"createTime":5,"id":82,"options":83,"question":89,"source":30,"type":31},[],184813095,[84,85,86,87,88],"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) }","Which of the following is not a valid way to define a dictionary in Python",{"answer":91,"createTime":5,"id":92,"options":93,"question":97,"source":30,"type":31},[],184813096,[94,95,96,67],"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":30,"type":31},[],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()"]