Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a class hierarchy used to represent test papers that would be given in school. It should include at least the following: FillInTheBlankQuestion A fill

Design a class hierarchy used to represent test papers that would be given in school. It should include at least the following:

FillInTheBlankQuestion

A fill in the blank question is a kind of question where the correct answer fills in a missing word in the provided text. For example. " _____ was the 16th US President."

Each FillInTheBlankQuestion has:

points

Number of points earned for answering the question correctly.

difficulty

Range of difficulty ranging from the constants MIN_DIFFICULTY to MAX_DIFFICULTY.

answerSpace

Amount of space that should be left on the paper so that the test taker can fill in the answer. This can be represented as the number of lines on the page.

questionText

The text of the question, e.g., "How much wood would a woodchuck chuck if a woodchuck could chuck wood?"

correctAnswer

The correct answer to the question.

For each FillInTheBlankQuestion, we should be able to create a String representation of the question as it should be presented to the student during a Test. This should include the blank space. We should also be able to create a String representation of the question which includes the correct answer, such as one that a grader might use when grading a paper.

In a test representation, this might look something like:

______ was the 16th US President.

and in an answer key representation, it might look something like:

___Abraham Lincoln___ was the 16th US President.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions