Name a fast food restaurant on NMSU campus
What is Chic-fit-A, Panda Express, etc?
How old is Luis?
What is 23?
True or False:
If a human falls into quicksand, they will eventually be sucked all the way under if they do not attempt to escape
What is false? (This common myth is actually impossible since the human body is less dense than quicksand (2 grams/cubic centimeter vs 1 gram/cubic centimeter). The furthest you could possibly sink is waist-deep)
What fruit does SpongeBob live in?
What is a pineapple?
We have two monkeys, a and b, and the parameters a_smile and b_smile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return True if we are in trouble.
monkey_trouble(True, True) → True
monkey_trouble(False, False) → True
monkey_trouble(True, False) → False
What is
def monkey_trouble(a_smile, b_smile):
return a_smile == b_smile
What is Wendy's theme colors?
What is red and yellow? (Also light blue and black)
What is Luis's favorite Tetris opening?
What is the perfect clear?
What is quicksand made of?
What is loose sand filled with water?
What is Squidward's last name?
What is Tentacles?
Given an int n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number.
near_hundred(93) → True
near_hundred(90) → True
near_hundred(89) → False
What is
def near_hundred(n):
return abs(100 - n) <= 10 or abs(200 - n) <= 10
What is the popular taco restaurant in El Paso? (Not Taco Bell)
What is Taco Cabana?
What fitness challenge is Luis currently attempting?
What is the 75 Hard Challenge?
What is the term for measuring how thick/runny a liquid is?
What is viscosity?
"Is ________ an instrument?" --Patrick Star
What is mayonnaise?
Which continent are pythons natively found?
What is Africa, Asia, or Australia?
What is the most popular fast food restaurant in the world?
What is McDonalds?
What animal is on Luis's blanket on his bed?
What are wolves?
Which swimming style is recommended for escaping quicksand?
What is the backstroke?
In the Pizza Delivery episode, what does SpongeBob say the pioneers used to ride for miles?
What is a rock? (NOT a boulder)
Count how many times the string word is in the string original. Do NOT use the built in string method count. Overlapping words count more than once, so 'ii' appears twice inside 'iii'
countWord('fishiii', 'ii') → 2
countWord('fishisisis', 'is') → 4
countWord('fishiii', 'I') → 0
What is
def countWord(original,word):
result = 0
for i in range(len(original)):
if original[i:i+len(word)] == word:
result += 1
return result
Which fast food restaurant introduced the Impossible Burger made from plants?
What is Burger King?
What is Luis's shoe size? (within 1/2 size either way)
What is 10.5?
Name a movie that has quicksand in it
What is Tarzan, The Land Before Time, Dune, Star Wars, The Princess Bride, Indiana Jones, the Jungle Book, or Jumanji?
In the episode where SpongeBob makes a bubble friend, what is the viking holiday that SpongeBob and Patrick celebrate?
What is Leif Erickson day?
Given a string and a non-empty word string, return a version of the original String where all chars have been replaced by pluses ("+"), except for appearances of the word string which are preserved unchanged.
plusOut('aaxxxxbb', 'xx') → '++xxxx++'
plusOut('123123', '3') → '++3++3'
plusOut('12xy34', 'xy') → '++xy++'
What is
def plusOut(str,word):
result = []
start = 0
end = len(word) - 1
while end < len(str):
if str[start: end + 1] == word:
start = end + 1
end = start + len(word) - 1
result += [c for c in word]
else:
start += 1
end += 1
result.append("+")
while len(result) < len(str):
result.append("+")
return "".join(result)