Please review pages 50 and 51 in your IB Computer Science textbook. Please don't bother reading about files on page 51.
Please also carefully read page 55 and 56 about dynamic vs static data structures. The table comparing dynamic vs static data structures on page 56 is very good.