Consider a hypothetical magnetic field pointing out of your computer screen. Now imagine an electron traveling from right to leftin the plane of your screen. A diagram of this situation is show below.
+
a. The magnitude of the force experienced by the electron is proportional the product of which of the following? (Select all that apply.)
+b. The direction of the force experienced by the electron is _______.
++ Part 1: Function Types +
++For each of the following functions, specify the type of its output. You can assume each function is called with an appropriate argument, as specified by its docstring.
++If the output can be either an int or a float, select num, which isn't a real Python type, but which we'll use to indicate that either basic numeric type is legal.
++In fact, in Python, booleans True and False can be operated on as if they were the integers 1 and 0; but it is ugly and confusing to take advantage of this fact, and we will resolutely pretend that it isn't true.
+
+
+In this and future problems, you'll see function definitions that look like this:
+What are those three lines between
+In Python, docstrings appear immediately after the
+As you begin coding your own functions, we strongly encourage you to document all your functions by using properly-formatted docstrings!
+def a(x):
+ '''
+ x: int or float.
+ '''
+ return x + 1
+
+ def a(x): and return x + 1? These lines are called the docstring of the function. A docstring is a special type of comment that is used to document what your function is doing. Typically, docstrings will explain what the function expects the type(s) of the argument(s) to be, and what the function is returning. def line of a function, before the body. Docstrings start and end with triple quotes - this can be triple single quotes or triple double quotes, it doesn't matter as long as they match. To sum up this general form:
+def myFunction(argument):
+ """
+ Docstring goes here. Explain what type argument(s) should have, and what your function
+ is going to return.
+ """
+ < Code for your function (the body of the function) goes here >
+
+
+def a(x): + ''' + x: int or float. + ''' + return x + 1 ++
+ Indicate the type of the output that the function a will yield.
+def b(x): + ''' + x: int or float. + ''' + return x + 1.0 ++
+ Indicate the type of the output that the function b will yield.
+def c(x, y): + ''' + x: int or float. + y: int or float. + ''' + return x + y ++
+ Indicate the type of the output that the function c will yield.
+def d(x, y): + ''' + x: Can be of any type. + y: Can be of any type. + ''' + return x > y ++
+ Indicate the type of the output that the function d will yield.
+def e(x, y, z): + ''' + x: Can be of any type. + y: Can be of any type. + z: Can be of any type. + ''' + return x >= y and x <= z ++
+ Indicate the type of the output that the function e will yield.
+def f(x, y): + ''' + x: int or float. + y: int or float + ''' + x + y - 2 ++
+ Indicate the type of the output that the function f will yield.
+ Part 2: Transcript +
++Below is a transcript of a session with the Python shell. Assume the functions from Part 1 (above) have been defined. Provide the type and value of the expressions being evaluated. If evaluating an expression would cause an error, select NoneType and write 'error' in the box. If the value of an expression is a function, select function as the type and write 'function' in the box.
+
+ a(6)
+
+ a(-5.3)
+
+ a(a(a(6)))
+
+ c(a(1), b(1))
+
+ d('apple', 11.1)
+
+ e(a(3), b(4), c(3, 4))
+
+ f
+
Suppose you were to pass a hydroge ion (H+) through an electric field and measure the deflection of the ion. How would its deflection compare to the deflection of an electron passed through the same electric field?
+Gaseous hydrogen can be reacted with gaseous oxygen in the presence of a flame to produce water vapor according to the following reaction:
+ [mathjax] \text{ a } \text{H}_{2 } + \text{ b }\text{O}_{2 } = \text{ c }\text{H}_{2 }\text{O }[/mathjax] +Balance the equation i.e., specify the values of a, b, and c. Use the lowest whole number coefficients.
+ +a =
+b =
+
c =
+
Metallothermic production of zirconium (Zr) would involve the reaction of sodium (Na) with zirconium tetrachloride (ZrCl4).
+ +(a) Write a balanced chemical equation.
+ + + +(b) Write the balanced chemical equation using lowest whole numbers.
+ + + +(c) Calculate the amount of zirconium produced (in kg) if a reactor were charged with 111 kg [mathjaxinline]\text{ZrCl}_4[/mathjaxinline] and 11.1 kg [mathjaxinline]\text{Na}[/mathjaxinline].
+
SOLUTION:
+(b)[mathjax] \text{ZrCl}_{4 } + \mathbf{4 }\text{Na} = \mathbf{4 }\text{NaCl } + \mathbf{1 } \text{Zr} [/mathjax]
+(c)
+[mathjaxinline]111\text{kg ZrCl}_4 = 111000/[91.22 + (4 \times 35.45)] = 476 \text{ moles ZrCl}_4[/mathjaxinline]
+[mathjaxinline]11.1\text{ kg Na} = 11100/22.99 = 483\text{ moles C}[/mathjaxinline]
+stoichiometry of reaction further dictates that on a molar basis there needs to be 4 x amount of [mathjaxinline]\text{Na}[/mathjaxinline] as there is [mathjaxinline]\text{ZrCl}_4[/mathjaxinline], but calculations show there to be a shortfall of [mathjaxinline]\text{Na}[/mathjaxinline]
+[mathjaxinline]\therefore[/mathjaxinline] reaction yield is contrained by [mathjaxinline]\text{Na}[/mathjaxinline] present
+stoichiometry of reaction further dictates that if [mathjaxinline]\text{Na}[/mathjaxinline] controls the yield, then the amount of [mathjaxinline]\text{Zr}[/mathjaxinline] produced = 1/4 x molar quantity of [mathjaxinline]\text{Na}[/mathjaxinline] = 1/4 x 483 moles = 121
+ [mathjaxinline]121 \text{ moles Zr} \times 91.22\text{ g / mol } \mathbf{= 11.0 \text{ kg Zr} }[/mathjaxinline]+
+ ++
+ +Hints can be provided to students, based on the last response given, as well as the history of responses given. Here is an example of a hint produced by a Formula Response problem.
+ ++What is the equation of the line which passess through ($x1,$y1) and +($x2,$y2)?
+ +The correct answer is $answer. A common error is to invert the equation for the slope. Enter +$wrongans to see a hint.
+ ++Two skiers are on frictionless black diamond ski slopes. +Hello
Use conservation of energy.
Suppose you were to pass a hydroge ion (H+) through an electric field and measure the deflection of the ion. How would its deflection compare to the deflection of an electron passed through the same electric field?
+Gaseous hydrogen can be reacted with gaseous oxygen in the presence of a flame to produce water vapor according to the following reaction:
+ [mathjax] \text{ a } \text{H}_{2 } + \text{ b }\text{O}_{2 } = \text{ c }\text{H}_{2 }\text{O }[/mathjax] +Balance the equation i.e., specify the values of a, b, and c. Use the lowest whole number coefficients.
+ +a =
+b =
+
c =
+
+Why do bicycles benefit from having larger wheels when going up a bump as shown in the picture?
+Assume that for both bicycles:
+1.) The tires have equal air pressure.
+2.) The bicycles never leave the contact with the bump.
+3.) The bicycles have the same mass. The bicycle tires (regardless of size) have the same mass.
+
The bicycles with larger wheels have more time to go over the bump. This decreases the magnitude of the force needed to lift the bicycle.
+The bicycles with larger wheels always have a smaller vertical displacement regardless of speed.
+The bicycles with larger wheels experience a force backward with less magnitude for the same amount of time.
+The bicycles with larger wheels experience a force backward with less magnitude for a greater amount of time.
+The bicycles with larger wheels have more kinetic energy turned into gravitational potential energy.
+The bicycles with larger wheels have more rotational kinetic energy, so the horizontal velocity of the biker changes less.
++A symbolic math response problem presents one or more symbolic math +input fields for input. Correctness of input is evaluated based on +the symbolic properties of the expression entered. The student enters +text, but sees a proper symbolic rendition of the entered formula, in +real time, next to the input box. +
+ +This is a correct answer which may be entered below:
+cos(theta)*[[1,0],[0,1]] + i*sin(theta)*[[0,1],[1,0]]
+ + +