Exam 01 Piscine 42 Exclusive
Typical exercises: ft_itoa, ft_list_push_front (linked lists), ft_strjoin (with free), ft_printf (simple).
The Shock: They will ask for linked lists or a simplified printf.
Deep Guide for ft_itoa:
Deep Guide for simple ft_printf (if it appears):
Good luck! (Bonne chance!)
The Exam 01 in the 42 Piscine is the second major milestone of the selection process, typically held on the second Friday of the intensive four-week coding bootcamp. Unlike the first exam (Exam 00), which often focuses on basic terminal commands and shell scripting, Exam 01 is widely considered the true "intro to C" test. Key Logistics & Rules
The exam environment is highly restricted to ensure that candidates rely only on their own knowledge:
The Examshell: You must log into a dedicated Examshell environment that locks your computer to a specific terminal-based session.
No Internet or Peer Help: All external communication is prohibited. You cannot use search engines or ask peers for help during the session.
The grademe Command: To submit a solution, you must use the grademe command. An automated grader (the "Moulinette") immediately tests your code.
Sequential Progression: You must pass Level 0 to unlock Level 1. If you fail a question, you may be given a different question of the same level, but you cannot proceed until you pass the current one. exam 01 piscine 42 exclusive
No Norminette: Interestingly, the standard "42 Norm" (strict formatting rules) usually does not apply during exams—the code only needs to work and compile. Core Topics to Master
To succeed in Exam 01, you should be comfortable with the concepts covered in the C00 through C04 modules:
Exam 01 of the 42 Piscine is the second exam in the intensive four-week coding bootcamp. It primarily tests your understanding of Command Line Arguments (
alongside fundamental concepts from the first week, such as loops, conditionals, and basic string manipulation. Core Exam Topics
To succeed in Exam 01, you should be comfortable with the following: Argument Handling : Working with char **argv to capture and use data passed via the terminal. Fundamental C Logic : Standard loops ( ), conditionals ( ), and basic arithmetic. String Manipulation
: Iterating through strings and basic comparisons or replacements. Standard Functions : Typically, only the function is allowed for output. Common Exercise Types
The exam system randomly assigns problems. Based on common patterns in the 42 curriculum, you might encounter: Display Tasks : Simple programs like (print 'z' followed by a newline) or Search and Replace
: Writing a program that replaces a character in a string with another character provided as an argument.
: Manipulating string arguments by rotating words or changing their order. Input Validation
: Handling cases where the number of arguments provided is incorrect (e.g., displaying only a newline if arguments are missing). Preparation Checklist Deep Guide for simple ft_printf (if it appears):
Surviving Exam 01: The First Real Test of the 42 Piscine The first Friday of the 42 Piscine is a rite of passage. After a whirlwind week of Shell projects and your first brush with C, you face Exam 01—the moment the training wheels come off. This exam isn't just about code; it’s about your ability to perform under pressure in a custom Linux environment without the safety net of your peers. What to Expect: The Format
Unlike the daily projects, the exam takes place in a controlled setting called the examshell. Time Limit: Typically 4 hours (usually from 2 PM to 6 PM).
Progression: Exercises are presented one by one. You must pass the current exercise to unlock the next. If the Moulinette (the automated grader) finds even a minor error, you get a 0 for that task and cannot proceed until it's fixed.
Zero Resources: No internet, no notes, and no help from neighbors. It's just you, your terminal, and your memory. Key Topics for Exam 01
Exam 01 focuses on the fundamental building blocks you’ve been grinding all week. Ensure you are comfortable with:
Argc & Argv: Handling command-line arguments is a major addition for this exam.
The Basics: Expect tasks involving write, loops (while loops only—for is forbidden), and basic if-else conditionals.
String Manipulation: Functions similar to ft_strlen, ft_putstr, or basic character comparisons are common at this level.
Classic Problems: Be ready for the infamous FizzBuzz or simple mathematical displays. Pro-Tips for Success
Master the Login: You have exactly 10 minutes to log into the exam system. If you fail to log in within that window, you automatically fail the exam. Practice your credentials! such as loops
No Norminette Required: Interestingly, the strict 42 "Norm" is usually not enforced during exams, and you don't need the standard header. Focus on functional, clean code.
Use grademe Wisely: Once you push your code to the rendu directory, use the grademe command to trigger the grading. Read the traces (error logs) carefully if you fail; they are your only guide to what went wrong.
Vim is Your Friend: You might not have access to VS Code. Being proficient in Vim basics ensures you aren't fighting your editor during the test. The Mindset: It’s Okay to Fail
Many "Pisciners" fail their first exam. The goal is to show progress. Use this time to experiment and see how you handle the "Deepthought" grading system. If you get stuck, don't give up—every minute spent debugging in that high-pressure environment is where the real learning happens. 42 Piscine - Diving In My First Week - DEV Community
Exam 01 of the 42 Piscine is often described as the "wake-up call" following the chaotic first week of Shell exercises. It is the second exam in the sequence (after Exam 00) and usually takes place on the second Friday. The Experience: "The First Real Test"
For many "swimmers," Exam 01 is where the reality of the C language truly sets in. While Exam 00 often involves basic Shell commands or environment setup, Exam 01 requires writing functional C code under strict time pressure.
The Psychological Barrier: Participants often report feeling a mix of frustration and "power" after the exam. It is common for students to fail early exams due to "stupid things" they thought they knew but couldn't reproduce without resources.
The Environment: The exam is held in a "cluster" (computer lab) under strict rules. There is no internet access, no peer help, and no personal notes—just the student, the terminal, and the automated grading system. Common Challenges & Content
Do NOT touch C yet.
Do all shell exercises first. They take 2 minutes each. That's 4-5 successful examshell grades immediately.
