A merge and center does this;
if you have created a table,it just centers a sentance
Answer:
Following python statement will give the assignment to testResult as specified:
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
Explanation:
In above statements or and and operator are used to check the conditions of set of values present in variable geneticMarkerA and geneticMarkerB.
Based on if the condition evaluate to true or false respective values to testResult varaible is assigned.
Following is sample run for above statements:
geneticMarkerA = 1
geneticMarkerB = 0
if((geneticMarkerA == 1) or (geneticMarkerB ==1)):
testResult = 1
if((geneticMarkerA ==1) and (geneticMarkerB == 1)):
testResult = 0
if((geneticMarkerA == 0) and (geneticMarkerB == 0)):
testResult = 0
print(testResult)
Output
1
Answer:
Data link layer enables the receiving node to send an acknowledgement.
Explanation:
The data link has following function;
1 it send the acknowledgement to the node because for the reliable transmission.
2.Data link layer provides the interface to the network layer.
3.it regulate the flow of data.
4.It control the transmission error.
The important function of data link layer it created packets of the data to send the packets in guarantee manner for giving the acknowledgement to the node that data is received successfully.