Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dannycahyo/quiz-cli


https://github.com/dannycahyo/quiz-cli

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

### Quiz CLI

#### Description

The Quiz CLI is a command-line interface application that allows users to take a quiz consisting of multiple-choice questions.

#### Pre-requisites

- Node.js installed on your local machine.

If you don't have Node.js installed, you can download it from the official website: [Node.js](https://nodejs.org/).

#### Initial & Solution Directory

- The `initial` directory contains the initial implementation of the Simple Calculator CLI.
- The `solution` directory contains the solution implementation of the Simple Calculator CLI.

**Note:** The `solution` directory is final and contains the completed implementation of the Simple Calculator CLI. Please struggle with the challenge on the `initial` before checking the solution.

#### Features

- Includes a set of predefined multiple-choice questions.
- Displays questions and options in the command line interface.
- Provides immediate feedback on user answers.
- Calculates and displays the final score at the end of the quiz.

#### Usage

To use the Quiz CLI, follow these steps:

1. Open your terminal or command prompt.
2. Navigate to the directory containing (initial/solution) the `index.js` file.
3. Run the following command:
```
node index.js
```
This will start the quiz and prompt you to answer each question by selecting an option.

#### Notes

- Enter the number corresponding to your answer when prompted.
- Your score will be displayed at the end of the quiz.

These README files provide instructions on how to use each CLI application and explain their features. You can include them in your GitHub repository for documentation.