CORRECT ANSWER: 10 - Management (ISYS102109) BOSTON COLLEGE Latest U...

Study Guides Aug 15, 2025
Loading...

Loading document viewer...

Page 0 of 0

Document Text

Cs 521 Final exam quiz guide Computers in Management (ISYS102109) BOSTON COLLEGE Latest Update 2024-2025 Actual Exam Questions and 100% Verified Correct Answers Guaranteed A+ [ (a,b) for a in range(3) for b in range(a) ] - CORRECT ANSWER: [ (1,0),(2,0),(2,1)]

L1 = [] L1.append([1, [2, 3, 4], 5]) L1.extend((7, 8, 9)) print(L1[0][1][1] + L1[2]) a. 12 b.38 c. 11 d. TypeError: can only concatenate list (not "int") to list - CORRECT ANSWER: 11

What is the output of the following program? for i in range(2)[::-1]: print (i, end=' ') -

CORRECT ANSWER: 10

What is the output of the following program? L1 = [1, 2, 3, 4] L2 = L1 L3 = L1.copy() L4 = list(L1) L1[0] = [5] print(L1, L2, L3, L4) - CORRECT ANSWER: [[5], 2, 3, 4] [[5], 2, 3, 4]

[1, 2, 3, 4] [1, 2, 3, 4]

What is the output of the following program? T1 = (1) T2 = (3, 4) T1 += 5 print(T1)

print(T1 + T2) - CORRECT ANSWER: 6 TypeError

What is the output of the following program? temp = dict() temp['key1'] = {'key1' : 44, 'key2' : 566} temp['key2'] = [1, 2, 3, 4] for (key, values) in temp.items(): print(values, end = "") - CORRECT ANSWER: {'key1': 44, 'key2': 566}[1, 2, 3, 4]

What is the output of the following: i=0 def change(i): i=i+1 return i change(1) print(i) -

CORRECT ANSWER: 0

What is the output of the following? class Count: def __init__(self, count=0): self.__count=count a=Count(2); b=Count(2); print(id(a)==id(b), end = ' ') c= 'hello'; d=

'hello'; print(id(c)==id(d)) - CORRECT ANSWER: False True

What is the output of the following? data = [2, 3, 9] temp = [[x for x in[data]] for x in range(3)] print (temp) - CORRECT ANSWER: [[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]

What is the output of the following? def foo(x): x = ['def', 'abc'] return id(x) q = ['abc',

'def'] print(id(q) == foo(q)) - CORRECT ANSWER: False

What is the output of the following? i = 1 while True: if i % 5 == 0: break print(i, end=' ') i

+= 1 - CORRECT ANSWER: 1 2 3 4

  • / 1

Download Document

Buy This Document

$30.00 One-time purchase
Buy Now
  • Full access to this document
  • Download anytime
  • No expiration

Document Information

Category: Study Guides
Added: Aug 15, 2025
Description:

Cs 521 Final exam quiz guide Computers in Management (ISYS102109) BOSTON COLLEGE Latest Update 2024-2025 Actual Exam Questions and 100% Verified Correct Answers Guaranteed A+ [ (a,b) for a in range...

Get this document $30.00