ICC-P Exemples de questions pour le midterm
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).