This set of MCQ(multiple choice questions) focuses on the Programming in Java NPTEL 2022 Week 10 Quiz Solutions.
Course layout (Answers Link)
Answers COMING SOON! Kindly Wait!
Week 1: Overview of Object-Oriented Programming and Java
Programming Assignment
Week 2: Java Programming Elements
Programming Assignment
Week 3: Input-Output Handling in Java
Programming Assignment
Week 4: Encapsulation
Programming Assignment
Week 5: Inheritance
Programming Assignment
Week 6: Exception Handling
Programming Assignment
Week 7: Multithreaded Programming
Programming Assignment
Week 8: Java Applets and Servlets
Programming Assignment
Week 9: Java Swing and Abstract Windowing Toolkit
Programming Assignment
Week 10: Networking with Java
Programming Assignment
Week 11: Java Object Database Connectivity
Week 12: Interface and Packages for Software Development
NOTE: You can check your answer immediately by clicking show answer button. Programming in Java NPTEL 2022 Week 10 Quiz Solutions” contains 10 questions.
Now, start attempting the quiz.
Programming in Java NPTEL 2022 Week 10 Quiz Solutions
Q1. Which of the following statement(s) is(are) NOT true?
a) TCP is not reliable.
b) UDP is not reliable.
c) TCP is fast and UDP is slow.
d) In HTTPS, all communication between two computers are encrypted.
Answer: a), c)
Q2. Which of the following statement(s) is/are true?
a) DatagramSocket is a UDP endpoint API.
b) DatagramSocket is a TCP server API.
c) ServerSocket is a TCP server API.
d) ServerSocket is a TCP client API.
Answer: a), c)
Q3. Which of the following is/are interface(s) present in java.net package?
a) InetAddress
b) URLConnection
c) SocketOptions
d) HttpURLConnection
Answer: c) SocketOptions
Q4. Which of the following statement(s) is/are true?
a) URL is the acronym for Uniform Resource Locator.
b) A URL takes the form of a string that describes how to find a resource on the Internet
c) URLs have two main component: the protocol needed to access the resource and the location of the resource
d) The URL class is present in the java.net package
Answer: a), b), c), d)
Q5. In the following URL, identify the Resource name?
https://nptel.ac.in
a) https
b) nptel.ac.in
c) ac.in
d) https://nptel.ac.in
Answer: b) nptel.ac.in
Q6. Which of the following is/are application layer protocol(s)?
a) TCP
b) UDP
c) HTTP
d) FTP
Answer: c), d)
Q7. 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
Q8. Which of the following is/are valid Data Manipulation Language (DML) command(s)?
a) SELECT
b) INSERT
c) UPDATE
d) ALTER TABLE
Answer: a), b), c)
Q9. In JDBC, all raw data types(including binary documents or images) should be read and uploaded to the database as an array of
a) int
b) char
c) byte
d) String
Answer: c) byte
Q10. The package, which is required to be imported for the JDBC programming?
a) java.net
b) java.sql
c) java.lang
d) java.io
Answer: b) java.sql
Previous Course – Week 10 Quiz Solutions
Q1. 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
Q2. Which of the following statement(s) is/are false?
a) DatagramSocket is a UDP endpoint API
b) DatagramSocket is a TCP server API
c) ServerSocket is a TCP server API
d) ServerSocket is a TCP client API
Answer: b), d)
Q3. 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
Q4. Which of the following package contains classes and interfaces for networking?
a) java.io
b) java.util
c) java.net
d) javax.swing
Answer: c) java.net
Q5. In the following URL, identify the Resource name?
https://xyz.ac.in
a) https
b) xyz.ac.in
c) ac.in
d) https://xyz.ac.in
Answer: b) xyz.ac.in
Q6. Which of the following is/are transport layer protocol(s)?
a) TCP
b) UDP
c) HTTP
d) FTP
Answer: a), b)
Q7. The package, which is required to be imported for the JDBC programming?
a) java.net
b) java.sql
c) java.lang
d) java.io
Answer: b) java.sql
Q8. Which of the following is/are valid Data Definition Language(DDL) command(s)?
a) SELECT
b) INSERT
c) UPDATE
d) ALTER TABLE
Answer: d) ALTER TABLE
Q9. In JDBC, all raw data types(including binary documents or images) should be read and uploaded to the database as an array of
a) int
b) char
c) byte
d) String
Answer: c) byte
Q10. Once a JDBC driver has been registered, which of the following method is used to make a database connection?
a) getConnection(String url, String userID, String password)
b) setConnection(String url, String userID, String password)
c) Connect(String url, String userID, String password)
d) Connect(string url, string userID, string password)
Answer: a) getConnection(String url, String userID, String password)
>> Next- Programming in Java Week 9 Assignment Solutions
>> Next- Programming in Java Week 11 Assignment Solutions
DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.