• retagged by
2,578 views
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 algo­rithms 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 imple­mentation?

  • 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.
  1. S1
  2. S2
  3. S3
  4. S4

2 Answers

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!!
Answer:
Position:
Show:

Related questions

4 4 votes
1 answers 1 answer
3.6k
3.6k views
Ishrat Jahan asked Oct 28, 2014
3,574 views
Which of the following requirement specifications can be validated?S1: If the system fails during any operation, there should not be any loss of dataS2: The system must ...
0 0 votes
1 answers 1 answer
4.5k
4.5k views
Ishrat Jahan asked Oct 28, 2014
4,523 views
A software project plan has identified ten tasks with each having dependencies as given in the following table:TaskDepends OnT1-T2T1T3T1T4T1T5T2T6T3T7T3, T4T8T4T9T5, T7, ...
2 2 votes
1 answers 1 answer
3.6k
3.6k views
Ishrat Jahan asked Oct 28, 2014
3,642 views
Which of the following are NOT considered when computing function points for a software project?(O1) External inputs and outputs(O2) Programming language to be used f...
2 2 votes
4 4 answers
5.3k
5.3k views
Ishrat Jahan asked Oct 27, 2014
5,267 views
Find if the following statements in the context of software testing are TRUE or FALSE.(S1): Statement coverage cannot guarantee execution of loops in a program under test...