'Studying about pneumonia' may not be very helpful - the source may not be official; could be uncensored - any lay person too cancomment / one has to be careful to look at authorised and approved areas.
It is difficult even for a doctor to find out which type of pneumonia it is - of course there are ways like Broncho Alveolar Lavage etc - WHICH ARE NOT INDICATED AND ENTAIL PROBLEMS BY THEMSELVES
Long term prophylaxis varies - on the precipitating events. / Has the child received routine immunisations? including Pneumococcal and Haemophilus Influenza
It could be only asthma
- if it is seasonal. Allergy
- eg. Pollen - and viral infections may contribute.
A good Paediatric Respiratory Physician could establish proper diagnosis...