The correct option is
C to cook
The verbs that do not explain the tense of the sentence and do not agree with the subject are called non-finite verbs. Non-finite verbs are usually infinitives, gerunds and participles.
Option A - 'Cooking' is the participle form of the verb and is a finite verb as it can explain the tense of the sentence. However, 'cooking' is grammatically incorrect to use here. Hence, option A is incorrect.
Option C - Cooked' is the past form of the verb and is a finite verb. As the sentence is in the present tense, it is grammatically incorrect to use 'cooked' here. Hence, option C is incorrect.
Option D - 'To be cooked' is used in passive voice. As the sentence is in the active voice, we can't use 'to be cooked' here. Also, it is grammatically incorrect. Hence, option D is incorrect.
Option B - 'To cook' is an infinitive and is a non-finite verb as it doesn't explain the tense. Hence, we can use 'to cook' here. Thus option B is the correct answer.
'You don't need to cook yet, there's still some time left for the guests to come.'