• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

DS 110 Final Exam Version 1 and Version 2 | Full Questions and Answers | 2026/27 Updated | 100% Correct | with complete solutions - Boston University.

Document preview thumbnail
Preview 3 out of 25 pages

DS 110 FINAL EXAM VERSION 1 AND VERSION 2 | FULL QUESTIONS AND ANSWERS | 2026/27 UPDATED | 100% CORRECT | WITH COMPLETE SOLUTIONS - BOSTON UNIVERSITY Prepare for the Boston University CDS DS 110 Introduction to Data Science with Python final exam with comprehensive questions, correct answers, and complete solutions. Review Python fundamentals, expressions and operators, data types, control flow, loops, functions, recursion, lists and dictionaries, object-oriented programming, data structures, data processing, NumPy, pandas, matplotlib, data visualization, and problem-solving techniques. Includes Version 1 and Version 2 for focused 2026/27 exam preparation.

Content preview

,
, DS 110 Final Exam Version 1 and Version 2 |
Full Questions and Answers | 2026/27 Updated |
100% Correct | with complete solutions -
Boston University.

SECTION 1: PYTHON FUNDAMENTALS — DATA
TYPES & VARIABLES (Questions 1–10)
1. What are the values of the variables a, b, and c after running this
code?

python
a = 3
b = 2
def my_func(a, b):
b += 2
a = a + b
return a
c = my_func(a, b)

A) a=3, b=2, c=7
B) a=5, b=4, c=7
C) a=7, b=4, c=7
D) a=3, b=4, c=7

Correct Answer: A

Rationale: In Python, integers are immutable, and function parameters are
passed by object reference. Inside my_func, a and b are local variables that
initially reference the same objects as the global a and b. However, when b
+= 2 executes, it creates a new local integer object for b (now 4). Then a =
a + b creates a new local integer (3 + 4 = 7). The global a and b remain
unchanged (3 and 2). The return value c is 7 .

Source: DS110 Final Flashcards — Quizlet

Document information

Uploaded on
October 4, 2026
Number of pages
25
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorRamona
3.0
(5)
Sold
56
Followers
2
Items
8908
Last sold
11 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions