Coder Social home page Coder Social logo

ubcsailbot-software-quiz's Introduction

Technical Quiz - UBC Sailbot Software

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
    • Kernel (previously Navigation): 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!

Instructions

  1. Get the quiz on your computer using the method of your choice
  2. Complete the quiz in the programming language of your choice
    • Python
      1. Complete the functions in python/standard_calc.py
      2. Add PyTest unit tests in python/test_standard_calc.py to verify your implementations
    • C/C++ (even though the functions are defined in .cpp files, you can use standard C syntax without issue)
      1. Complete the functions in c-cpp/standard_calc.cpp
      2. Add unit tests in c-cpp/test_standard_calc.cpp to verify your implementations
  3. Pass the continuous integration tests on GitHub (Optional)
    • Python: runs flake8 . --count --max-complexity=10 --max-line-length=127 --statistics and pytest successfully
      • flake8 outputs 0 on success
      • References that you may find helpful: Flake8, PyTest
    • C/C++: runs make successfully
    • You can find the results in the Actions tab on GitHub: viewing your workflow results.
  4. 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

C/C++ Notes

  • 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 Kernel team uses, but you would have to figure out how to compile, run, and pass the continuous integration tests yourself

C/C++ Compile and Run Instructions

  • Linux or WSL: in the c-cpp/ directory, run make 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
  • MacOS: perform the same steps as Linux
    • If you get an error about g++ not being installed, edit the Makefile and replace g++ with clang++
  • 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

ubcsailbot-software-quiz's People

Contributors

alberto-escobar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.