wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Binding & Socket

Total questions: 23

Worksheet time: 12mins

Name
Class
Date
1.
Socket programming can only be done in Java.
a)
True
b)
False
2.
Sockets are different from ports because
a)
They included IP addresses
b)
They are in the Application Layer
c)
They use the OSI model
d)
They are just another term for the same thing
3.
TCP socket programming is:
a)
connection-oriented
b)
connectionless
c)
dependent on the host operating system
d)
dependent on the client operating system
4.
User-defined socket programming occurs with ports
a)
>256
b)
>1024
c)
>32K
d)
Any may be used
5.
Multiple port numbers are used on the client side to define
a)
Multiple simultaneous server connections
b)
Multiple server connections to different servers
c)
Multiple receive sockets
d)
This just isn't done
6.
Single-thread TCP sockets are used for
a)
One server - one client communications
b)
One server - multiple client communications
c)
e-mail distribution
d)
social media
7.
A stream is
a)
A TCP data transport link
b)
A group of socket connections
c)
A group of packets
d)
A UDP transport link
8.
What must be done before disconnecting a socket?
a)
Ending the data stream
b)
Telling the server good-bye
c)
Flushing the cache
d)
Nothing, you can simply "unplug" with no ill effects
9.
UDP sockets trace lost packets by
a)
RequestCheck command
b)
AutoCorrect command
c)
Verify command
d)
Lost packets are not checked in UDP
10.
Multi-thread socket programming allows for
a)
Servers to connect with multiple clients
b)
Clients to connect to multiple servers simultaneously
c)
Both of these
d)
Neither of th
11.
What can happen if you do not close a socket when you finish using it?
a)
You could be subjected to DoS attack
b)
Your computer will be stuck in a loop
c)
You create a logic error
d)
You cannot use the port address again
12.
What happens if you fail to stop the stream before closing the socket?
a)
Data loss
b)
Nothing
c)
Logic error
d)
Socket lockup
13.

The bind function assigns a local ________________ to a socket.

a)

IP address

b)

IP address and port number

c)

port number

d)

MAC address

14.

The listen function is called

a)

only by a TCP server

b)

Both TCP server and TCP client

c)

TCP client

d)

Neither TCP server nor TCP client

15.

The accept function is called by ___________ to return the next completed connection from the front of the completed connection queue.

a)

a TCP client

b)

a TCP server

c)

Both TCP server and TCP client

d)

Neither TCP server nor TCP client

16.

The accept function returns ______________ descriptor and all read-write operations will be done on this descriptor to communicate with the client.

a)

file

b)

socket

c)

server

d)

client

17.

Da cosa è composta una applicazione di rete?

a)

da almeno un processo client ed un processo server

b)

da un programma client

c)

da un programma server

d)

un programma compilato

18.

Un socket è un indirizzo univoco di un applicazione all'interno della rete, ed è costituito da:

a)

indirizzo IP

b)

Indirizzo MAC

c)

Indirizzo IP e numero di porta

d)

Indirizzo MAC e numero di porta

19.

Quale delle immagini rappresenta una configurazione Three Tired?

a)
b)
c)
d)
20.

In un’applicazione Two Tiered i tre livelli sono divisi fra una macchina utente, che ospita il livello di presentazione, e la macchina server che ospita il livello di accesso ai dati.

a)

VERO

b)

FALSO

21.

Il livello di presentazione è comunemente denominato back end.

a)

VERO

b)

FALSO

22.

Quale delle immagini rappresenta una configurazione Two Tired?

a)
b)
c)
d)
23.

In un applicazione distribuita cosa indica il termine front-end?

a)

La parte del sistema dedicato all'implementazione delle logiche di business che l'applicazione si pone di fornire

b)

La parte dell'applicazione visibile all'utente grazie alla quale può interagire e utilizzare i servizi messi a disposizione

c)

L'interfaccia grafica o a riga di comando accessibile all'utente

d)

La parte dell'architettura di un sistema distribuito nascosta all'utente che permette l'estrazione e l'analisi dei dati a fronte delle richieste inviate dall'utente

e)

La parte del sistema dedicata all'accesso ed all'estrazione delle informazioni dalla base dei dati