COMPUTER SCIENCE AND PROGRAMMING LABORATORY
cod. 1007069

Academic year 2025/26
1° year of course - First semester
Professor
Massimo BERTOZZI
Academic discipline
Sistemi di elaborazione delle informazioni (ING-INF/05)
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 architectures 4. programming languages 5. representation of numbers in computer science 6. C programming language 7. expressions in C 8. flow control 9. Data types in C 10. Predefined functions 11. Arrays 12. Dynamic memory allocation and pointers 13. C strings 14. functions 15. I/O in C 16. composite data 17. function pointers

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 Representation of ASCII and UTF-x symbols 7. Expressions in C Operators & Operands Types Expressions Evaluation Precedence & Associativity Side effects 8. Control Flow Jacopini-Böhm theorem Sequence Selection if() switch()-case Loops while() do-while() for(;;) 9. Data Types in C Variable definition Data types in C Scalar data types Floating point Integers Combining different data types Conversions Variable scope 10. Built-in Functions in C Modularity The C library 11. Arrays One-dimensional arrays Definition Usage Initialization Errors Multidimensional arrays 12. Dynamic Memory Allocation and Pointers Array limits Variable Length Arrays Pointers The void type Memory management functions Common errors 13. Strings in C String definition Storage Input/Output The string.h library Main operations Array of strings 14. Functions Defining a function Return type Formal parameters Data passing Prototypes Recursion 15. Input/Output in C Streams File concept Main operations Definition Associating a stream Reading/writing and other operations Closing Text and binary files Console I/O 16. Composite Data Types Motivation for composite data The struct construct Definition Usage Accessing elements Padding Brief mention of union and enum 17. Function Pointers Address of a function Defining and using function pointers Callbacks and examples qsort() bsearch()

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

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

Programming test, using C, in two hours in the laboratory

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

Not applicable.
The course has a predominantly technical and disciplinary content and does not show a direct correlation with the objectives of the 2030 Agenda for Sustainable Development.

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