nus-cs2113-AY2021S2 / forum

5 stars 0 forks source link

AY2019/20 Mock MCQ #62

Open kwokyto opened 3 years ago

kwokyto commented 3 years ago

Question 9

image

Why is this true? How specific will you be? I would argue because this is a problem with magic strings not numbers.

Question 26

The solution states that "system testing covers both", but I feel that it is a little unfair given the way the statement is phrased? For example, there is a difference between "X covers -ve testing" and "X only covers -ve testing". Would leeway be given for ambiguous statements like this?

okkhoy commented 3 years ago

Q9: Magic number / Magic string / Magic literal all belong to the same class. In that sense it is true. Q26: Hmmm.. I think I have taken care to avoid ambiguities in the main paper. You can make your assumption/argument known in the notes (as suggested in the announcement). I will take a look when marking.

kwokyto commented 3 years ago

Thank you prof @okkhoy ! Can I check with you on one more question? Is code coverage on Intellij not static? This is question 29.

okkhoy commented 3 years ago

code coverage is not static. you need to run the code to identify coverage.