Computer Science 360 Quiz 3 Name___________________ 1. The socket API used in network programming employs functions from a. the low level I/O library b. the standard I/O library c. functions from either library d. the socket API has no relation may be used interchangably to either Input/Output library 2. In the socket API the function that can be used to "automagically" print a descriptive message when a function fails is: a. fprintf(stderr, "%d", errno); b. werror(); c. perror(); d. errno_print(); 3. On success the socket() function returns a. a FILE * pointer b. a small integer c. a SOCK * pointer d. -1 4. To create a UDP socket the SECOND of the three parameters passed to socket() should be: a. SOCK_DGRAM b. AF_INET or PF_INET c. IPPROTO_IP d. SOCK_UDP 5. The bind function is used to a. bind a socket to a remote b. bind a socket to a local port and IP address port and IP address c. bind is used to perform both functions