Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JAVA Design and implement a class to represent a multiple-choice question on an

ID: 3644378 • Letter: J

Question

JAVA Design and implement a class to represent a multiple-choice question on an exam. Each question consists of a section that asks the questions, and the four choices of answers, each of which is a letter followed by the answer. For Example: What type of method is typically declared as private and static?
a. Contructor
b. Instance
c. Class
d. Helper

The class should have attribute for the question, the four answers, and the correct response.
An example call to a contructor for this class would be
ExamQuestion q17 =

new ExamQuestion(

"What type of method is typically declared as private and static?",
"Contructor", "Instance", "Class", "Helper", 'd') ;

The class should supply observers that return each of the attributes as well as supply a method that prints the question on System.out in the format shown above. Develop a driver that tests the class.

Explanation / Answer

The correct choice is a) Contructor