MCQOPTIONS
Saved Bookmarks
This section includes 29 Mcqs, each offering curated multiple-choice questions to sharpen your Advanced Java knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the java method for ping? |
| A. | hostReachable() |
| B. | ping() |
| C. | isReachable() |
| D. | portBusy() |
| Answer» D. portBusy() | |
| 2. |
What happens if IP Address of host cannot be determined? |
| A. | The system exit with no message |
| B. | UnknownHostException is thrown |
| C. | IOException is thrown |
| D. | Temporary IP Address is assigned |
| Answer» C. IOException is thrown | |
| 3. |
What does local IP address start with? |
| A. | 10.X.X.X |
| B. | 172.X.X.X |
| C. | 192.168.X.X |
| D. | 10.X.X.X, 172.X.X.X, or 192.168.X.X |
| Answer» E. | |
| 4. |
Which class represents an Internet Protocol address? |
| A. | InetAddress |
| B. | Address |
| C. | IP Address |
| D. | TCP Address |
| Answer» B. Address | |
| 5. |
Which of the below are common network protocols? |
| A. | TCP |
| B. | UDP |
| C. | TCP and UDP |
| D. | CNP |
| Answer» D. CNP | |
| 6. |
What does bind() method of ServerSocket offer? |
| A. | binds the serversocket to a specific address (IP Address and port) |
| B. | binds the server and client browser |
| C. | binds the server socket to the JVM |
| D. | binds the port to the JVM |
| Answer» B. binds the server and client browser | |
| 7. |
What happens if ServerSocket is not able to listen on the specified port? |
| A. | The system exits gracefully with appropriate message |
| B. | The system will wait till port is free |
| C. | IOException is thrown when opening the socket |
| D. | PortOccupiedException is thrown |
| Answer» D. PortOccupiedException is thrown | |
| 8. |
Which class provides system independent server side implementation? |
| A. | Socket |
| B. | ServerSocket |
| C. | Server |
| D. | ServerReader |
| Answer» C. Server | |
| 9. |
In CGI, process starts with each request and will initiate OS level process. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 10. |
How does applet and servlet communicate? |
| A. | HTTP |
| B. | HTTPS |
| C. | FTP |
| D. | HTTP Tunneling |
| Answer» E. | |
| 11. |
Consider the following scenario.A web client sends a request to a web server. The web server transmits a program to that client and is executed at client. It creates a web document. What are such web documents called? |
| A. | Active |
| B. | Static |
| C. | Dynamic |
| D. | Passive |
| Answer» B. Static | |
| 12. |
Machine that places the request to access the data, is generally called as _______ |
| A. | Server machine |
| B. | Client machine |
| C. | Request machine |
| D. | Intelligent machine |
| Answer» C. Request machine | |
| 13. |
The WWW today is a _______ client-server service, in which a client using a browser can access a service using a server. |
| A. | limited |
| B. | vast |
| C. | distributed |
| D. | none of the above |
| Answer» D. none of the above | |
| 14. |
Stephanie is in charge of a small network and wants to make it simple but secure. Which network(s) would be the best for Stephanie to set up? |
| A. | WAN |
| B. | Peer-to-peer |
| C. | Server-based |
| D. | Master domain |
| Answer» D. Master domain | |
| 15. |
Each server in a computer dedicated server network is known as |
| A. | dedicated server |
| B. | dedicated receiver |
| C. | dedicated client |
| D. | dedicated sender |
| Answer» B. dedicated receiver | |
| 16. |
RPC (remote procedure call) is used to |
| A. | establish a server on remote machine that can respond to queries |
| B. | retrieve information by calling a query |
| C. | both a and b |
| D. | none of the above |
| Answer» D. none of the above | |
| 17. |
In remote procedure call, the client program must be bound with a small library procedure called ................... |
| A. | Server stub |
| B. | Marshalling |
| C. | Client hub |
| D. | Client stub |
| Answer» E. | |
| 18. |
In RPC (remote procedure call), while a server is processing the call, the client is blocked |
| A. | unless the client sends an asynchronous request to the server |
| B. | unless the call processing is complete |
| C. | for the complete duration of the connection |
| D. | none of the above |
| Answer» B. unless the call processing is complete | |
| 19. |
Network in which each computer is either acts as server or a client is called |
| A. | dedicated server network |
| B. | peer-to-peer network |
| C. | metropolitan area network |
| D. | local area network |
| Answer» B. peer-to-peer network | |
| 20. |
The time taken by a packet to travel from client to server and then back to the client is called ____ |
| A. | STT |
| B. | RTT |
| C. | PTT |
| D. | Total time |
| Answer» C. PTT | |
| 21. |
FTP is built on _____ architecture. |
| A. | Client-server |
| B. | P2P |
| C. | Both of the above |
| D. | None of the above |
| Answer» B. P2P | |
| 22. |
File transfer protocol (FTP) is built on _________architecture |
| A. | Peer to peer |
| B. | Client server |
| C. | Both a and b |
| D. | None of the above |
| Answer» C. Both a and b | |
| 23. |
The client–server model is an approach to computer network programming developed at __________. |
| A. | AT&T Bell Lab |
| B. | Xerox PARC |
| C. | Intel Lab |
| D. | None of the above |
| Answer» C. Intel Lab | |
| 24. |
The first line of HTTP request message is called ____. |
| A. | Request line |
| B. | Header line |
| C. | Status line |
| D. | Entery line |
| Answer» B. Header line | |
| 25. |
The applications of the Client and Server Model are |
| A. | World Wide Web |
| B. | Network Printing |
| C. | |
| D. | All of the above |
| Answer» E. | |
| 26. |
In the process of fetching a web page from a server the HTTP request/response takes ______ RTTs. |
| A. | 2 |
| B. | 1 |
| C. | 4 |
| D. | 3 |
| Answer» C. 4 | |
| 27. |
Machine that places the request to access the data is generally called as __________. |
| A. | Server Machine |
| B. | Client Machine |
| C. | Request Machine |
| D. | None of the above |
| Answer» C. Request Machine | |
| 28. |
Central Computer which is powerful than other computers in the network is called as __________. |
| A. | Client |
| B. | Server |
| C. | Hub |
| D. | Switch |
| Answer» C. Hub | |
| 29. |
WHAT_IS_THE_JAVA_METHOD_FOR_PING??$ |
| A. | hostReachable() |
| B. | ping() |
| C. | isReachable() |
| D. | portBusy() |
| Answer» D. portBusy() | |