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))
3. <span>for the mother to stay home to tend to the household and care for the children while the father worked to support the family
4. true (not 100% sure)</span>
C is going to be your answer
Answer:
Trap is a software interrupt that occurs when there is a system call, while hardware interrupt occurs when a hardware component needs urgent attention.
Explanation:
Interrupt is an input signal that disrupt the activities of a computer system, giving immediate attention to a hardware or software request.
In trap interrupt, the system activities are stop for a routine kernel mode operation, since it has a higher priority than the user mode. At the end of the interrupt, it switches control to the user mode.
The hardware interrupt is a signal from hardware devices like the input/output devices, storage and even peripheral devices that draws an immediate attention of the processor, stopping and saving other activities and executing the event with an interrupt handler.
<u>Normally windows end user can login 3 ways as follow:</u>
1. End user can Login as local account where user has not connected or even connected to local Area network LAN.
2. Next user can login into cloud accounts nothing but hot mail accounts
3. Login to windows domain controller where end user should connect to LAN.
Purpose of installation of Windows domain controller with Active Directory is to keep trace and keep log history activities.
Due to windows domain controller with Active Directory end user desktop or laptop has control on software access also.
Every time when end user login on windows domain controller a small modified is executed whenever is required. It is not going effort the workstation performances.
Note: - Domain severs should be POWER on first.