Answer:
Answer explained below
Explanation:
I have given two approaches in implementing the solution.
1. Using the for loop, in which you have to iterate over all the elements in list 1 and check in list 2
2. Use the set intersection method. As intersection will give u the common elements. And we can get there length by using len method.
I have added the code along with the snapshot and inline comment for the ease of you to understand. Please check the methods below. You can use either of them.
METHOD-1:
********** CODE *****************
def matches(tickets,winner):
tickets = set(tickets)
winner = set(winner)
counter = 0 #To Count the common elements
for i in tickets: # Iterate over all the elements in tickets.
if i in winner: # Check the element in the winner list
counter = counter+1
return counter
METHOD -2:
********** CODE ********************
def matches(tickets, winner):
tickets = set(tickets)
winner = set(winner)
return len(tickets.intersection(winner))
Answer:
D. BGP
Explanation:
In order to exchange routing information with another AS (Autonomous Systems) only, exterior routers use an exterior routing protocol, like BGP (Border Gateway Protocol) or EGP (Exterior Routing Protocol).
BGP is an application-layer protocol in the TCP/IP suite, that uses a well-known TCP port (179) in order to deliver information reliably.
It is important to note that in order to exchange routing data within his own AS, the router uses an interior routing protocol, like OSPF.
It would be better if we could see the options, fully. But from what I can see, it should be B.
Answer:
The answer is "Option C"
Explanation:
VPN reflects virtual private networking, providing secure networking and strong links between private networks. It helps us to use remote machines, that are like on the same local site, and we use VPN to reach the hospital website. And other choices which could be listed as follows that is not correct:
- In option A, WAN represents a wide area network, it's used to connect computers through networking, that's why it's not correct.
- In option B, LAN stands for local area network, it shares a common line or wireless links for communication, that's why it is not correct.
- In option D, FOV stands for field of view that is used for gaming purposes, that's why it is not correct.
D. A technology-and creativity-driven world