A) 200 not found.
B) 404 not found.
C) 0 not found.
D) 100 not found.
Correct Answer
verified
Multiple Choice
A) print
B) send
C) scan
D) flush
Correct Answer
verified
Multiple Choice
A) SMTP
B) TCP
C) IP
D) POP
Correct Answer
verified
Multiple Choice
A) packets
B) sockets
C) application data
D) network protocol data
Correct Answer
verified
Multiple Choice
A) HTML is a protocol that describes the command set for web server requests.
B) Web servers know how to display HTML documents.
C) Web servers know how to issue HTTP commands.
D) The Telnet program is not a browser and does not understand HTML tags.
Correct Answer
verified
Multiple Choice
A) Socket sock = new Socket(2345, gorge.divms.uiowa.edu) ;
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello server") ;
Pw) flush() ;
String line = scan.nextLine() ;
Scanner scan = new Scanner(sock.getInputStream() ) ;
B) Socket sock = new Socket(gorge.divms.uiowa.edu) ;
PrintWriter pw = new PrintWriter(sock.getOutputStream() , 2345) ;
Pw) println("Hello server") ;
Pw) flush() ;
Scanner scan = new Scanner(sock.getInputStream() ) ;
String line = scan.nextLine() ;
C) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345) ;
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello server") ;
Pw) flush() ;
Scanner scan = new Scanner(sock.getInputStream() ) ;
String line = scan.nextLine() ;
D) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345) ;
PrintWriter pw = new PrintWriter(sock.getInputStream() ) ;
Pw) println("Hello server") ;
Pw) flush() ;
Scanner scan = new Scanner(sock.getOutputStream() ) ;
String line = scan.nextLine() ;
Correct Answer
verified
Multiple Choice
A) packet
B) socket
C) address
D) port number
Correct Answer
verified
Multiple Choice
A) The call to the URL constructor will throw an exception.
B) The call to getResponseCode will throw an exception.
C) The call to getResponseCode will return the error code 404.
D) The call to getInputStream will throw an exception.
Correct Answer
verified
Multiple Choice
A) ServerSocket ss = new ServerSocket(6666) ;
Socket sock = ss.accept() ;
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello from earth") ;
Pw) flush() ;
Pw) close() ;
}
B) ServerSocket ss = new ServerSocket(6666) ;
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello from earth") ;
Socket sock = ss.accept() ;
}
C) ServerSocket ss = new ServerSocket(6666) ;
While (true)
{
Socket sock = ss.accept() ;
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello from earth") ;
Pw) flush() ;
Pw) close() ;
}
D) Socket sock = ss.accept() ;
While (true)
{
ServerSocket ss = new ServerSocket(6666) ;
PrintWriter pw = new PrintWriter(sock.getOutputStream() ) ;
Pw) println("Hello from earth") ;
Pw) flush() ;
Pw) close() ;
}
Correct Answer
verified
Multiple Choice
A) I, III, and IV
B) I, II, and III
C) II, III, and IV
D) I, II, III, and IV
Correct Answer
verified
Multiple Choice
A) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.open() ;
B) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = new URLConnection(u) ;
C) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.openURLConnection() ;
D) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.openConnection() ;
Correct Answer
verified
Multiple Choice
A) ServerSocket
B) Socket
C) ClientSocket
D) Packet
Correct Answer
verified
Multiple Choice
A) CONNECT
B) DELETE
C) HEAD
D) POST
Correct Answer
verified
Multiple Choice
A) packet
B) socket
C) application data
D) network protocol
Correct Answer
verified
Multiple Choice
A) DNS
B) HTML
C) Telnet
D) TCP
Correct Answer
verified
Multiple Choice
A) Transmission Control and Internet Protocol.
B) Transmission Control Protocol and Internet Protocol.
C) Transmission Protocol and Internet Protocol.
D) Transmission Control Protocol over Internet Protocol.
Correct Answer
verified
Multiple Choice
A) TCP/IP
B) IP
C) HTTP
D) DNS
Correct Answer
verified
Multiple Choice
A) Running
B) Runtime
C) Server
D) Runnable
Correct Answer
verified
Multiple Choice
A) Point to Point
B) Post Office Point
C) Protocol Of Point
D) Post Office Protocol
Correct Answer
verified
Multiple Choice
A) can write programs that send GET and POP commands.
B) can write programs that send SMTP and POST commands.
C) can write programs that send GET and POST commands
D) can write programs that send SMTP and POP commands.
Correct Answer
verified
Showing 1 - 20 of 74
Related Exams