Information, calcul, communication

CS-119(h)

ICC-P Exemples de questions pour le midterm

This page is part of the content downloaded from ICC-P Exemples de questions pour le midterm on Sunday, 25 January 2026, 01:39. Note that some content and any files larger than 50 MB are not downloaded.

Description

You will find two files here:

  • PDF file with examples of Python coding questions relevant to the midterm exam.

  • Python script with the corresponding code.


To run the script and display the expected answer for a specific question, use the following command in your terminal:

python <script_name> <year> <question>

For example:

python ICC-P-Practice-Midterm-Solutions.py 2023 5

This command will show the expected answer for Question 5 (Year 2023). Make sure your terminal’s current directory matches the location of your script.

You may notice that questions from 2024 are missing; we will share them in the week leading up to the midterm exam (after the break). Update: the questions and answers from the midterm exam in Fall 2024 are online, under "Semaine 7".


Files and subfolders