When an app is uninstalled, is its SharedPreferences database cleared? When an app is uninstalled, is the data in its SharedPreferences database deleted?

If not, without a device being rooted, is there any way to clear that data?  (Or at least view it?)
SharedPreferences are actually saved in a file in the app private directory:
/data/data/package_name/shared_prefs/somefilename.xml
When an app is installed this directory and file are automatically created. When an app is uninstalled this directory is deleted along with its parent /data/data/package_name UNLESS the app is uninstalled in order to update it.
From command line this is done using the flag -k or -r that is
adb uninstall -k package_name  - Keep the data and cache direct­ories around after removal
adb install -r package_name  - Replace existing application (effectively reinstall an existing app, keeping its data)