Answer:
The right answer is option A
Explanation:
To upgrade a network communication to accommodate for specific network needs, what is required is to select and install the network interface with the highest speed to connect to the local network.
Network communications are what we use to connect to the internet. There are different network providers and the provided networks do not have the same network speed due to different reasons. A network interface is what is used to connect our computer to the network provider. It is only logical to get the best network interface card in that region and connect to the fastest speed available.
#This is a way without a loop
friends = list(map(str,input("Enter Names: ").split()))
print(sorted(friends))
#This is a way with a loop (for&&while)
friends = list(map(str,input("Enter Names: ").split()))
cool = True
while cool:
cool = False
for i in range(len(friends)-1):
if friends[i] > friends[i+1]:
coo = friends[i]
friends[i] = friends[i+1]
friends[i+1] = coo
cool = True
print(friends)
Answer:
C code is given below
Explanation:
#include<stdio.h>
int main()
{
printf("Input:");
int ch;
int valid=1; // it is set as 1 initially if anything is wrong it is changed to 0
ch=getchar();
if(ch!='#') // it checks if it starts with #
{
valid=0;
}
while((ch = getchar())!= '\n') // this loop runs till line ends
{
if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')||(ch>='0'&&ch<='9')||(ch=='_')) // if conditions are matched then its okay
{
}
else // else valid is changed to 0 from 1
{
valid=0;
}
}
if(valid==0) // if anywhere there is anything wrong then it prints not valid
{
printf("It is not valid hashtag");
}
else // else prints valid
{
printf("It is a valid hastag");
}
}