Another way to say "A child can act petulantly" is "Petulance is a childlike behavior."