To enable or disable Keyboard Clicks or Lock Sound, from the Sounds screen select the desired switch.
To silence calls, alerts, and notifications, from the home screen select the Settings app > scroll to and select Do Not Disturb > select the Do Not Disturb switch.
Note: When Do Not Disturb is enabled, calls and notifications will be silenced. To quickly enable or disable Do Not Disturb, swipe up from the bottom of the screen to show the quick settings menu, then select the Do Not Disturb icon. Learn more from Apple support articles:Use Do Not Disturb on iPhone.
When Do Not Disturb is enabled, the Do Not Disturb icon will be displayed on the Notification bar.