Web Science/Part1: Foundations of the web/Hypertext Transfer Protocol/A simple web client/quiz

{Which of the following is a correct way of creating a JAVA socket when making an HTTP GET request to http://studywebscience.org/test/simple.html? + new Socket("studywebscience.org",80); - new Socket("studywebscience.org"); - new Socket("studywebscience.org/test/simple.html",80); - new Socket("http://studywebscience.org/test/simple.html",80); - new Socket("http://studywebscience.org/test/simple.html");
 * type="[]"}
 * a socket is a combination of an IP address and a port number. In our case studywebscience.org will be resolved to in IP address by the Java socket API using dns
 * http speaks on port 80 we must not forget this.
 * adding the path of the URL is to much to include to a socket
 * adding the path of the URL is to much to include to a socket. Also we try to implement http the Socket class works on layer 2 and 3
 * This would work if we had an http API but not with sockets.

{In the video I say You could get an UnknownHostException because someone might not know our server studywebscience.org. What do I actually mean with this statement?} + The domain studywebscience.org could not be registered in the domain name system. + The host name studywebscience.org could not be entered in my local host file. - No route to the IP address of the resolved host can be found - the computer might not be connected to the internet:
 * yes this answer is true. a host name does not have to be registered in the DNS it could also be locally resolved.
 * according to the java doc int) the socket class uses class to resolve an hostname into an IP address which will throw the Exception if resolving is impossible. int) reading this part of the documentation we learn that in case the case no connection to the IP address can be made we will receive an IOException
 * There is no need to be connected to the internet. The hostname could be resolved to a local IP address via the local hosts file

{When will an IOException be thrown in the program? + If the host with the resolved IP Address is not online + If network congestions takes place and packages are dropped + If the internet is censored and the packages to the host are blocked - If the DNS cannot resolve the hostname - Always if the computer is not connected to the internet - if the requested file does not exist on the Web server
 * type="[]"}
 * no if the IP address is a local address there won't be an IO exception
 * no this will be an error 404