Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Data Science Python Part 1 2025 30 QA NumPy Pandas Data Manipulation Verified

Rating
-
Sold
-
Pages
19
Grade
A+
Uploaded on
23-03-2026
Written in
2025/2026

Data Science with Python Part 1 2025 — 30 Q&A Data Manipulation NumPy Pandas Verified

Institution
Course

Content preview

Data Science with Python Part 1 2025 — 30 Q&A Data
Manipulation NumPy Pandas Verified

Series:
CrashCourses Professional Study Series

Author:
Dr Z. Moomba, MBChB, MRCPsych | BethelWellness Ltd

Exam Target:
Data Science Python Part 1

Year:
2025/2026

Format:
30 Questions with Verified Answers and Rationales


>
Author's Note:
This document is an original work produced for the CrashCourses Professional Study Series.
Clinical questions and professional scenarios were composed by Dr Z. Moomba based on current
exam objectives, published guidelines, and evidence-based sources (2024–2025). All patient
names, ages, and case details are fictional. Any resemblance to existing published Q&A banks is
coincidental. For personal study use only — not for reproduction or redistribution.


SECTION A — FOUNDATIONS

Question 1
A data scientist at a regional health trust is tasked with calculating the heart rate variability for
100,000 continuous telemetry readings. They must choose between a standard Python list and a
NumPy dimensional array to store the data in memory. Which fundamental characteristic makes
the NumPy structure the superior choice for this mathematical calculation?
A) It allows storing mixed data types such as clinical strings and integers within the exact same
memory block.
B) It stores elements in contiguous memory locations, allowing for highly efficient vectorized
operations.




,C) It automatically handles missing clinical data points by default without explicit user instruction.
D) It relies on dynamic typing, making it significantly faster to append new real-time readings than
a standard list.

Answer: B

Rationale:
NumPy arrays are stored in continuous blocks of memory, which allows the processor to perform
calculations on entire arrays simultaneously through vectorization. The key discriminating feature
is this contiguous memory allocation, which eliminates the heavy overhead of type-checking each
individual element found in dynamically typed standard lists. The tempting option regarding
dynamic appending fails because NumPy arrays actually have fixed sizes upon creation, making
standard lists faster for dynamic appending but far slower for calculations; utilizing vectorization
can speed up clinical data processing by orders of magnitude [NumPy Performance Guidelines
2025].


Question 2
A clinical auditor is reviewing a one-dimensional NumPy array containing the baseline systolic
blood pressures of fifty patients on a cardiac ward. The auditor needs to subtract a calibration
error of five millimeters of mercury from every single reading simultaneously. Which NumPy
principle allows a single scalar value to be subtracted from an entire array without writing a loop?
A) Array casting
B) Memory mapping
C) Broadcasting
D) Concatenation

Answer: C

Rationale:
Broadcasting is the mechanism that describes how NumPy treats arrays with different shapes
during arithmetic operations, essentially stretching the smaller scalar value across the larger array
to perform element-wise calculations. This provides a highly readable and memory-efficient way
to adjust clinical datasets globally without manually creating a matching array of error values.
Memory mapping is a tempting wrong answer as it deals with memory efficiency, but it relates to
reading large files from a disk rather than arithmetic alignment; mastering broadcasting rules is
essential for writing clean, performant healthcare algorithms [Python Data Science Handbook
2024].






, Question 3
An epidemiologist has two separate one-dimensional NumPy arrays of equal length: one
containing patient heights in meters and the other containing patient weights in kilograms. They
need to calculate the Body Mass Index for the entire cohort. What is the most computationally
efficient method to achieve this in NumPy?
A) Iterate through both arrays using a standard for-loop and append the results to a new list.
B) Use the map function combined with a lambda expression across both arrays.
C) Perform a direct mathematical operation dividing the weight array by the square of the height
array.
D) Convert both arrays into a dictionary and use dictionary comprehension to pair the values.

Answer: C

Rationale:
Performing direct mathematical operations on arrays leverages vectorization, which pushes the
iterative loop down into highly optimized, pre-compiled C code rather than relying on slower
Python-level execution. This direct approach is the defining feature of array programming, offering
unparalleled speed when processing large epidemiological cohorts. Using the map function is a
tempting alternative from functional programming, but it still incurs the overhead of Python
function calls for every element; avoiding explicit loops in array mathematics is a non-negotiable
standard in modern data science [Clinical Data Engineering 2025].


Question 4
A respiratory physiotherapist is analyzing a one-dimensional NumPy array containing thirty
consecutive days of a patient's peak expiratory flow readings. The therapist only needs to extract
the readings from the final week (the last seven days) for a multidisciplinary team review. Which
slicing syntax correctly extracts this specific subset?
A) array[-7:]
B) array[:-7]
C) array[7:]
D) array[0:7]

Answer: A

Rationale:
Using a negative integer before the colon instructs the slice to start counting backwards from the
end of the array, capturing exactly the last seven elements through to the conclusion of the

Written for

Institution
Study
Course

Document information

Uploaded on
March 23, 2026
Number of pages
19
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.98
Get access to the full document:

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

Get to know the seller

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.
CrashCourses (At Home Study)
Follow You need to be logged in order to follow users or courses
Sold
145
Member since
5 year
Number of followers
49
Documents
664
Last sold
3 months ago
University of the People MBA solutions

University of the People - 100% Correct Solutions

4.7

9 reviews

5
7
4
1
3
1
2
0
1
0

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