I’m not certain which answer is expected. In one way (b) seems more likely than (a). However, whether you actually use a credit card to “get cash from your account” is somewhat debatable in my opinion. That makes it sound like your credit card account has a positive cash balance (i.e. there is positive cash there to “get”), which, given the way credit cards work, is not usually the case.
I would not be happy with either answer when used with ‘credit card’, as a credit card does not generally deal with cash from your account.
I would bve happy with both answers if used with ‘debit card’ as this card operates directly from your bank account, but a credit card works with borrowed money from somewhere other than your own account.
You can use a debit card to get cash from your account (via cashpoint or cashback services, etc.)
You can use a credit card to get cash loaned to you against the balance on your account.
You can use a debit card to pay cash from your account (in a shop, etc.)
You can use a credit card to pay an amount which would then be owed on your credit account.