: Simple exercises utilizing the write system call to output a single character. Level 1: String and Character Manipulation ft_putchar : Writing a single character to standard output.
It typically comes you’ve done basic shell, C syntax, and simple algorithmic exercises during the first ~10 days of Piscine.
: Just like your daily projects, your code is graded by a system often called "Grademe" or similar. It checks for exact output matching and strictly follows the 42 Norm.
Displaying a single character, printing a specific string, or outputting a sequence of numbers. 2. String Manipulation
The structure of Exam 01 is linear and unforgiving. You are assigned tasks randomly from a pool, but everyone starts at the same difficulty level. Exam 01 Piscine 42
Whether you want a to practice on your local terminal? How comfortable you feel with C pointers right now? Share public link
: Dividing two integers and storing the quotient and remainder via pointers.
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.
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 : Simple exercises utilizing the write system call
A breath he didn’t know he was holding escaped his lungs. Easy. He cracked his knuckles. The muscle memory took over. He didn't even need to look at the man pages. He knew the prototype: char *ft_strncpy(char *dest, char *src, unsigned int n) . He knew the catch: strncpy doesn't guarantee null-termination if the source string is longer than n . He typed furiously, the clack-clack-clack of the keys sounding like a machine gun.
Lucas sat at cluster 3, row 2. His eyes were rimmed with the red glaze of a man who had survived on coffee and four hours of sleep. His git status was clean, his Norminette (the school’s notoriously strict code linter) was silent, and his heart was hammering against his ribs.
The most frustrating part of Exam 01 is . 42 has a strict coding standard (The Norm).
Good luck. sleep(8); before the exam. And remember: write(1, "Success\n", 8); : Just like your daily projects, your code
The screen paused. The connection to the correction server felt like an eternity. Norminette... OK Compilation... OK Tests...
For the cohort of "Piscineurs"—the hopeful students undergoing the intensive 26-day bootcamp known as the Piscine—this wasn't just a test. It was the first true gatekeeper. The first monster to slay.
Great! You have a solid grasp of the basics. Don't become complacent, as the next exams will be significantly harder.