Incorrect checking

104 views
Skip to first unread message

Anubhav

unread,
May 3, 2025, 10:18:03 AM5/3/25
to Discussion forum for Programming In Java
Week 5 : Quiz assignment 5 
Answer of Question 10 given by NPTEL  is incorrect 
Correct Answer should be ( B).

Praveen S N

unread,
May 3, 2025, 10:19:25 AM5/3/25
to Anubhav, Discussion forum for Programming In Java

Yeah i agree with that


--
You received this message because you are subscribed to the Google Groups "Discussion forum for Programming In Java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to noc25-cs57-disc...@nptel.iitm.ac.in.
To view this discussion visit https://groups.google.com/a/nptel.iitm.ac.in/d/msgid/noc25-cs57-discuss/c49eafa5-8c1c-4c79-b754-d2e2f920f876n%40nptel.iitm.ac.in.
For more options, visit https://groups.google.com/a/nptel.iitm.ac.in/d/optout.

Prateek kumar Srivastava

unread,
May 3, 2025, 2:48:51 PM5/3/25
to Anubhav, Discussion forum for Programming In Java
Week 5 : Quiz assignment 5
Answer of Question 10 given by NPTEL  is absolutely correct.
Correct Answer is option A only. 

--

Nanda Kumar Marati

unread,
May 3, 2025, 10:18:25 PM5/3/25
to Discussion forum for Programming In Java, Anubhav
No Bro, Option A is Correct. The Result Value Changes when super.calculate() is called, result value was 27 before, it became 9 in the square class so that's why the both the Square and Cube prints as 9. 
Reply all
Reply to author
Forward
0 new messages