What will be the output of the following code?
def make_adder(x):
def adder(y):
return x + y
return adder
add_10 = make_adder(10)
result = add_10(5)
print(result)
15
What will be the output?
public class Program
{
public delegate int Transformer(int x);
public static int Square(int x)
{
return x * x;
}
public static void Main()
{
Transformer t = Square;
int result = t(5);
Console.WriteLine(result);
}
}
25
What was the predecessor to Rocket League?
Supersonic Acrobatic Rocket-Powered Battle-Cars
What is the primary purpose of conducting an inventory count observation in a company audit?
To verify the existence and accuracy of the inventory.
Green anaconda
What was the total death count of WWII?
70-85m
What is the name of the Mecca on Horizon?
Genesis
Who was the President during WWI?
Woodrow Wilson
What country is Mount Everest in?
Nepal
What state has issues with the invading species the Burmese Python?
Flordia
What president said that AIDS was God's way of killing gay people?
The great Roland Regan
In Helldivers 2, what is the name of the advanced weapon that combines high explosive and incendiary capabilities?
Obliterator
What causes something to be a Short Term Capital Gains Tax versus Long Term Capital Gains Tax?
Selling it within a year of purchase.
Do all muscle fibers push, pull, both, or other?
Pull
WHOEVER HAS THE CLOSEST BALD EAGLE NOISE WINS! (no -400)
How many years passed in Interstellar when they visited the ocean planet?
BQ WHY DID TIME PASS FASTER?
23 years
How many blocks can a piston push in Minecraft?
12
Earth's axis is tilted at 23 degrees. What planet is tilted at 90 degrees?
Uranus
What country has the largest volcanic island?
Iceland
What is the output?
def decorator(func):
def wrapper(*args, **kwargs):
print(f"Arguments were: {args}, {kwargs}")
return func(*args, **kwargs)
return wrapper
class Meta(type):
def __new__(cls, name, bases, dct):
for attr, value in dct.items():
if callable(value):
dct[attr] = decorator(value)
return super().__new__(cls, name, bases, dct)
class Base(metaclass=Meta):
def foo(self, x):
return x * 2
class Derived(Base):
def foo(self, x):
return super().foo(x) + 1
b = Base()
d = Derived()
print(b.foo(5))
print(d.foo(5))
Arguments were: (<__main__.Base object at 0x...>, 5), {}
10
Arguments were: (<__main__.Derived object at 0x...>, 5), {}
Arguments were: (<__main__.Derived object at 0x...>, 5), {}
11
Orthanc and Barad-dûr
What is the name of Mario's campaign in Mario Sunshine, and what two abilities does it have?
It is FLUDD, and it sprays water, making Mario float or hover.
Who sabotaged Eren ODM equipment, and why did they do it?
Keith Shadis
Because he wanted to keep Eren safe because he was friends with his parents
What muscle has up to 96% Type I fibers?
Calves