cpp4python
cpp4python copied to clipboard
Q-17, Activity 2.5.2.2. Minor fixes
A few related minor issues in Activity 2.5.2.2., section 2.5.2.:
-
The question asks what
cout << *ptrN << endl;would print and marks the correct answer asvarPtr: 50, but that is not technically correct. It would only print50. If the intention is to printvarPtr: 50the statement should becout << "varPtr: " << *ptrN << endl;. As it is, option e is actually the (technically) correct one (although marking it as such would make this a bit of a trick question). Also,varPtrseems to be an older name of the pointer in the example, should probably be updated toptrNnow. -
The feedback for answer a is inconsistent with the answer itself, after the value was changed from 100 to 9 in commit https://github.com/pearcej/cpp4python/commit/8ab95eb32145579baafc85ee860784e96d108ab4.
-
The feedback for answer c is also inconsistent with the answer. Judging the intention by the feedback text, the answer should be updated to be
59, rather than150. -
The question itself could be a little clearer about where this extra code should be inserted. Clearly, it needs to be inserted after line 7, for example between lines 7 and 8, rather than "into line 7-8", which could mean the same thing but is a little vague.
@PeturOA, I am working on all the issues (#198) you raised above. We appreciate your contribution!