WiFi and data connection switches on automatically although I repeatedly turn off the two features The WiFi feature and data connection in my tablet turns on automatically. After resetting, the problem goes away but as soon as I download programs that I need, the problem comes back. Anyone with suggestions?
Either an app that you have given permission to modify system settings is doing this which should be easily solved by checking each of your apps permission settings?

...Or maybe you have something like WiFi "Scanning Always Available"?

If you feel up to it, you may also find more information by looking at your Android's log files (either via an app that can look at the logs or connecting a computer and using "adb logcat")