Demonstration of GitHub Classroom Q & A

Demonstration of GitHub Classroom Q & A¶

👨‍🏫 Purpose¶

GitHub Classroom not only allows us to automatically test programming/code. Other types of questions are supported too.

  1. 🎲 Multiple-Choice Questions (one or more answers, separated by spaces or commas)

  2. 🪙 True/False Questions (write True/False)

  3. 🖩 Numerical answers requiring some calculation (write the numerical answer in the requested units; significant figures are not checked)

  4. 🧮 Numerical answers requiring no calculation (usually just counting) (write the answer as a number)

  5. 🔀 Matching Questions (write pairs sequentially).

The way we do it, it is important that you always put your answer in the indicated position and never use the bold-faced word “Answer” elsewhere. Other than that restriction, the rest of your notebook is yours to play with.

📜 Instructions¶

The next few questions demonstrate the workflow. For each question type, you are first given an example; then you need to do another question of the same type on your own.

1. 🎲 Which of the following phenomena are strongly associated with the particle-like nature of light.

A. Blackbody radiation

B. Compton Scattering

C. Electron Diffraction

D. Stern-Gerlach Experiment

E. Photoelectric effect

Answer: A, E, B

More information can be found in the course notes.

2. 🎲 Which of the following changes would double the energy of a photon:

A. Doubling its frequency

B. Doubling its wavelength

C. Doubling its momentum

D. Doubling its speed

E. Doubling its effective (relativistic) mass

F. Doubling its wavenumber.


3. 🪙 Doubling the wavelength of radiation doubles its frequency. (True/False)

Answer: False

The wavelength, \(\lambda\), of light is related to frequency, \(\nu\) by the equation \(\nu = \frac{c}{\lambda}\). So doubling the wavelength halves the frequency.

4. 🪙 Doubling the wavelength of radiation halves its speed. (True/False)


5. 🖩 A helium-neon laser emits light at 632.8 nm. What is the energy of the photons generated by this laser, in Joules?

Answer: 3.139e-19

import numpy
import scipy
from scipy import constants

Energy = constants.h*constants.c/632.8e-9
print("Energy of the photon in Joules", Energy)
Energy of the photon in Joules 3.139136942397169e-19

Using the formula \(E = \frac{h c}{\lambda}\).

6. 🖩 What is the frequency of light in Hz (\(s^{-1}\)) of light with wavelength 500 nm?


7. 🧮 Two quantum particles move at the same speed, but particle 2 has half the mass of particle 1. The De Broglie wavelength of particle 2 is greater than that of particle 1 by a factor of ____?

Answer: 2

The De Broglie wavelength is \(\lambda = \frac{h}{p}\). Halving the mass of a particle halves its momentum and doubles its wavelength.

8. 🧮 When light with wavelength 600 nm shines on a metal surface, electrons are photoelectrically ejected. Next, a light with wavelength 300 nm is shone on the surface. The kinetic energy of the emitted electrons increases by a factor of ____?


See the course notes.

9. 🔀 Assign the following equations to the person most strongly associated with them.



A. De Broglie

1. \(\, E=h \nu\)

B. Einstein

2. \(\, p=\frac{h}{\lambda}\)

C. Planck

3. \(\, \text{Kinetic Energy} = h \nu - W\)

D. Rydberg

4. \(\, h \nu \propto \frac{1}{m^2} - \frac{1}{n^2}\)

Answer: A, 2, B, 3, C, 1, D, 4

10. 🔀 Assign the following types of experiment to the person most strongly associated with them.



A. Davisson and Germer

1. Electron Scattering

B. Compton

2. Photon Scattering