Abbott's' two-cents' worth is correct.
The only situation where it would be correct to say "I like pear" is if you are referring to flavours - for example, of ice cream or drinks.
If you are talking about the fruits themselves, you have to use a plural form : "I like pears" or "I like mangoes". As "pear" and "mango" are countable nouns, it would be grammatically incorrect to use a singular form without a determiner. Someone referring to their favourite fruit by saying "I like pear" sounds like a two-year-old who hasn't learnt to talk properly yet - or an adult speaker of pidgin English with no understanding of basic grammar.
If you want to refer to a specific individual piece of fruit, you would say, for example, "I like this pear" (which you are holding) or "I liked the pear which I ate this lunchtime.". Otherwise, to talk about a liking for a type of fruit in general terms, you have to use a plural.
The same goes for any countable noun. For example, "I like that cat", "I like your cat" etc for a specific individual animal, or "I like cats" for the animals in general. You cannot use the word "cat" on its own in this situation.