bcorfman / quiz_taker

Asks multiple choice questions by topic area, and keeps track of progress. Easy-to-understand and compact code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quiz_taker

Open in Codespaces

Asks the user a series of multiple choice questions by topic area, and keeps track of progress.

This is a Python script with a console GUI (using npyscreen).

Quizzes are stored in JSON format.

I used this program extensively for my Security+ certification exam in 2020.

Prerequisites

  • Click on the Open with GitHub Codespaces badge above to launch the project in a browser or on your desktop inside Visual Studio Code.

OR

  • Install Python 3.8.1 or higher
  • Install Poetry
  • At a command prompt in the project directory, type poetry install to set up dependencies

To run the code

  • In the terminal window, type poetry run python quiz.py.

Console GUI Controls

  • Cursor up/down to highlight a choice, and SPACE or ENTER to select it.
  • TAB to the Confirm button, and then SPACE or ENTER to confirm the selection.
  • Continue through all the questions and receive a final score, or hit ESC to quit early and receive a score up that point.

About

Asks multiple choice questions by topic area, and keeps track of progress. Easy-to-understand and compact code.

License:MIT License


Languages

Language:Python 98.4%Language:Shell 1.6%