Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Question

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
8) Which connection String goes with the SocketConnection interface?
A) socket://:4242
B) http://foo.sun.com
C) socket:162.101.4.100:4242
D) datagram://:4242

Answer: A

But I don't agree with it. Answer A SHOULD return ServerSocketConnection, NOT SocketConnection.

Any comments?
 
Wilder C Rodrigues
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If only the host is given, it returns SocketConnection; if only the port is given, it returns ServerSocketConnection; if both aren't given, it returns a SocketConnection.

Cheers,
Wilder
SCPJ 1.4
SCDJ 1.4
SCWCD 1.3
SCBCD 1.3
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alibabra Sanjie:
8) Which connection String goes with the SocketConnection interface?
A) socket://:4242
B) http://foo.sun.com
C) socket:162.101.4.100:4242
D) datagram://:4242

Answer: A

But I don't agree with it. Answer A SHOULD return ServerSocketConnection, NOT SocketConnection.

Any comments?


Alibabra, I agree with you...

If the question is exactly the same as you provided, there is no correct answer for that question. But if option C is changed to socket://162.101.4.100:4242 , then it would become the correct answer for this question...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic