Program-based solution of tasks on IP addresses and subnet masks in the unified state exam in informatics
https://doi.org/10.32517/2221-1993-2024-23-2-73-80
Abstract
The article presents a brute-force programing-based approach to solving tasks on IP addresses and subnet masks included in the newest demonstration version of the test materials for the Unified State Exam in informatics. Although authors of the tasks suggest to solve tasks of this type analytically, all the solution steps can be successfully automated. The article presents various options for solving typical tasks in Python and PascalABC.NET, including the use of ipaddress module from the Python standard library and special classes for handling network addresses from school module for PascalABC.NET. The techniques proposed in the article can be useful for students who have a good knowledge of programming, allowing them to save time when solving this class of USE tasks.
About the Author
K. Yu. PolyakovRussian Federation
Saint-Petersburg
References
1. Демонстрационный вариант контрольных измерительных материалов единого государственного экзамена 2024 года по информатике. https://doc.fipi.ru/ege/demoversii-specifikacii-kodifikatory/2024/inf_11_2024.zip
2. Демонстрационный вариант контрольных измерительных материалов единого государственного экзамена 2020 года по информатике. https://doc.fipi.ru/ege/demoversii-specifikacii-kodifikatory/2020/inf_ege_2020.zip
3. Кабанов А. М. Демонстрационная версия станции КЕГЭ. https://kompege.ru
4. Крылов С. С., Чуркина Т. Е. ЕГЭ-2024. Информатика. Типовые экзаменационные варианты. 20 вариантов. М.: Национальное образование, 2024. 250 c.
5. Поляков К. Ю. Материалы для подготовки к ЕГЭ по информатике (2024). https://kpolyakov.spb.ru/school/ege.htm
6. Поляков К. Ю., Еремин Е. А. Информатика. 10 класс (базовый и углубленный уровни). В 2 ч.: учебник. Ч. 1. М.: БИНОМ. Лаборатория знаний, 2019. 352 с.
7. Осипов А. В. PascalABC.NET: Введение в современное программирование. 573 с. https://pascalabc.net/downloads/OsipovBook/КнигаДляСайта.pdf
8. Осипов А. В. PascalАВС.NЕТ: Калькулятор сетей TCP/IP в библиотеке School. https://teletype.in/@ralex061/k_YLcCFPfVE
9. Открытый банк заданий ЕГЭ // ФИПИ. https://ege.fipi.ru/bank
10. ipaddress — IPv4/IPv6 manipulation library — Python 3.12.3 documentation. https://docs.python.org/3/library/ipaddress.html
11. PascalABC.NET. Современное программирование на языке Pascal. https://pascalabc.net
Review
For citations:
Polyakov K.Yu. Program-based solution of tasks on IP addresses and subnet masks in the unified state exam in informatics. Informatics in school. 2024;(2):73-80. (In Russ.) https://doi.org/10.32517/2221-1993-2024-23-2-73-80