Please enable JavaScript to use CodeHS

Create a quiz

In this project, students write a program that allows users to take quizzes that are generated from a template file.

Hard

25 Hours

High School

Project Description

Background

A variety of programs can be developed using Java. Through user input and a question/answer file, a quiz program can be created. Quiz programs let users practice answering questions or assess their understanding of various topics. The quiz program you’ll create can be tailored to different questions/answers for multiple topics.


Your Task

In this project, you’ll write a program that will allow the user to take a quiz and see how well they scored! You will be creating this program piece by piece over several challenges. You’ll develop classes for questions, the quiz itself, and the execution of the quiz. To make your quiz program customizable, you’ll develop a text file that houses your questions and answers for a quiz-reading class to access.

Project Demo

Explore this program before assigning it!