Abstract

The article describes the methodology for teaching to schoolchildren and students the topic "One-dimensional dynamic arrays" in the PascalABC.NET programming language. It is shown that the transition from studying static arrays to dynamic arrays, although it will require time and some effort from the teacher, but all costs are paid off by the acquisition of a new powerful tool. In addition to dynamic arrays, the basics of working with List lists are outlined, which in many cases turn out to be more convenient than arrays. Lists are one of the basic data structures in many modern programming languages. The article describes the scope of lists and their difference from arrays. Examples of writing functions whose input and/or output parameters are arrays or lists are given. The technique of using slices for working with arrays and lists is considered. Slices provide a concise syntax for accessing a portion of an array. This allows you to significantly reduce the code, which in the traditional style contains a lot of cyclic actions. In closing, conclusions are drawn that the study of dynamic arrays and lists makes it easier to switch to programming in other modern languages.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call