🔲 EXAM (project 2020)

Exams of the new graph.
Subjects are in the folder of each exercises, along with a solution and a test file.
At the same time, I have presented the code as a sample for solving each of the functions.if you find any bug, write to "issues".

✅ Exam Rank 02

Original link to the subjects repository: click

Title Description Allowed functions level of difficulty
ft_printf Write a function named ft_printf that will mimic the real printf malloc, free, write, va_start, va_arg, va_copy, va_end ⭐⭐⭐⭐
get_next_line Write a function will store, in the parameter "line", a line that has been read from the file descriptor 0 read, free, malloc ⭐⭐⭐
inter Write a program that takes two strings and displays, without doubles, the characters that appear in both strings, in the order they appear in the first one. write ⭐⭐
union Write a program that takes two strings and displays, without doubles, the characters that appear in either one of the strings. write

✅ Exam Rank 03

Original link to the subjects repository: click

Title Description Allowed functions level of difficulty
micro_paint Write a program that will read an "operation file" and print the result in the terminal (rectangle) fopen, fread, fscanf, fclose, write, malloc, calloc, realloc, free, memset, powf, sqrtf ⭐⭐⭐
mini_paint Write a program that will read an "operation file" and print the result in the terminal (circle) fopen, fread, fscanf, fclose, write, malloc, calloc, realloc, free, memset, powf, sqrtf ⭐⭐⭐

Running tests

✅ Exam Rank 04

Original link to the subjects repository: click

Title Description Allowed functions level of difficulty
microshell Write a program that will behave like executing a shell command malloc, free, write, close, fork, waitpid, signal, kill, exit, chdir, execve, dup, dup2, pipe, strcmp, strncmp ⭐⭐⭐⭐

Hint:

To check for leaked file descriptors, use the command lsof -c microshell. Pay attention to the section PIPE

Running tests

✅ Exam Rank 05

Hint

❗ Cpp_module_01 contains an intentional typo in the task description:
✖️ (LittleKid.hpp LittleKid.cpp)
✔️ (Dummy.hpp Dummy.cpp)

❗ Also cpp_module_02 contains an intentional typo in the class Polymorph:
✖️ ("turned into critter")
✔️ ("turned into a critter")

be careful...

Review

Title Description Allowed functions level of difficulty
cpp_module_02 Polymorphism All ⭐⭐⭐
cpp_module_01 Inheritance All ⭐⭐
cpp_module_00 Encapsulation All

🔲 Exam Rank 06

(very soon)