A database is a collection of records. Each record contains a string of 5 bytes and a two-digit number, which is encoded with

A database is a collection of records. Each record contains a string of 5 bytes and a two-digit number, which is encoded with the minimum possible number of bytes (the same for all numbers). How many such records can be stored in a 2Kb memory?

In 1 byte, you can encode a number from 0 to 255, which means that we need 1 byte for a two-digit number.
One record will weigh 6 bytes (5 bytes string and 1 byte number).
2 kb = 2048 bytes
2048 bytes / 6 bytes = 341 records
Answer: 341.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.