There is no IDE available on the Spark exam. You can use pyspark or spark-shell to execute your code.
You do NOT have access to google or the internet. You DO have access to the Spark doc pages, the Python and Scala doc pages, and the Hortonworks documentation as well.
There is currently no practice exam for the Spark exam. If you need experience writing Spark applications on HDP using Python or Scala, I recommend downloading the Sandbox and working through the Hortonworks Spark tutorials.