There are several ways our technical quiz can be completed:
- Programming Language: Python or C/C++
- Submission: GitHub repository or ZIP file
Please choose one option from each of the bullet points above. Some notes about the different options:
- If you are interested in a particular subteam, it is encouraged, but not required, to use their main programming language
- Pathfinding, Controls: Python
- Network Systems: C++
- Selecting the GitHub repository submission option will give you the opportunity to earn bonus points, see Step 3 of the Instructions section below for more details.
You may use any resources you find, but must complete the quiz individually. Good luck!
- Get the quiz on your computer using the method of your choice
- GitHub
- Use this repository as a template to create a public repository under your personal GitHub account
- Clone the repository you just created
- ZIP file
- Download this repository as a ZIP file
- Extract the ZIP file you just downloaded
- GitHub
- Complete the quiz in the programming language of your choice
- Python
- Complete the functions in
python/standard_calc.py
- Add PyTest unit tests in
python/test_standard_calc.py
to verify your implementations
- Complete the functions in
- C/C++ (even though the functions are defined in
.cpp
files, you can use standard C syntax without issue)- Complete the functions in
c-cpp/standard_calc.cpp
- Add unit tests in
c-cpp/test_standard_calc.cpp
to verify your implementations- See the C/C++ Notes section below for more details
- Complete the functions in
- Python
- Pass the continuous integration tests on GitHub (Optional)
- Python: runs
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
andpytest
successfully - C/C++: runs
make
successfully - You can find the results in the Actions tab on GitHub: viewing your workflow results.
- Python: runs
- Submit the completed quiz
- GitHub: send us the link to your repository, ensuring that it is public
- ZIP file: zip the quiz and send it to us
- Even though the functions are defined in C++ (
.cpp
) files, you can use standard C syntax in them without issue - This repository includes the CuTest unit test framework because
it is simple and supports both C and C++
- Alternatively you can use GoogleTest, which is what our Network Systems team uses, but you would have to figure out how to compile, run, and pass the continuous integration tests yourself
- Linux or WSL: in the
c-cpp/
directory, runmake
in your terminal to compile your code and./test_standard_calc.o
to run it- Note:
g++
doesn't come with all Linux distributions, so you may have to install it yourself
- Note:
- MacOS: perform the same steps as Linux
- If you get an error about
g++
not being installed, edit the Makefile and replaceg++
withclang++
- If you get an error about
- Windows: add the files to VSCode and compile/run that way, or install a compiler like MinGw (link is to the installer download) and do the Linux steps