PACT
Find the Bug
Pop Culture
Computer Science Concepts
UPenn/Philadelphia
100

Name the Residential Counselors of PACT.

1 Named: +100

2 Named: +200

3 Named: +400

4 Named: +600

Abood, Edith, Abby, Richard

100

Debug the following Python code (Indent/Spacing is NOT the Answer):

x = 10
if x > 5
    print("Greater than 5")

Colon needed after if x > 5 i.e 

if x>5:

100

From the viral Pink Drink to the fall-famous PSL, this brand’s drinks often become as trendy as the celebrities holding them. 

Starbucks

100

This data type stores either true or false.

Boolean

100

This is the Name of the Building You Are Living In

Lauder College

200

These Are the Names of the Two Dining Halls Shown at the Campus Tour

1920 Commons and Houston Hall

200

Debug the Following Python Code (Indent/Spacing is NOT the Answer):

nums = [1, 2, 3]
for n in nums:
       total += n
print(total)

"total" needs to be defined before the loop i.e 

total = 0 before the for loop

200

This video game features characters like Steve, Creepers, and Endermen.

Minecraft 

200

This programming technique occurs when a function calls itself to solve a smaller version of the same problem.

Recursion

200

(Wager) This U.S State is Where Philadelphia and UPenn Resides (Spelling Matters)

Pennsylvania 

300

Name 3 Off-Campus Locations Listed on Our Travel Calendar

Ocean City, NYC, D.C, Hershey Park, Phillies Baseball, King of Prussia Mall, Rittenhouse Square, Philadelphia Zoo, Yacht Party

300

Debug the Following Python Code (Indent/Spacing is NOT the Answer):

def count_even(numbers):
    count = 0
    for num in numbers:
        if num % 2 == 0:
            count += 1
    return count
nums = [2, 4, 5, 7, 10]
print(count_even(num))

num is not defined outside the function i.e 

print(count_even(nums))

300

With cities like Gotham and Metropolis, this comic-book universe features heroes such as Batman, Superman, Wonder Woman, The Flash, and Aquaman.

DC Universe

300

This data structure follows Last In, First Out.

Stack

300

This summer, the United States will celebrate this milestone anniversary.

250

400

This is What the Acronym "PACT" Stands For 

Program in Algorithmic and Combinatorial Thinking

400

(Wager) Debug the Following Python Code (Indent/Spacing is NOT the Answer):

def calculate_average(scores):
    total = 0
    for score in scores:
        total += score
    average = total / len(scores)
    return average
grades = [90, 85, 100, 95]
print(calculate_average(grades))

There is NO bug

400

This Artist Has the Most Streams Across All Music Platforms (WAGER)

Taylor Swift

400

This process converts a domain name like google.com into an IP address.

DNS resolution

400

This cracked Philadelphia landmark became a symbol of freedom

Liberty Bell

500

What is the Percentage Split of the US/International Student Population at PACT? (Closest Answers Will Get Points)

53% US - 47% International

500
Debug the Following Python Code (Indent/Spacing is NOT the Answer):

def factorial(n):
    if n == 0:
        return 1
    else:
        factorial(n - 1)
print(factorial(5))

Missing return

def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n - 1)

print(factorial(5)) 

500

This Was the Year "The King" Won His Most Recent NBA Championship 

2020

500

This extra random value is added to a password before hashing to defend against precomputed attacks.

Salt

500

The US is Hosting the World Cup This Year. This Number is the Amount of World Cup Games Philadelphia Will Host.

6

M
e
n
u