Say which practical activity you can do and ask a familiar person about theirs. Choose the subject and the kunnen form, then use the complete activity verb without te. Compare the earlier necessity with the new activity: We moeten koken means we need to cook; Ik kan koken means I have the ability to cook. Both keep the activity in the full infinitive without te.
Ik identifies you, the speaker. Zwemmen means swim. Kunnen here means having the ability to do an activity. Choose kan with ik: Ik kan zwemmen. The activity stays a complete infinitive without te; do not say Ik kan zwem or Ik kan te zwemmen. The finite form and subject are separate from that infinitive, which comes at the end of this short main clause.
Koken means cook. Reuse ik kan and supply the complete infinitive koken without te: Ik kan koken. This changes the activity, not the person form.
With informal singular je or jij following kunnen, this course uses kun: Kun je koken? Put the finite verb before the subject to ask the known yes/no question, and leave the infinitive at the end. Kan je is also correct, especially in informal Netherlands Dutch; do not treat it as an error. Polite u has its own form choice, prepared later.