The old system, ASII, was no where near large enough to deal with all the different languages & symbols that exist
Answer:
def one_dimensional_booleans(bool_list, use_and):
is_all_true = True
is_one_true = False
if use_and:
for b in bool_list:
if b == False:
is_all_true = False
break
if is_all_true:
return True
else:
return False
else:
for b in bool_list:
if b == True:
is_one_true = True
break
if is_one_true:
return True
else:
return False
Explanation:
Create a function named one_dimensional_booleans that takes two parameters, bool_list and use_and
Inside the function:
Set is_all_true as True and is_one_true as False. These will be used to check the list
If use_and is True, check each item in the bool_list. If one item is False, set the is_all_true as False and stop the loop. This implies that the list contains a False value. Then check the is_all_true. If it is True, return True. Otherwise, return False.
If use_and is False, check each item in the bool_list. If one item is True, set the is_one_true as True and stop the loop. This implies that the list contains a True value. Then check the is_one_true. If it is True, return True. Otherwise, return False.
Answer:
The network layer is the layer is the layer 3 of the seven layer Open System Interconnect (OSI model) which functions as packet forwarder for the intermediate routers by implementing technologies used for switching that provides virtual circuits' logical path
The function of the network layer includes;
1) Routing and forwarding of packets to destination which enables connectionless communication
2) Enabling internetworking
3) Hierarchical host (IP) addressing
4) Sequencing of packets
5) Handling of errors
6) Control of network congestion to prevent the collapse of the network
Explanation:
Answer: Application layer
Explanation:
Application layer of OSI(Open system interconnection) that is responsible for interfacing the communication with the user by displaying information or message. It maintains the transmission of file and assessment, emailing faculty, using network services etc.
- According to the question,if any Skype user has complain regarding video call drop while conferencing then application is responsible to solve the issue.
- This layer will be the starting point of troubleshoot by approaching to network resources.As call drop can occur due to network service, congestion or resource issue.
Answer:
#include<iostream>
using namespace std;
int main()
{int num1,num2;
cout<<"enter 2 numbers:"<<endl;
cinn>>num1;
cinn>>num2;
cout<<("value without swapping of num1",num1);
cout<<("value without swapping of num2",num2);
num1 ^= num2;
num2 ^= num1;
num1 ^= num2;
cout<<("num1 after swapping",num1);
cout<<("num2 after swapping,num2);
return 0;
}