Lesson 7: Networking Programming in Java Flashcards

1
Q

Sockets examples (2):

A

Transmission Control Protocol (TCP) and 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.

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.

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.

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.

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.

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.

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.

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.

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.

A

FALSE, replace COMPUTER with PARTNER

18
Q

Important parameters to be provided when creating/opening a socket

A

IP address, port number, and
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 and application layer sockets.

21
Q

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

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).

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
Q

Java provides a set of libraries and APIs for building network-based applications.

26
Q

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.

A

FALSE, replace COMPLICATED with BASIC

27
Q

After this step the socket
can still be used for communication any more.

A

FALSE, CAN NOT BE USED

28
Q

Refer to programs that utilize
Java’s extensive networking capabilities to communicate and
exchange data over networks.

A

Network-based applications in Java

29
Q

As TCP is a connection-oriented protocol, when TCP sockets are
used, connections are established between client and server hosts.

30
Q

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.