Dissection Quiz
Dissection Quiz
1/1
point
1.
Lines 54-58 show an example of
a mutator method that makes an explicit call to a constructor in the super class.
Correct
1/1
point
2.
Line _______ is the rst line of a overridden method in the subclass.
78
Correct Response
1/1
point
https://www.coursera.org/learn/java-for-android/exam/kQeY7/module-7-quiz-on-code-dissection 1/5
22/03/2019 Java for Android - Home | Coursera
3.
Module 7 quiz
Line _______ is theon
rstcode
line of "dissection"
a mutator method that is inherited by the subclass. 6/6 points (100.00%)
Quiz, 6 questions
17
Correct Response
1/1
point
4.
LIne _________ is the rst line of a method in the super class that is not inherited by the subclass.
31
Correct Response
Correct! Because this is a private method, it is not inherited by the subclass.
1/1
point
5.
Select all of the lines of code that could be written in the subclass. (i.e. would not cause a compile error or
a runtime error)
1 String inputString;
2 ...
3 this.name = inputString;
Un-selected is correct
1 super.setMonth(8);
https://www.coursera.org/learn/java-for-android/exam/kQeY7/module-7-quiz-on-code-dissection 2/5
22/03/2019 Java for Android - Home | Coursera
Correct
Module 7 quiz on code "dissection" 6/6 points (100.00%)
super.setMonth(8); is correct.
Quiz, 6 questions
1 super.convertToString();
Un-selected is correct
1 setMonth(8);
Correct
setMonth(8) is correct.
Correct
int num = super.getDays() is correct! The keyword super here is optional.
1 convertToString();
Un-selected is correct
1/1
point
6.
https://www.coursera.org/learn/java-for-android/exam/kQeY7/module-7-quiz-on-code-dissection 3/5
22/03/2019 Java for Android - Home | Coursera
Un-selected is correct
Un-selected is correct
Correct
Un-selected is correct
Correct
https://www.coursera.org/learn/java-for-android/exam/kQeY7/module-7-quiz-on-code-dissection 4/5
22/03/2019 Java for Android - Home | Coursera
https://www.coursera.org/learn/java-for-android/exam/kQeY7/module-7-quiz-on-code-dissection 5/5