Answer
f(1, p2 = 3, p3 = 4, p4 = 4) - Correct
f(1, p2 = 3, 4, p4 = 4) - Incorrect
f(p1 = 1, p2 = 3, 4, p4 = 4) - Incorrect
f(p1 = 1, p2 = 3, p3 = 4, p4 = 4) - Correct
f(p4 = 1, p2 = 3, p3 = 4, p1 = 4) - Correct
Work Step by Step
1st, 4th and 5th function calls are correct as they have correct number of arguments and all positional arguments appear before keyword argument. Also the order of keyword argument does not matter.
In 2nd function call positional argument is placed after keyword argument for p3, hence it is incorrect.
In 3rd function also positional argument is placed after keyword arguments for p3, hence it is incorrect.