There are many possibilities:
- You are not printing to a terminal.
- Someone removed the beeper from the terminal.
- your terminal emulation doesn't support beeps
- ... or it is turned off by some option
- your speakers are muted.
- ....
By the way, you are actually printing a NUL followed by '7'.