Giter VIP home page Giter VIP logo

quiz-application's Introduction

Some Quiz Thing

Learning Javascript so I made a thing in it.

A quiz application written in javascript that runs in the terminal. (Quiz.js)

Topics

  • Computer Commando
  • Literary Language
  • Polyglot Around The World
  • Yer A Wizard (Has to be unlocked/Cheat code entered)

Program Requirements

Must consist of 2 classes

  • MCQ class to represent a question. The class should have the variables to store the question, four choices, your answer and the correct answer for the question. Add a constructor and appropriate methods.
  • Quiz class to represent a quiz that contains at least 15 MCQ questions (5 questions from each quiz category). The class should have an array that stores all 15 MCQ objects and another array to store the 5 MCQ objects from the selected category. All required methods, such as the method to check whether all questions are answered and the method to calculate the quiz result…etc. should also be included here.

Features

Basic Requirements

  • Minimum 3 topics
  • Each topic consists of 5 Multiple Choice Questions (MCQs)
  • Once the last question (question-5) is answered, the program should show the answer summary page which shows all answers given by the users. The user is allowed to submit the quiz or to go back to retry any of the 5 questions.
  • Once the quiz is submitted, the result summary screen will be displayed showing the quiz result and/or a congratulatory message if the user does well in the quiz.
  • There is a basic navigation function, “P” to go the previous question, and “N” to go to the next question.

Additional Features

  • Extra Category. A Personality Quiz that determines how many percent of a Wizarding House you belong to.
  • A navigation function. Enter P to go to previous question, N to go to next question (meaning user can choose to skip the question being displayed and come back to answer later).
  • Warns user of unattempted questions.
  • Free Pass. Enter 'S' to skip, only 3 available.
  • View past scores in Quiz History.
  • The option README.md will show you how many more points until you can unlock the bonus quiz.
  • Cheat code: "Ex-Google Techlead" that will give 999 free passes and unlock bonus quiz

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.