It's UWAweek 47

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 828 articles.
Currently 100 other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
10:30pm Tue 20th Aug, ANONYMOUS

Hi Chris, I was lost with question 7, I thought the answer maybe A but it is B can you please explain. Thanks :)


SVG not supported

Login to reply

👍?
helpful
10:36pm Tue 20th Aug, ANONYMOUS

Where did you get the answers? There is still no page 9 in the sample test


SVG not supported

Login to reply

👍?
helpful
10:42pm Tue 20th Aug, ANONYMOUS

Here:



This article has 2 attachments:

 

 

SVG not supported

Login to reply

👍?
helpful
10:47pm Tue 20th Aug, ANONYMOUS

This is not the right answer bro, I'm 100% sure the answer of Q10 is C not A


SVG not supported

Login to reply

👍x1
helpful
3:40am Wed 21st Aug, Christopher M.

ANONYMOUS wrote:
> Hi Chris, I was lost with question 7, I thought the answer maybe A but it is B can you please explain. Thanks :)
If the size of one integer was *always* 4 bytes, then the answer would be A) 400 bytes. The C11 standard (nor any C standard) does not specify sizeof(int) to always be 4. For what reasons might sizeof(int) *not* be 4?


SVG not supported

Login to reply

👍?
helpful
1:59pm Wed 21st Aug, ANONYMOUS
✅ content verified by our teaching staff  

Not OP but would it be because it depends on the bits (i.e. 32-bit or 64-bit) where 32-bit is 4 bytes per integer but something like 16-bit will give 2 bits so it'll be value of 200. That's why the answer is B. Because the value/byte of each object is dependent on the operating system and compiler ?


SVG not supported

Login to reply

👍?
helpful
2:34pm Wed 21st Aug, Christopher M.

ANONYMOUS wrote:
> That's why the answer is B. Because the value/byte of each object is dependent on the operating system and compiler ?
That's correct.

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