Lesson 7: Networking Programming in Java Flashcards

1
Q

Sockets examples (2):

A
  • Transmission Control Protocol (TCP)
  • User Datagram
    Protocol (UDP).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The second step involves establishing contact or associating the socket with another socket. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

These packets are guaranteed to arrive (if lost, retransmission
occurs) and are received in order at the destination
. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Requires access to various APIs and support from different application development environments.

A

Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In order to be able to communicate,
the sockets have to use the same protocol. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This step usually happens recursively. Information is sent and received by the two communicating
sockets
. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Depending on the protocol, it
can either request a service or establish a connection. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

They are created first and are bound for the duration of the data communication session.

A

Client and Server TCP sockets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In general, the receiver
knows the server’s IP address, port number, and the protocol used and contacts it using these details. True or false?

A

FALSE, replace RECEIVER with CLIENT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The first step involves creating and opening sockets. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The third step consists of exchanging data between the two parties and represents the main stage of network application’s communication tasks. True or false?

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It is a connectionless non-reliable transmission
of datagrams protocol, similar to the postal service.

A

User Datagram
Protocol (UDP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

They offer basic
transport data communication
support
and hide lower layer
implementation details.

A

Sockets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

They provide a higher level of abstraction for the communication
infrastructure
beneath and enable support for fast and easy network-based applications and development

A

Sockets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A connection-based reliable, orderly transmission of data
packets, similar to the telephone service.

A

Transmission Control Protocol (TCP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Each communicating party requires a?

A

Separate socket

17
Q

Following connection establishment, TCP packets are sent to the computer’s
socket. True or false?

A

FALSE, replace COMPUTER with PARTNER

18
Q

Important parameters to be provided when creating/opening a socket

A
  • IP address
  • Port number
  • Communication protocol (TCP or UDP).
19
Q

Are network communication link end-points between two applications (i.e., server and client).

20
Q

Two type of sockets that can be used for application
development:

A
  • Transport layer sockets
  • Application layer sockets.
21
Q

The last step involves closing and destroying the sockets which closes the communication end-point. True or false?

22
Q

When creating/opening a socket, the important parameters to be provided include the IP
address, port number, and
communication protocol (TCP or UDP)
. True or false?

23
Q

They make use of transport-layer protocols such as the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).

A

Transport layer sockets

24
Q

Uses high-level programming languages and involves a set of principles and techniques.

A

Network application programming

25
Java **provides a set of libraries and APIs** for **building network-based applications**. True or false?
True
26
The network communication using sockets involves several **complicated steps** which have to be followed by the application developer in order to have a functional transport mechanism between the two communicating parties. True or false.
FALSE, replace COMPLICATED with BASIC
27
After this step the socket **can still be used** for communication any more. True or false?
FALSE, CAN NOT BE USED
28
Refer to **programs that utilize Java's extensive networking capabilities** to communicate and exchange data over networks.
Network-based applications in Java
29
As TCP is a connection-oriented protocol, when **TCP sockets are used, connections are established between client and server hosts**. True or false?
TRUE
30
**Provides the application developer the direct basic access to transport protocols**, offering data packet transport services between a sender and a receiver host over the network, while hiding the complexity and implementation details of the protocol.
Socket/s