JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Socket Programming interview questions
Socket Programming interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 10
1. The flush () method of Print Stream class flushes any un cleared buffers in memory
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. Which methods are commonly used in Server Socket class?
A. Public Output Stream get Output Stream ()
B. Public Socket accept ()
C. Public synchronized void close ()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Public Socket accept ()
3. The URL Connection class can be used to read and write data to the specified resource referred by the URL
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. Datagram is basically an information but there is no guarantee of its content, arrival or arrival time.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
5. Which constructor of Datagram Socket class is used to create a datagram socket and binds it with the given Port Number?
A. Datagram Socket(int port)
B. Datagram Socket(int port, Int Address address)
C. Datagram Socket()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Datagram Socket(int port, Int Address address)
6. The client in socket programming must know which information?
A. IP address of Server
B. Port number
C. Both IP address of Server & Port number
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Both IP address of Server & Port number
7. TCP, FTP, Telnet, SMTP, POP etc. are examples of?
A. Socket
B. IP Address
C. Protocol
D. MAC Address
Show Correct Answer
Correct Answer is :
Protocol
8. What does the java.net.InetAddress class represent?
A. Socket
B. IP Address
C. Protocol
D. MAC Address
Show Correct Answer
Correct Answer is :
IP Address
9. Which classes are used for connection-less socket programming?
A. Datagram Socket
B. Datagram Packet
C. Both Datagram Socket & Datagram Packet
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Both Datagram Socket & Datagram Packet
10. In Int Address class which method returns the host name of the IP Address?
A. Public String get Hostname()
B. Public String getHostAddress()
C. Public static IntAddress get Localhost()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Public String get Hostname()
Similar Interview Questions
Search for latest jobs
Find Jobs