0 0 votes A software engineer is required to implement two sets of algorithms for a single set of matrix operations in an object oriented programming language; the two sets of algorithms are to provide precisions of 10-3 and 10-6, respectively. She decides to implement two classes, Low Precision Matrix and High Precision Matrix, providing precisions 10-3 and 10-6 respectively. Which one of the following is the best alternative for the implementation? S1: The two classes should be kept independent. S2: Low Precision Matrix should be derived from High Precision Matrix. S3: High Precision Matrix should be derived from Low Precision Matrix. S4: One class should be derived from the other; the hierarchy is immaterial. S1 S2 S3 S4 IS&Software Engineering gateit-2008 is&software-engineering normal + – Ishrat Jahan 2.6k views answer comment Share Follow Print See 1 comment 1 1 comment reply P0535_Yedidyah_Sagar commented Aug 11, 2025 reply Follow flag Out of syllabus 0 0 replyShare Please log in or register to add a comment.
1 1 vote I think answer should be (B).. because we can derive low precision matrix from high precison by some loss of information. eg: high precision one return a. bcdefg ( a 6 bits decimal.) we can derive a low precision depends on how much we want a. bcd (by loss of some information, three bits here).. But on the other hand we can not derive a high precision from a low precision because once a calculation has been done that means once infomation has been lost we can't recover it back.. so deriving high precision from low precision is not possible as per my understanding...... Arjun Sir pls help!! Vicky Bajoria answered Dec 31, 2014 Vicky Bajoria comment Share Follow See all 3 Comments 3 3 Comments reply Danish commented Jan 10, 2015 reply Follow flag But if we choose option (b) then we are actually doing Extra amount of Work/Calculations which is not required for Low Precision Matrix Class 0 0 replyShare Vicky Bajoria commented Jan 10, 2015 reply Follow flag yes.. that is also a valid point.. So is what is the answer and how?? 0 0 replyShare Danish commented Jan 10, 2015 reply Follow flag Dont know bhai confused between S1 and S3 ... answer which I have says S3 without any explanation. S3 makes sense But then again I am confused that How can we obtain a high precision result starting from a low precision result without doing the calculations all over again. 0 0 replyShare Please log in or register to add a comment.
0 0 votes B is the option mohit jain answered Mar 5, 2019 mohit jain comment Share Follow 0 reply Please log in or register to add a comment.