There is a specific regulation in the Gas codes I believe that would disallow it immediately if you went the gas hob route.
With an electric one it may depend on the installer - they really should not be there but there is no one specific electrical regulation that says so directly.
If you are renting have you had the EICR done yet that is now required by law? (For existing tenants this will need to be done before next April) - Those sockets are likely to be raised as an issue on that and will probably end up needing to be moved, but that will be the landlord's issue.
In the meantime, it may be worth either asking the question in advance if possible. In my experience the installers that are pre-booked when buying an appliance will either not care, or will refuse at the slightest sign of an issue.
What does the switch to the right of the sockets do? If it's not used, or can be left in the on position then maybe a solution such as westward has posted will get you through the immediate issue until the landlord can get them moved...