1) Show some networking terminologies given below?
A) IP Address
B) Protocol
C) MAC Address
D) All mentioned above
2) TCP,FTP,Telnet,SMTP,POP etc. are examples of ?
A) Socket
B) IP Address
C) Protocol
D) MAC Address
3) Which classes are used for connection-oriented socket programming?
A) Socket
B) ServerSocket
C) Both A & B
D) None of the above
4) Which class can be used to create a server socket. This object is used to establish communication with the clients?
A) ServerSocket
B) Socket
C) Both A & B
D) None of the above
5) Which methods are commonly used in ServerSocket class?
A) public OutputStream getOutputStream()
B) public Socket accept()
C) public synchronized void close()
D) None of the above
6) URL is an acronym for?
A) Uniform Resource Locator
B) Unified Resource Locator
C) Uniform Restore Locator
D) Unified Restore Locator
7) The URLConnection class can be used to read and write data to the specified resource referred by the URL?
A) True
B) False
8) The java.net.InetAddress class represents an?
A) Socket
B) IP Address
C) Protocol
D) MAC Address
9) In InetAddress class which method it returns the host name of the IP Address?
A) public String getHostName()
B) public String getHostAddress()
C) public static InetAddress getLocalHost()
D) None of the above
10) Which classes are used for connection-less socket programming?
A) DatagramSocket
B) DatagramPacket
C) Both A & B
D) None of the above
A) IP Address
B) Protocol
C) MAC Address
D) All mentioned above
2) TCP,FTP,Telnet,SMTP,POP etc. are examples of ?
A) Socket
B) IP Address
C) Protocol
D) MAC Address
3) Which classes are used for connection-oriented socket programming?
A) Socket
B) ServerSocket
C) Both A & B
D) None of the above
4) Which class can be used to create a server socket. This object is used to establish communication with the clients?
A) ServerSocket
B) Socket
C) Both A & B
D) None of the above
5) Which methods are commonly used in ServerSocket class?
A) public OutputStream getOutputStream()
B) public Socket accept()
C) public synchronized void close()
D) None of the above
6) URL is an acronym for?
A) Uniform Resource Locator
B) Unified Resource Locator
C) Uniform Restore Locator
D) Unified Restore Locator
7) The URLConnection class can be used to read and write data to the specified resource referred by the URL?
A) True
B) False
8) The java.net.InetAddress class represents an?
A) Socket
B) IP Address
C) Protocol
D) MAC Address
9) In InetAddress class which method it returns the host name of the IP Address?
A) public String getHostName()
B) public String getHostAddress()
C) public static InetAddress getLocalHost()
D) None of the above
10) Which classes are used for connection-less socket programming?
A) DatagramSocket
B) DatagramPacket
C) Both A & B
D) None of the above
Thanks for this question set ... It help me lot to check my study..
ReplyDeleteIt is help me to study and detect my self where I m right aur wrong
DeleteThanks for MCQ set . It is helpful to me
ReplyDeleteI VERY APPRECIATE YOU VERY MUCH
ReplyDelete