How to install (CUDA toolkit : Version) compatible with NVIDIA- Driver Version: 340.107 on Ubuntu 18.04.3

I have my Hardware as

razor@razor-VPCCW2GGX:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [GeForce 310M] (rev a2)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)

GPU Driver up and running

razor@razor-VPCCW2GGX:~$ nvidia-smi
Fri Oct 11 10:37:15 2019
±-----------------------------------------------------+
| NVIDIA-SMI 340.107 Driver Version: 340.107 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 310M Off | 0000:01:00.0 N/A | N/A |
| N/A 53C P12 N/A / N/A | 233MiB / 255MiB | N/A Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
±----------------------------------------------------------------------------+

Q1) Which Cuda toolkit is compatible with the above mention Hardware & it’s driver?

Q2) Which Tensorflow GPU version is compatible with the Cuda toolkit?

Looking forward to get help in setting up tesnorflow: CUDA GPU development

Q1: CUDA 6.5 (or older)

Q2: None