Lucas typed grademe into his terminal. The screen flickered, and the assignment appeared.
In the Piscine, printf is often forbidden. You must be comfortable using write(1, &char, 1); . Practice converting integers to characters (the classic nb + '0' ) so you aren't fumbling with ASCII math during the countdown. 2. Read the Subject Twice
Exam 01 typically builds on everything from the first week and adds new mechanics: Command-Line Arguments : Heavy focus on Basic C Logic : Continued use of loops ( ), conditionals ( ), and basic types. Strings & Arrays : Basic manipulation and iteration through characters. : Initial exercises involving pointer manipulation (e.g., Common Exam Exercises Tasks are randomized, but frequently include: : Simple programs using to display a single character.
Your gateway to advanced exam problems is a solid understanding of argc and argv . This is how you pass information to your program. Don't just read about them; practice by recreating real-world Unix commands. A great way to prepare for Exam 01 is to complete the daily project, which is dedicated to argc and argv .
Scores are posted publicly (by anonymous login ID) within hours. The passing threshold varies by Piscine session but is usually around . A low score is not the end—the Piscine has multiple exams, and improvement is what counts. However, failing Exam 01 completely is a serious warning sign. Many who fail Exam 01 either drop out or spend the following week in intense remediation.
"I remember Exam 01. The first question: 'Write a function that prints 'Z' in the terminal.' I spent 20 minutes because I forgot the newline. The second question: 'ft_atoi.' I passed. The third question: 'ft_range.' I hadn't studied malloc properly. My computer froze. I panicked for 30 minutes. Finally, I rebooted, wrote a simple loop, and got 70%. I passed the Piscine by 2 points. Exam 01 saved me because I didn't give up on Level 2."
While the exact questions change, certain archetypes appear frequently. Practice these variations beforehand:
: Many students fail because they include a main function in their submission when the task only asks for a specific function. Tips for Success 42 Abu Dhabi – Piscine Day 11 (Exam01)
Conquering Exam 01 at the 42 Piscine: The Ultimate Survival Guide
The Exam Shell, an automated system, evaluates your code by comparing your output to expected outputs using specific test cases, including hidden tests. Core Topics Covered in Exam 01
You cannot see all the questions at once. You are assigned a random exercise from a specific difficulty tier (Level 0). You must write the code, push it to the exam repository, and type grademe in the exam shell. You move to Level 1, and your score increases.
: Managing strings (char arrays) and basic integer arithmetic.
Level 0 is usually incredibly simple. Take an extra 5 minutes to double-check your code, test it with edge cases, and ensure there are no memory leaks or typos. A failure on Level 0 ruins your momentum.
As I neared the end of the exam, I felt a sense of accomplishment wash over me. The problems that had once seemed so daunting now felt like a breeze. I submitted my work, feeling proud of the progress I had made.
: Writing a function that displays a string of characters on the standard output. : Returning the number of characters in a string. Program with argc/argv
You log into a restricted session that only allows access to the terminal and a local exam command.
If you are staring down the calendar at your first Friday exam, here is everything you need to know to survive and succeed. What is Exam 01?
You receive one exercise at a time. You cannot view or attempt the next question until you successfully pass the current one. If you submit code with a typo or a logic error, Moulinette rejects it, and you must fix it before moving forward. Core Topics Tested in Exam 01
Iterating through a string to swap or modify specific characters based on conditions. 3. Basic Arithmetic and Logic