It's UWAweek 51

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 7 articles in this topic
Showing 7 of 835 articles.
Currently 1 other person reading this forum.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
12:23pm Mon 16th Sep, ANONYMOUS

Feel the same way. Why to create such ambiguity in the description of the question? This cannot verify whether we have mastered the knowledge. On the contrary, such tricks make me more confused and increase the difficulty of mastering the correct knowledge. I hope that Dr Amitava won't use this kind of word-game style questions in the final exam.


SVG not supported

Login to reply

👍?
helpful
1:21pm Mon 16th Sep, ANONYMOUS

ANONYMOUS wrote:

After going through multiple years of forums, I believe I found an answer to this specific question here: https://secure.csse.uwa.edu.au/run/help2002?p=np&opt=U215&year=2019

Thanks for the link. However, unless I'm misinterpreting it, that thread ended unresolved too. Dr. McDonald's only contribution in that thread was a non-answer (below):

Will it? In all cases? There are no trick questions in the tests.

All the other messages seem to be speculation, where the same arguments are made (what if fork() doesn't work). As far as I can tell, the only new information from that thread is that Dr. McDonald doesn't view it as a trick question. While it is interesting that it means it's not a mistake, he doesn't elaborate on it at all or provide any indication about what the question is supposed to be testing, so my point still stands that there is no available explanation.

You also note that the question has similar phrasing to questions 8, 10, and 13 - this is not entirely true, as those questions specifically mention that the code is a function and question 20 just calls it "C code" (which is only a slight distinction, but still somewhat relevant).

I'm not sure how meaningful this distinction is. The "code" that is talked about being executed is the function body. There is no other code in the question. Perhaps the argument could be made in a language like Python, the "code" could be "executed" in the sense that it is processed by the interpreter but the function is not necessarily called, but in C this is handled at compile time so it doesn't really apply. I think it's an uncontroversial statement that any reasonable reader would expect "the code executes successfully" to mean "the code in the body of the function executes successfully".


SVG not supported

Login to reply

👍?
helpful
2:23pm Mon 16th Sep, ANONYMOUS

ANONYMOUS wrote:

ANONYMOUS wrote:

After going through multiple years of forums, I believe I found an answer to this specific question here: https://secure.csse.uwa.edu.au/run/help2002?p=np&opt=U215&year=2019

Thanks for the link. However, unless I'm misinterpreting it, that thread ended unresolved too. Dr. McDonald's only contribution in that thread was a non-answer (below):

Will it? In all cases? There are no trick questions in the tests.

All the other messages seem to be speculation, where the same arguments are made (what if fork() doesn't work). As far as I can tell, the only new information from that thread is that Dr. McDonald doesn't view it as a trick question. While it is interesting that it means it's not a mistake, he doesn't elaborate on it at all or provide any indication about what the question is supposed to be testing, so my point still stands that there is no available explanation.

It does seem like this question is an issue with semantics (which has happened before) and being such a minute detail of the system call. It seems, at least, possible that by "successfully executes" it just means that it doesn't have any run-time errors, but I am not sure why that would be the case either. There is also another thread I found here but this is still rather vague.


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
2:53pm Fri 27th Sep, ANONYMOUS

Just wondering if you have added a mark for question 20 to our marks yet?


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
2:45pm Mon 7th Oct, Joshua N.

You have no idea what is in stdout when you call print. When you call print the buffer is "flushed" everything inside of it comes out. So, there no guarantee that the result will *always* be print 4 times. As the correct answer said: "The form of output can't be determined by the above code".


SVG not supported

Login to reply

👍?
helpful
2:47pm Mon 7th Oct, Joshua N.

"Joshua Noble" <22*6*9*8@s*u*e*t*u*a*e*u*a*> wrote:
> You have no idea what is in stdout when you call print. When you call print the buffer is "flushed" everything inside of it comes out. So, there no guarantee that the result will *always* be print 4 times. As the correct answer said: "The form of output can't be determined by the above code".
I meant to say "hello world" four times.


 UWA week 43 (2nd semester, study break) ↓
SVG not supported

Login to reply

👍?
helpful
4:35pm Tue 22nd Oct, ANONYMOUS

was wondering if we are still getting an extra mark for the last question in the mid sem. 

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy