public class MCQuiz extends Object
Constructor and Description |
---|
MCQuiz(String filename)
Constructs a new multiple choice quiz from a specified filename
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the quiz
|
String |
getStudent()
Returns the name of the student who took the quiz
|
int |
numberCorrect()
Returns the number of answers the student gave that were correct
|
String |
toString()
Returns a string representation of the quiz: Student (Quiz Name): NumberCorrect
|
public MCQuiz(String filename) throws FileNotFoundException
FileNotFoundException