COMPUTER SCIENCE AND PROGRAMMING LABORATORY
cod. 1007069

Academic year 2026/27
1° year of course - First semester
Professor
Massimo BERTOZZI
Academic discipline
Sistemi di elaborazione delle informazioni (IINF-05/A)
Field
Ingegneria informatica
Type of training activity
Characterising
72 hours
of face-to-face activities
9 credits
hub: PARMA
course unit
in ITALIAN

Learning objectives

The objective of the course is to provide the student with the ability to understand the principles of computer science and programming using C as the reference language and in particular: * Data representation * Algorithm concept * Basic architecture of processing systems * Procedural programming paradigm * Introduction to software engineering The skills to apply the knowledge listed concern the development of the so-called "computational thinking": * Decomposition of complex problems * Top-Down problem solving * Syntax and semantics of the C language

Prerequisites

No propaedeutics. However, it is assumed that the student knows the basics of using computers and the Internet - the equivalent of modules 1, 2, 3 and 7 of the ECDL (European Computer Driving Licence) syllabus.

Course unit content

1. Introduction to programming
2. Algorithms
3. Basic computer architecture
4. Programming languages
5. The C programming language
6. Number representation in computer science
7. Expressions in C
8. Bitwise operators
9. Flow control
10. Data types in C
11. Predefined functions in C
12. Arrays
13. Dynamic memory allocation and pointers
14. Pointers to pointers
15. C strings
16. Functions
17. Computational complexity, search and sorting
18. I/O in C
19. Composite data types
20. Function pointers
21. Vibe coding and AI-assisted programming

Full programme

1. Introduction to Programming

2. Algorithms
- Concept of an algorithm
- Meaning of a program
- Problem-solving approach
- Pseudocode and flowcharts
- Top-down and bottom-up approaches

3. Basic Computer Architecture
- History and evolution of computer architectures
- Main components of a CPU
- Von Neumann architecture

4. Programming Languages
- Language levels
- Machine and assembly languages
- High-level languages
- Interpretation and compilation

5. The C Language
- Why C?
- The standard
- Compilation phases
- Introduction to the elements of the language

6. Number Representation in Computing
- Memory
- Representation systems
- Binary format and conversions
- Hexadecimal format
- Signed numbers, 1's and 2's complement
- Fixed-point and floating-point numbers
- ASCII and UTF-x symbol representation

7. Expressions in C
- Operators & Operands
- Types
- Expressions
- Evaluation
- Precedence & Associativity
- Side effects

8. Bitwise Operators
- Motivation: hardware access, arithmetic efficiency, compact data storage
- Bitwise operators: AND (&), OR (|), NOT (~), XOR (^)
- Shift operators: left shift (<<), right shift (>>)
- Practical applications (masks, flags, efficient operations)

9. Flow Control
- Jacopini-Böhm theorem
- Sequence
- Selection: if(), switch()-case
- Loops: while(), do-while(), for(;;)

10. Data Types in C
- Variable definition
- Data types in C
- Scalar data types: floating point, integers
- Combining different data types, conversions
- Variable scope

11. Built-in Functions in C
- Modularity
- The C standard library

12. Arrays
- One-dimensional arrays: definition, usage, initialization, errors
- Multidimensional arrays

13. Dynamic Memory Allocation and Pointers
- Limits of static arrays
- Variable Length Arrays
- Pointers
- The void type
- Memory management functions (malloc, calloc, realloc, free)
- Common errors (memory leak, dangling pointer)

14. Pointers to Pointers
- Concept of pointer to pointer (double pointer)
- Syntax and usage (int **p)
- Dynamic allocation of multidimensional arrays
- Arrays of strings with double pointers

15. Strings in C
- String definition
- Storage
- Input/Output
- The string.h library
- Main operations
- Arrays of strings

16. Functions
- Defining a function: return type, formal parameters, data passing, prototypes
- Recursion

17. Computational Complexity, Search and Sorting
- Introduction to computational complexity
- Efficiency metrics: execution time and memory usage
- Big-O notation (overview)
- Search algorithms: linear search, binary search
- Sorting algorithms: selection sort, bubble sort, insertion sort
- Comparing algorithms

18. Input/Output in C
- Streams
- File concept
- Main operations: definition, opening, reading/writing, closing
- Text and binary files
- Console I/O

19. Composite Data Types
- Motivation
- The struct construct: definition, usage, element access, padding
- Brief mention of union and enum

20. Function Pointers
- Address of a function
- Defining and using function pointers
- Callbacks and examples: qsort(), bsearch()

21. Vibe Coding and AI-Assisted Programming
- Context: the impact of AI on the software job market
- What is vibe coding? (A. Karpathy, 2025)
- Main tools: ChatGPT/Claude, GitHub Copilot, Cursor/Windsurf, Replit Agent
- Limitations and risks of uncritical AI use
- Why knowing how to program is still necessary
- Responsible approach: from AI as generator to AI as code review assistant

Bibliography

K.N. King, C Programming: A Modern Approach (2nd Edition), W W Norton & Co

Bellini Guidi, Linguaggio C, Mc Graw Hill

Darnell Margolis, C manuale di programmazione, Mc Graw Hill

Any other C language reference manual is also acceptable.

Teaching methods

Classroom lessons, with the help of slides made available to students in advance. Guided solution of classroom exercises. Programming exercises in the laboratory.

Laboratory exercises are the most critical part of the course. The proposed exercises are relayed to the same general topics as the classroom lessons. The idea is to introduce the principles of programming, guiding the student to the solution of problems with an increasing level of complexity.

Assessment methods and criteria

Individual programming test in C, lasting 2 hours, held in the university's computer laboratories.

The exam consists of independently writing a C program based on a problem statement given at the beginning of the session.

Permitted materials:
- Up to 2 reference textbooks (bound; loose pages or printouts are not allowed).
- Mobile phones, USB drives, and other personal electronic devices are not permitted.

Code submission is automatic at the end of the allotted time (critical moment: students must verify the submission procedure before the exam).

Other information

The teaching materials used during lectures and laboratory activities are made available at:
https://www.ce.unipr.it/didattica/informatica/
In particular, the following are provided:
– lecture slides
– reference exercises in C
– past exam papers with their corresponding solutions
– laboratory assignements

2030 agenda goals for sustainable development

The course is related to the following Sustainable Development Goals of the 2030 Agenda:

Goal 4 – Quality Education
The course provides fundamental digital and programming skills, contributing to the high-quality technical and scientific education recogn
The course includes a dedicated module on the impact of artificial intelligence on the software job market (Vibe Coding), training professionals who are aware of ongoing transformations and able to adapt to the digital work environment.

Goal 9 – Industry, Innovation and Infrastructure
The topics covered — computer architecture, algorithms,The course is related to the following Sustainable Development Goals of the 2030 Agenda:

Goal 4 – Quality Education
The course provides fundamental digital and programming skills, contributing to the high-quality technical and scientific education recogn
The course includes a dedicated module on the impact of artificial intelligence on the software job market (Vibe Coding), training professionals who are aware of ongoing transformations and able to adapt to the digital work environment.

Goal 9 – Industry, Innovation and Infrastructure
The topics covered — computer architecture, algorithms, computational complexity, and systems programming — form the foundations of digital infrastructure and technological innovation.ised as a priority by the 2030 Agenda. Programming is explicitly recognized by UNESCO as a 21st-century literacy

Goal 8 – Decent Work and Economic Growth
The course includes a dedicated module on the impact of artificial intelligence on the software job market (Vibe Coding), training professionals who are aware of ongoing transformations and able to adapt to the digital work environment.

Goal 9 – Industry, Innovation and Infrastructure
The topics covered — computer architecture, algorithms, computational complexity, and systems programming — form the foundations of digital infrastructure and technological innovation.

Contact for this course


Student registry office

Contact the service desk unipr for information on your career and enrollment procedures.

Teaching quality service

T. 0521033663
E. dia.didattica@unipr.it

Education manager:
Elena Roncai