Super Mario World is chock full of these bonus rooms. Like this one that has rows and rows of ?-Blocks.
If you can hit them in the correct order (which is random), a 1-Up will pop out, but if you hit them in the wrong order
You get nothin'.
That's why it's recommended to enter these rooms with a Cape.
If you can manage to hit the bottom-left corner of the blocks, you'll be correct every time!
Which will allow you to get a few free 1-Ups for your troubles
And timing is key. If you hit the side of the blocks, it might not work (but, since it's pretty much random anyway, it might).
Good luck!