Title: Q-17, Activity 2.5.2.2. Minor fixes · Issue #198 · pearcej/cpp4python · GitHub
Open Graph Title: Q-17, Activity 2.5.2.2. Minor fixes · Issue #198 · pearcej/cpp4python
X Title: Q-17, Activity 2.5.2.2. Minor fixes · Issue #198 · pearcej/cpp4python
Description: 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 as varPtr: 50, but that is not technically correct. It would only print 50. If the in...
Open Graph Description: 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 as varPtr: 50, but that is not technically co...
X Description: 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 as varPtr: 50, but that is not te...
Opengraph URL: https://github.com/pearcej/cpp4python/issues/198
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Q-17, Activity 2.5.2.2. Minor fixes","articleBody":"A few related minor issues in Activity 2.5.2.2., [section 2.5.2.](https://runestone.academy/ns/books/published/cpp4python/AtomicData/AtomicData.html#accessing-values-from-pointers):\r\n\r\n1) The question asks what `cout \u003c\u003c *ptrN \u003c\u003c endl;` would print and marks the correct answer as `varPtr: 50`, but that is not technically correct. It would only print `50`. If the intention is to print `varPtr: 50` the statement should be `cout \u003c\u003c \"varPtr: \" \u003c\u003c *ptrN \u003c\u003c 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, `varPtr` seems to be an older name of the pointer in the example, should probably be updated to `ptrN` now.\r\n\r\n2) 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.\r\n\r\n3) 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 than `150`.\r\n\r\n4) 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.","author":{"url":"https://github.com/PeturOA","@type":"Person","name":"PeturOA"},"datePublished":"2024-01-30T15:46:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/198/cpp4python/issues/198"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0792133f-a922-3e3e-7c93-5de08a11ad8f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97BC:1EFC2B:128EC6B:17F2AC9:6990D13F |
| html-safe-nonce | 48c7194d56959271e13223032ed8e6e04b8c12096fd580ab260d103db1bf7d6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0JDOjFFRkMyQjoxMjhFQzZCOjE3RjJBQzk6Njk5MEQxM0YiLCJ2aXNpdG9yX2lkIjoiNTA3NzY3ODAzMTgwNTQwMzQ1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84af79f2c9bae4ff4adab9e558df43d591858381800d9a4d7caa9065e4a56d83 |
| hovercard-subject-tag | issue:2108184061 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pearcej/cpp4python/198/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83f0e79f5e5079c7286792ac2f007f622413a1c530e54173937f1a3df32a34a9/pearcej/cpp4python/issues/198 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83f0e79f5e5079c7286792ac2f007f622413a1c530e54173937f1a3df32a34a9/pearcej/cpp4python/issues/198 |
| og:image:alt | 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 as varPtr: 50, but that is not technically co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PeturOA |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/pearcej/cpp4python git https://github.com/pearcej/cpp4python.git |
| octolytics-dimension-user_id | 1608025 |
| octolytics-dimension-user_login | pearcej |
| octolytics-dimension-repository_id | 132641617 |
| octolytics-dimension-repository_nwo | pearcej/cpp4python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 132641617 |
| octolytics-dimension-repository_network_root_nwo | pearcej/cpp4python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width