Name the Residential Counselors of PACT.
1 Named: +100
2 Named: +200
3 Named: +300
4 Named: +400
Abood, Edith, Abby, Richard
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:
From the viral Pink Drink to the fall-famous PSL, this brand’s drinks often become as trendy as the celebrities holding them.
Starbucks
This data type stores either true or false.
Boolean
This is the Name of the Building You Are Living In
Lauder College
These Are the Names of the Two Dining Halls Shown at the Campus Tour
1920 Commons and Houston Hall
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
This video game features characters like Steve, Creepers, and Endermen.
Minecraft
This programming technique occurs when a function calls itself to solve a smaller version of the same problem.
Recursion
(Wager) This U.S State is Where Philadelphia and UPenn Resides (Spelling Matters)
Pennsylvania
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
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))
With cities like Gotham and Metropolis, this comic-book universe features heroes such as Batman, Superman, Wonder Woman, The Flash, and Aquaman.
DC Universe
This data structure follows Last In, First Out.
Stack
This summer, the United States will celebrate this milestone anniversary.
250
This is What the Acronym "PACT" Stands For
Program in Algorithmic and Combinatorial Thinking
(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
This Artist Has the Most Streams Across All Music Platforms (WAGER)
Taylor Swift
This cracked Philadelphia landmark became a symbol of freedom
Liberty Bell
What is the Percentage Split of the US/International Student Population at PACT? (Closest Answers Will Get Points)
53% US - 47% International
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))
This Was the Year "The King" Won His Most Recent NBA Championship
2020
This extra random value is added to a password before hashing to defend against precomputed attacks.
Salt
The US is Hosting the World Cup This Year. This Number is the Amount of World Cup Games Philadelphia Will Host.
6