Preview

Informatics in school

Advanced search

Dynamic arrays and lists in PascalABC.NET

https://doi.org/10.32517/2221-1993-2022-21-1-67-80

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.

 

About the Authors

V. O. Dzhenzher
Orenburg State Pedagogical University
Russian Federation

Orenburg



L. V. Denisova
Orenburg State Pedagogical University
Russian Federation

Orenburg



References

1. Босова Л. И., Босова А. Ю. Информатика. 9 класс: учебник. 6-е изд.М.: БИНОМ. Лаборатория знаний, 2016. 208 с.

2. Галовиц Я. С++17. Стандартная библиотека шаблонов. СПб.: Питер, 2018. 432 с.

3. Калинин И. А., Самылкина Н. Н. Информатика. 10 класс. Углубленный уровень: учебник. М.: БИНОМ. Лаборатория знаний, 2019. 256 с.

4. Михалкович С. С., Дженжер В. О. Новые примитивы в школьном программировании // Преподавание информационных технологий в Российской Федерации: сборник научных трудов. Материалы Восемнадцатой открытой всероссийской конференции (Москва, онлайн, 14–15 мая 2020 г.) / отв. ред. А.В. Альминдеров. М., 2020. С. 333–334. https://it-education.ru/conf2020/thesis/IT-education_in_Russia_Thesis_2020_preview.pdf

5. Осипов А. PasсalABC.NЕT. Введение в современное программирование. Ростов-на-Дону, 2019. 572 с. http://pascalabc.net/downloads/OsipovBook/ModernProgr.pdf

6. Поляков К. Ю., Еремин Е. А. Информатика. 10 класс. Базовый и углубленный уровни: учебник: в 2 ч. Ч. 2. М.: БИНОМ. Лаборатория знаний, 2020. 352 с.

7. Седжвик Р., Уэйн К., Дондеро Р. Программирование на языке Python: учебный курс / пер. с англ. СПб.: Альфа-книга, 2017. 736 с.

8. Семакин И. Г., Шеина Т. Ю., Шестакова Л. В. Информатика. Углубленный уровень: учебник для 10 класса: в 2 ч. Ч. 1. М.: БИНОМ. Лаборатория знаний, 2014. 184 с.

9. Система программирования PascalABC.NET. http://pascalabc.net/

10. Array slicing // Wikipedia. https://en.wikipedia.org/wiki/Array_slicing

11. PascalABC.NET: статьи, примеры. Программы и алгоритмы с использованием массивов. https://pascalabcnet.github.io/progr_arrays.html

12. The Python Tutorial. An Informal Introduction to Python. https://docs.python.org/3/tutorial/introduction.html#strings


Review

For citations:


Dzhenzher V.O., Denisova L.V. Dynamic arrays and lists in PascalABC.NET. Informatics in school. 2022;(1):67-80. (In Russ.) https://doi.org/10.32517/2221-1993-2022-21-1-67-80

Views: 299


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.


ISSN 2221-1993 (Print)