Course unit code:
Course unit title:
Programming II
Mode of completion and Number of ECTS credits:
Exm (4 credits)
Course supervisor:
prof. Ing. Michal Kvasnica, PhD.
Name of lecturer(s):
R. Kohút (2023/2024 – Winter)
R. Kohút (2022/2023 – Winter)
R. Kohút, M. Kvasnica (2020/2021 – Winter)
K. Kiš, M. Kvasnica (2019/2020 – Winter)
P. Bakaráč, M. Kvasnica (2018/2019 – Winter)
P. Bakaráč, M. Kvasnica (2017/2018 – Winter)
J. Holaza, M. Kvasnica (2016/2017 – Winter)
J. Drgoňa, M. Kvasnica (2015/2016 – Winter)
Learning outcomes of the course unit:
Students should learn to develop learned basic programming in C/C++. Working with arrays and matrices, initialization and allocation of arrays. Input and output to a file, work with command line. Working with strings and simple data structures. Familiarity with the structures. Design and implementation of custom algorithms.
Prerequisites for registration:
Course contents:
1. Basics of working with pointers (allowance 3/6)
a. Pointer type variable, pointer's properties
b. Pointers as function arguments, pointers to function
c. Pointers arithmetic, sizeof operator

2. Dynamic memory allocation and release (allowance 3/6)
a. Memory allocation (malloc(), calloc(), realloc())
b. Memory release (free(), cfree())
c. Definition of one and multi dimensional dynamic fields

3. Structures and working with structures. (allowance 3/6)
a. Structure definition and properties
b. Pointer to structure, structure in structure
c. Structures and functions

4. Comparative, sorting and graphs algorithms (allowance 3/6)
a. Bubble sort
b. Quick sort
c. Heap sort
d. Simple graph algorithms

Planned learning activities and teaching methods:
The course is divided into lectures and exercises using computers.
Assesment methods and criteria:
Final test
Language of instruction:
Slovak, English
Facebook / Youtube

Facebook / Youtube