Software Engineering Data Dictionaries (1 Viewer)

mickeyd_357

New Member
Joined
Jul 21, 2025
Messages
17
Gender
Female
HSC
2026
Hi I was just wondering if anyone could explain to me how to calculate the number of bytes needed for storage for data dictionaries. I saw a question from the 2020 SDD hsc exam (Q25). I am confused about how to calculate it for string, integers and other data types. Why is an integer 4 bytes? How many bytes is a letter?
Any help would be greatly appreciated
 

Socialism

§øç¡ålîšm - SHE/HER please 💜
Moderator
Joined
Jun 3, 2024
Messages
2,320
Location
🏳️‍⚧️Transnistria🏳️‍⚧️
Gender
Female
HSC
2026
As a rule of thumb, one character is one byte. The data dictionary on page 8 might give you some information as well.
They also specify that booleans are 1 bit (which doesn't really make sense... i can't remember exactly why but my teacher was quite annoyed 2 weeks ago when he saw)
and that date/time is 4 bytes
 

Attachments

Socialism

§øç¡ålîšm - SHE/HER please 💜
Moderator
Joined
Jun 3, 2024
Messages
2,320
Location
🏳️‍⚧️Transnistria🏳️‍⚧️
Gender
Female
HSC
2026
actually, i've got no idea because the internet is saying different things than the course specs
check with your teacher
i would assume that the course specs are what they base the correct answers off, but it might be rough if you get a marker who isn't aware that the course specs say these apparently weird things
 

dav53521

Well-Known Member
Joined
Mar 23, 2022
Messages
309
Gender
Male
HSC
2022
They also specify that booleans are 1 bit (which doesn't really make sense... i can't remember exactly why but my teacher was quite annoyed 2 weeks ago when he saw)
Just FYI a singular bit can be used to represent a boolean as 0 is used to represent false and 1 is used to represent true. However, a lot of languages use a byte for a boolean as we don't really work in bits anymore, but they still use 0 and 1 to represent false and true
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top