What is the solution to the linear equation 2x-1 = 0?
x = 1/2
How did the universe start?
The Big Bang
When was WW2?
1939 to 1945
x is an integer of your choice.
In Python, Print "hi" if x = 2 and print "bye" if x isn't
x = 2 #or 3
if x == 2:
print("hi")
else:
print("bye")
What is the solution to the system of equations x + 2y = 3 and 2x + y = 4?
(x,y) = (5/3,2/3)
What is the planet farthest from the sun?
Neptune
When was WW1?
1914 to 1918
this
Solutions to x≡2 (mod 3) if 6<x<10
x = 8
What is the largest planet in the Solar System?
Jupiter
Which Famous battle was fought in 1066?
The Battle of Hastings
Print "hi" in Java (assume that the class name is "main")
public class main{
public static void main (String[] args) {
System.out.println("hi");
}
}
A right triangle has legs 4444444444 and 3333333333. What is the length of the hypotenuse?
5555555555
What are 4 states of matter?
Solid, Liquid, Gas, Plasma
When was Rome founded?
753BC
You have a function: school(dayoftheweek, holidays)
If dayoftheweek is Saturday or Sunday (first letter is capitalized), then return false.
If holidays is true, then return false
If none of them are true, then return true
Python
def school(dayoftheweeek, holidays):
if (dayoftheweek == "Monday" or dayoftheweek\
== "Tuesday" or dayoftheweek=="Wednesday" or dayoftheweek=="Thursday" or dayoftheweek=="Friday") and holidays == false:
return True
else:
return False
I roll 3 dice. What is the probability that the sum is 16?
1/36
How much does the Earth weigh?
≈13,170,000,000,000,000,000,000,000 pounds
What was the first colony established by the British in North America?
Jamestown, Virginia
Write a function that prints the first 10 3-digit palindromes (Python)
a = 1
b =0
i = 0
while i<10:
print(a + b + a)
b += 1
i += 1