Filters
Question type

Study Flashcards

When a web page is loaded, the browser stores it in a ________ directory.


A) root
B) my document
C) cashe
D) cache

E) A) and C)
F) All of the above

Correct Answer

verifed

verified

To close a connection, which of the following statements can you use?


A) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.close() ;
B) URL u = new URL(str) ;
URLConnection conn = new URLConnection(u) ;
C) URL u = new URL(str) ;
URLConnection conn = u.closeURLConnection() ;
D) There is no need to close the connection.

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

_______ ________ was developed to enable different local area networks to communicate with each other and has become the basis for connecting computers around the world over the Internet.


A) TCP
B) IP
C) FTP
D) HTTP

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

A thread dies ______________


A) when the client quits or disconnects.
B) when the run method exits.
C) when the client quits or disconnects and/or when the run method exits.
D) the thread runs forever in the background.

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Two kinds of data are transmitted between computers: ______________ refers to the data that one computer actually wants to send to another. Network protocol data are the data that describe how to reach the intended recipient and how to check for errors and data loss in the transmission.


A) packets
B) transmission data
C) application data
D) socket data

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

The HTTP response code 200 means _______________.


A) the response is successful.
B) the page is found successfully.
C) the page was not found.
D) the connection is lost.

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

The Java library provides a _________ class that can take care of the socket connection to a web server.


A) SocketConnection
B) ServerConnection
C) ClientConnection
D) URLConnection

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

A print writer buffers the characters that you send to it. To make sure that the server gets a complete request at a time, you need to ________ the buffer.


A) print
B) send
C) scan
D) flush

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

To kill a server that was started in a shell window, ________.


A) press Ctrl+C
B) press Ctrl+Z
C) call the kill method
D) servers don't stop.

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

A(n) ____ describes how data for a particular application is transmitted.


A) URL
B) application protocol
C) socket
D) IP address

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

If a computer wants to request information from gateway.com, it must first ask a(n) ____ server to translate the domain name into a numeric Internet address.


A) DNS
B) socket
C) URL
D) IP

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

The HTTP command POST ____________.


A) returns the requested item.
B) supplies input to a server-side command and returns the result.
C) requests input from the server-side command.
D) supplies input to a client-side command.

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

In a communication protocol, can the sender indicate how many bytes are contained in the request?


A) Yes, the web server does that at the end of the GET request.
B) Yes, the web browser does that in POST request.
C) Yes, the web browser does that at the end of the HTTP header.
D) No, the sender can't indicate how many bytes are contained in the request.

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

To connect to the HTTP port (80) of the server yahoo.com, you use:


A) Socket s = new Socket(80, yahoo.com) ;
B) Socket s = connect("yahoo.com", 80) ;
C) Socket s = new Socket("yahoo.com", 80) ;
D) java yahoo.com 80

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Showing 61 - 74 of 74

Related Exams

Show Answer