Answer: c.)
Explanation:
The bit SYN is used in order to synchronize segment numbers in the sender and receiving processes in hosts that are trying to start a data transmitting session between them.
It is initiated by the sending end, that set this bit to " 1", in the TCP header, starting which is known as a "3-way handshake process".
The bit SYN is not used in order to close a connection, the FIN bit is used for this purpose.
If one process set the FIN bit to "1", this means that it has no more data to send.
D. a list of all your birthdays including the years...
Answer:
True
Explanation:
Since most database applications are Server-Client structured, the User interface sits on the clients and the database sits in the server... when I say database I'm referring to the DBMS (Database Management System). A server is needed to host the DBMS and in turn it stores data from the UI and feeds data back to the UI based on the instruction written by the developer.
Answer:
A computer system works by combining input, storage space, processing, and output. For example, when we type something using a keyboard, it is known as an Input provided to the Computer. Storage Space: It is the place where our input gets stored. It is known as Computer Memory that keeps the data into it.
ExplanationExplanation:
Answer:
import random
def roll_dice(r):
score1 = 0
score2 = 0
for i in range(r):
for j in range(5):
score1 += random.randint(1,6)
score2 += random.randint(1,6)
avg1 = score1/5
avg2 = score2/5
if avg1 > avg2:
print("Player1 won the " + str(i+1) + ". round ")
elif avg1 < avg2:
print("Player2 won the " + str(i+1) + ". round ")
else:
print("Tie")
score1 = 0
score2 = 0
roll_dice(3)
Explanation:
Import the random module
Create a function called roll_dice that takes one parameter r
Initialize two scores as 0 for the players
Create a nested for loop. The outer loop will simulate the rounds and inner loop will simulate the each roll.
Inside the inner loop which iterates five times, generate random numbers for two players and add these numbers to their score.
When the inner loop is done, calculate the average score of the players. If the first average is greater, player1 wins the round. If the second average is greater, player2 wins the round. Otherwise, it is a tie. Also, set the scores to zero so that they start again.
Call the function with parameter 3, simulating 3 rounds