[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fF3wZNHkAUOeG2iX44n6mImZIxhUTaQ-LPtfXJY4Yi7c":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-04-27 14:56:35",184812817,[8,9,10,11],"8","7","4","Error, invalid syntax for formation of set",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},79,"faa2a6b8e8abfe8d32eb1ddbad9faa26","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F3d18244cebfc0039d964dc360a8b8ac8.jpg","Python程序设计（双语）","exam_153755736","期末选择题-复习","What will be the output of the following Python code? nums = set([1,1,2,3,3,3,4,4]) print(len(nums))",[21,32,41,50,59,68,77,80,89,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],184812811,[25,26,27,28],"foo","_","my_string_1","1st_string","Which of the following is an invalid variable","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],184812812,[36,37,38,39],"True","10","False","20","f1=lambda x, y:(x&gt;y)*x+(x&lt;y)*y,the value of f1(10,20) is",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],184812813,[45,46,47,48],"'D:\\\\Python\\\\a.txt'","'D:\u002FPython\u002Fa.txt'","'D:\\Python\\a.txt'","r'D:\\Python\\a.txt'","Which of the following choices is not a valid file path",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],184812814,[54,55,56,57],"Error","[1, 0, 2, 'hello', '', []]","[1, 2, 'hello']","[1, 0, 2, 0, 'hello', '', []]","What will be the output of the following Python code? l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l))",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":30,"type":31},[],184812815,[63,64,65,66],"s={4, 'abc', (1,2)}","s={abs}","s={san}","s={2, 2.2, 3, 'xyz'}","Which of the following lines of code will result in an error",{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":30,"type":31},[],184812816,[72,73,74,75],"error","0 1 2","0 1 2 3 0","0 1 2 0","What will be the output of the following Python code? i = 0 while i &lt; 3: print(i) i += 1 else: print(0)",{"answer":78,"createTime":5,"id":6,"options":79,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":81,"createTime":5,"id":82,"options":83,"question":88,"source":30,"type":31},[],184812818,[84,85,86,87],"1 2 3 4 &hellip;","1","1 3 5 7 &hellip;","nothing was printed","What will be the output of the following Python code? i = 1 while False: if i%2 == 0: break print(i) i += 2",{"answer":90,"createTime":5,"id":91,"options":92,"question":97,"source":30,"type":31},[],184812819,[93,94,95,96],"1 2","1 2 3 4 5","None","1 2 4 5","The output of the following code is __. for i in range(1,6): if i\u002F3==0: break else: print(i, end=' ')",{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":30,"type":31},[],184812820,[102,103,104,105],"if x &lt; y: print('foo'); print('bar'); print('baz')","if x &lt; y: print('foo') else: print('bar')","if x &lt; y and x &gt; 10: print('foo')","if x &lt; y: print('foo') elif y &lt; x: print('bar') else: print('baz')","Which of the following are NOT valid if\u002Felse statements in Python, assuming x and y are defined appropriately"]