You are on page 1of 11
1217723, 7-56 Pee JAVA Networking Solved MCQs with POF Download ‘f¥ > Master of Science in Information Technol... > Advanced JAVA > JAVA Networking > Set A save Chapter: in Advanced JAVA Chapters > JAVA Networking Servlet and Overview JSP Hibernate Spring more meqs Take a Test Hide answers Chapter: JAVA Networking ntos:simegmate.comitopie!19/advancedavalava.networking-so-t am 127723, 756 PM JAVA Networking Solved MCOs wih POF Download 1. Which of these package contains classes and interfaces for networking? A. javaio B. java.util C. javanet D. javaxswing Answer» C. java.net discuss 2. In the following URL, identify the protocol identifier? https://mcqmate.com:8080/course.php A. http 8, gtuacin C. //meqmate.com:80/course.php D. 8080 Answer» A, http discuss 3. Which of the following protocol follows connection less service? A. TCP B. TCP/IP cc. UDP D. HTTP Answer» C, UDP discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- amt 1277123, 756 Pmt JAVA Networking Solved MCQs with POF Download 4. Which of the following statement is NOT true? A. TCP is a reliable but slow. B, UDP is not reliable but fast. ¢c_ file Transfer Protocol (FTP) isa standard Internet protocol for transmitting files between computers on the Internet over TCP/IP connections D. In HTTP, all communication between two computers are encrypted Answer D. In HTTP, all communication between two computers are encrypted discuss 5. Which of the following statement is TRUE? 1a, With stream sockets there is no need to establish any connection and data flows between the ” processes are as continuous streams. B. Stream sockets are said to provide a connection-less service and UDP protocol is used C. Datagram sockets are said to provide a connection-oriented service and TCP protocol is used 1p, With datagram sockets there is no need to establish any connection and data flows between the processes are as packets. Answer» D. With datagram sockets there is no need to establish any connection and data flows between the processes are as packets. discuss 6. Which of the following method call is valid to obtain the server's hostname by invoking an applet? A. getCodeBase().host() B. getCodeBase().getHost() C. getCodeBase(.hostName() D. getCodeBase(),getHostName() Answer» B, getCodeBase().getHost() discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- ant 1217123, 756 Pet JAVA Networking Solved MCQs with POF Download 7. The server listens for a connection request from a client using which of the following statement? A. Socket s = new Socket(ServerName, port); B. Socket s = serverSocket.accept() C. Socket s = serverSocket. getSocket() D. Socket s = new Socket(ServerName); Answer» B, Socket s = serverSocket.accept) discuss 8. The client requests a connection to a server using which of the following statement? A, Socket s = new Socket(ServerName, port); B. Socket s = serverSocket.accept(); C. Socket s = serverSocket.getSocket(); D. Socket s = new Socket(ServerName); Answer» A, Socket s = new Socket(ServerName, port); discuss 9. To connect to a server running on the same machine with the client, which of the following cannotbe used for the hostname? A. “localhost" B. "127.0.0.1" C. InetAddress.getLocalHost0, D. "127.0.0.0" Answer» D. "127.0.0.0" discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- ant 1217123, 756 Pet JAVA Networking Solved MCQs with POF Download 10. In the socket programming, for an IP address, which can be used to find the host name and IP address of a client/ server? A. The ServerSocket class B, The Socket class C, The InetAddress class D. The Connection interface Answer» C. The InetAddress class discuss 11. To create an InputStream on a socket, say s, which of the following statement is necessary? A. InputStream in = new InputStream(s); B InputStream in = s.getInputStream(; C. InputStream in = s.obtaininputStream0; D. InputStream in = s.getStream; Answer» B, InputStream in = s.getInputStream0; discuss 12. Which of the following protocols is/are for splitting and sending packets to an address across a network? A. TCP/IP B. FIP c. SMTP D. UDP Answer» A. TCP/IP discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- ont 1217123, 756 Pet JAVA Networking Solved MCQs with POF Download 13. Which of these is a protocol for breaking and sending packets to an address across a network? A. TCP/IP B. DNS. C. Socket D. Proxy Server Answer» A. TCP/IP discuss 14. Which of these class is used to encapsulate IP address and DNS? A. DatagramPacket B. URL C. InetAddress D. ContentHandler Answer C. InetAddress discuss 15. Which of the following type of JDBC driver, is also called Type 2 JDBC driver? A. JDBC-ODBC Bridge plus ODBC driver B. Native-API, partly Java driver C. JDBC-Net, pure Java driver D. Native-protocol, pure Java driver Answer» B, Native-API, partly Java driver discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- ent 127723, 756 PM JAVA Networking Solved MCOs wih POF Download 16. Which of the following type of JDBC driver, is also called Type 1 JDBC driver? ‘A, JDBC-ODBC Bridge plus ODBC driver B. Native-API, partly Java driver C. JDBC-Net, pure Java driver D. Native-protocol, pure Java driver Answer» A. JDBC-ODBC Bridge plus ODBC driver discuss 17. Which of the following holds data retrieved from a database after you execute an SQL query using Statement objects? A. ResultSet B. JDBC driver ¢. Connection D. Statement Answer» A. ResultSet discuss 18. Which of the following is not a valid type of ResultSet? A. ResultSet.TYPE_FORWARD_ONLY B. ResultSet. TYPE_SCROLL_INSENSITIVE, C. ResultSet. TYPE_SCROLL_SENSITIVE D. ResultSet.TYPE_BACKWARD_ONLY Answer» D. ResultSet:.TYPE_BACKWARD_ONLY discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- mm 1217123, 756 Pet JAVA Networking Solved MCQs with POF Download 19. Which of the following type of JDBC driver, uses database native protocol? ‘A, JDBC-ODBC Bridge plus ODBC driver B. Native-API, partly Java driver C. JDBC-Net, pure Java driver D. Native-protocol, pure Java driver Answer D. Native-protocol, pure Java driver 20. What is JDBC? A. JDBC is a java based protocol. discuss B JDBC is a standard Java AP| for database-independent connectivity between the Java programming language and a wide range of databases. C. JDBC is a specification to tell how to connect to a database. D. Joint Driver for Basic Connection Answer» B, JDBC is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. discuss 21. Which of the following manages a list of database drivers in JDBC? A. DriverManager B. JDBC driver C. Connection D. Statement Answer» A. DriverManager m™ Search MCQ | Topic | Course hitosimeqmate.convople/18t/agvanced javajava-networkng-set- discuss C& login Register ant 1217123, 756 Pet JAVA Networking Solved MCQs with POF Download 22. Which of the following type of JDBC driver should be used if your Java application is accessing multiple types of databases at the same time? A. Type 1 B. Type 2 C. Type3 D. Type 4 Answer C. Type 3 discuss 23. Which of the following is correct about JDBC? A. JDBC architecture decouples an abstraction from its implementation. B, JDBC follows a bridge design pattern C. Both of the above. D. None of the above. Answer» C, Both of the above. discuss 24. Which of the following step establishes a connection with a database? A. Import packages containing the JDBC classes needed for database programming B. Register the JDBC driver, so that you can open a communications channel with the database. C. Open a connection using the DriverManager.getConnection () method. D. Execute a query using an object of type Statement. Answer» C. Open a connection using the DriverManager.getConnection () method. discuss hitosimeqmate.convople/18t/agvanced javajava-networkng-set- ont 121773, 756 Pee JAVA Networking Solved MCQs with POF Download 25. Which of the following is true about JDBC? A. The JDBC API is an API to access different relational databases, You use it to access relational databases without embedding a dependency on a specific database type in your code. C. JDBC stands for Java DataBase Connectivity. D. All of the above. Answer» D. All of the above. discuss Tags Question and answers in JAVA Networking, JAVA Networking Multiple choice questions and answers, JAVA Networking Important MCQs, Solved MCQs for JAVA Networking, JAVA Networking MCQs with answers PDF download MCQs for Related Topics Python Programming Cloud Computing Linux Operating System Recommended courses Master of Science in Information Technology (MSc IT) Master of Si nce in Computer Science (MSc CS) Bachelor of Business Administration in Computer Applications (BBA [CA]) Programming Languages Master of Science in Software Engineering (MSc SE) ntos:simegmate.comitopie!19/advancedavalava.networking-so-t som 121713, 756 Pat JAVA Networking Solved MCQs with POF Download Your recent visits Chapter: JAVA Networking m™ McqMate McqMate.com is an educational platform, Which is developed BY STUDENTS, FOR STUDENTS, The main objective of our platform is to assist fellow students in preparing for exams and in their Studies throughout their Academic career. MCQMATE IS ALSO AVAILABLE ON Popular Courses cone You Tube UPSC - Union Public Service Commission MBA Contacts Email: admin@meqmate.com Privacy & Cookies Policy Disclaimer Hosted on Hostinger © Copyright 2023 McqMate. Al rights reserved. hitosimeqmate.convople/18t/agvanced javajava-networkng-set- wm

You might also like