Fall 2025 Quiz 1

← return to practice.dsc10.com


This quiz was administered in-person. Students were allowed 1 double-sided cheatsheet. Students had 20 minutes to work on the quiz.

This quiz covered Lectures 1-5 of the Fall 2025 offering of DSC 10.


You are the newest employee at Nintendo and you are tasked with creating the next Super Smash Brothers video game! Games in this famous series involve battles between characters from many different franchises, like Pokemon, Mario, and Legend of Zelda. You’ve been given the roster of characters (known as fighters) in the current game, but unfortunately, due to budget cuts, you’ll need to eliminate some of them.

The smash DataFrame, whose first few rows are shown below, includes information on all fighters in the current game. For each fighter, you have their "Name" (string), "Species" (string), "Franchise" of origin (string), "Year" of origin (int), and primary "Weapon" (string).


Problem 1

Nintendo management sends you some information about your new job, but there seems to be an encryption puzzle blocking you from opening the file. To undo the encryption and open the file, determine the datatype of each expression below, or indicate that the expression produces an error.


Problem 1.1

smash.shape[0] / 1

Answer: float


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 64%.


Problem 1.2

str(len(smash)) * 2.0

Answer: error


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 63%.



Problem 1.3

smash.get("Year").iloc[0] == "1981"

Answer: bool


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 71%.


Problem 1.4

smash.take([0])

Answer: DataFrame


Difficulty: ⭐️⭐️

The average score on this problem was 75%.



Problem 2

For diversity, we need to cut fighters from the most common "Species". Fill in the blanks below to find the "Species" with the most fighters (i.e. the "Species" most represented in smash).

smash.groupby("Species").___(a)___().sort_values(by="Year").___(b)___

(a): count
(b): index[-1]


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 64%.


Problem 3

You decide to eliminate some of the fighters that have "Sword" as their "Weapon". Select all expressions that evaluate to the total number of such fighters.

Answer: Options 1 and 5.


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 73%.


Problem 4

Alongside the unveiling of your new game, you’ll want to announce a new fighter to build hype. The code below calculates the name of this new fighter and stores it in the variable new. In the box, write in the value of the new variable after the code executes. Write clearly!

lu = "luigi"
dk = "dk"
new = "crash"
dk.replace("k", "kong")
new = ((lu + "t") * len(dk)).title()
new = new

Answer: "Luigitluigit"


Difficulty: ⭐️⭐️⭐️⭐️

The average score on this problem was 44%.


Problem 5

For the opening trailer, your boss needs you to find out two facts about Super Smash Brothers history. Write one line of Python code that evaluates to each quantity below.


Problem 5.1

The median origin "Year" of all fighters in smash.

Answer: smash.get(Year").median()


Difficulty: ⭐️⭐️

The average score on this problem was 80%.


Problem 5.2

The name of the fighter with the earliest origin "Year" (or in the case of a tie, any fighter from the earliest origin "Year").

Answer: smash.sort_values(by = "Year").get("Name").iloc[0] OR smash.set_index("Name").sort_values(by = "Year").index[0]


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 63%.



👋 Feedback: Find an error? Still confused? Have a suggestion? Let us know here.