In both cases, "by" can be omitted. And I would omit them.
Student or Learner
"Do you spend your free time by going out?".
"Do you spend your leisure time by watching tv or going out"?.
Would you not capitalize "tv"?
Yes, I would.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.