
Java Networking Quiz
Authored by Wyatt Beals
Computers
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a ServerSocket do in Java?
It sends data to the client.
It enables writing servers to listen for incoming network connections.
It creates a graphical user interface.
It manages the security of a network.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to listen for communications on a port using the ServerSocket class?
getInputStream()
getOutputStream()
accept()
connect()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a ServerSocket accepts a connection?
It initiates a connection to the client.
It sends a request to the client.
It returns a Socket object that connects the client to the server.
It closes the connection immediately.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which classes are used to exchange byte streams over the socket?
ServerSocket and Socket
InputStream and OutputStream
DataInputStream and DataOutputStream
FileInputStream and FileOutputStream
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of closing a Socket?
It opens a new connection.
It sends a message to the server.
It breaks the connection between the local and remote hosts.
It upgrades the connection to a secure protocol.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which historical example of optical telegraph was invented by the Chappe Brothers?
Internet
Semaphore lines
Morse Telegraph
Telephone
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In what year was The Associated Press formed to pool Telegraph expenses?
1791
1835
1848
1871
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?