Computer Science
Civil Engineering, Politecnico di Milano, 2022/2023
The course is aimed at first-year civil engineering students that are introduced to the fundamental concepts of Computer Science (algorithms, programs, general structure of computers and computer systems).
The basic notions of computer programming (programming language, abstraction techniques, fundamental data types and control structures, sub-programs) are presented taking into account mainly the C language with an emphasis on both conceptual and practical aspects.
Calendar
IMPORTANT: The deadline for the submission of the AutoCAD project is monday 9th January 2023. Please note that this will be the only deadline: projects turned in after the deadline will be ignored. The mark of the project (if at least 2), will be valid for the whole year. The grades of the AutoCAD projects of the previous a.y. 2020/2021 and 2021/2022 are still valid.
Material
- Lectures
- Code snippets
- Exercise Sessions
- Homeworks: Assignements & Solutions
- An incomplete list to check your preparation
- An incomplete Cheatsheet (you can not use it during the exam, it is only meant to help you when you do the exercises at home)
Practical Sessions
Practical sessions are provided by Dr. Diego Stucchi.
Tutoring
Tutoring sessions are provided by Michele Craighero during January and February 2023. Partecipation is not mandatory but it is higly reccomended. Tutoring session will delivered both in presence and on-line: Webex room
Please use www.tutorapp.polimi.it to register your presence. Material is available here.
- 13th January 14:30-17:00 - classroom 26.04
- 17th January 14:30-17:00 - classroom 3.1.9
- 26th January 14:30-17:00 - classroom 3.1.5
- 30th January 14:30-17:00 - classroom 3.1.3
- 08th February 14:30-17:00 - classroom 3.1.8
- 13th February 14:30-17:00 - classroom 3.1.4
Exam
The exam consists in two parts:
- the written exam: covers the elements of programming in C and Fortran. The max grade is 27. The exam will last 2 hours during which no books or notes may be consulted, no calculators or cell phones may be used. The best way to prepare the written exam is by solving previous exams.
- the autoCAD project: covers the topics addressed during the autoCAD labs. The max grade is 6.
The final grade is given by the sum of the mark in the written test (if greater or equal to 15) and the mark of the AutoCAD project (if greater or equal to 2).
Mock exams
- 2022-12-16: exercises
Previous exams
- 2023-02-16: exercises with solutions
- 2023-02-03: exercises with solutions
- 2023-01-19: exercises with solutions
- 2022-07-19: exercises with solutions
- 2022-02-17: exercises with solutions
- 2022-02-04: exercises with solutions
- 2022-01-20: exercises with solutions
- 2021-09-02: exercises with solutions
- 2021-07-27: exercises with solutions
- 2021-06-25: exercises with solutions
- 2020-02-17: exercises with solutions
- 2020-02-05: exercises with solutions
Additional Resources
- The C Programming Language first edition available at the Internet Archive
- C online compiler to play with… but start using terminal as soon as possible!
- Peter Norvig, Teach Yourself Programming in Ten Years (Peter Norvig was Director of Research at Google)
I would like to thank Marco Lattuada, Marcello Restelli, Giacomo Boracchi and Andrea Fusiello for sharing with me their advices and their teaching materials on which the slides of this course are largely based.