GithubHelp home page GithubHelp logo

balajisriraman / kalvium-project-on-quiz-application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kalvium-program/ca-four-react-boilerplate

0.0 0.0 0.0 816 KB

Home Page: https://earnest-chebakia-da2a6a.netlify.app/

JavaScript 55.27% CSS 26.72% HTML 18.01%

kalvium-project-on-quiz-application's Introduction

Logo-nav

CA - 4: More Quiz

Part 1:

You are asked to create a quiz app using functional components (have to use hooks for state-management). There are few functionalities - that you need to achieve ->

  1. An option through which one can toggle between dark and light mode.
  2. Once you answer a particular question -> you should be able to move to the next question automatically - until you reach the last question. (You cannot attempt a question twice -> so no need for a functionality which can lead you back to the previous question.)
  3. Once you answer the final question -> a result screen should pop-up --> displaying your result.

Steps to follow:

  1. The structure of the project is already provided to you. You just need to clone this repository and run the following command: npm i or npm install.

  2. The set of questions is also provided to you inside questions.js file. NOTE: Inside questions.js -> there are total of 5 questions, out of which only the first question is complete. You need to complete the other questions by filling-in the values for isCorrect field.

  3. There are two functional components:

    1. QuestionBox.js -> you have to implement the following features inside this component:
      1. Question: 2 out of 5 ( if you are at the first question -> where 2 is coming from your current question number, and 5 is coming from the total number of questions.)
      2. Question description
      3. 4 Options for the above question

    You can take the below picture as reference:

  4. Result.js -> Once the user have attempted all the questions, he/she should get his/her score in percentage. You can take the below picture as reference:

NOTE: when you click on the button which changes toggles between dark and light mode -> the inner text of the button should also change -> ie: if the background is dark -> then light should be written on the button, else the vice-versa. You can see all the required functionalities working in the below given gif:

Demo:

Part2: More to come:

Once all the above mentioned functionalities are achieved -> then create two buttons named as

  1. Highlight: which upon clicking should highlight the question text -> by highlight we mean that -> the color of the question text should change to red.
  2. Remove Highlight: which upon clicking should remove the red color and go back to the color which was used earlier -> in the above eg case -> the color should come back to dark blue color.

You can see the working demo below in the gif:

Happy Coding ❤️!

kalvium-project-on-quiz-application's People

Contributors

balajisriraman avatar kalvium-program 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.