Answer:
def typeHistogram(it,n):
    d = dict()
    for i in it:
        n -=1
        if n>=0:
            if str(type(i).__name__) not in d.keys():
                d.setdefault(type(i).__name__,1)
            else:
                d[str(type(i).__name__)] += 1
        else:
            break
    return list(d.items())
it = iter([1,2,'a','b','c',4,5])
print(typeHistogram(it,7))
Explanation:
- Create a typeHistogram function that has 2 parameters namely "it" and "n" where "it" is an iterator used to represent a sequence of values of different types while "n" is the total number of elements in the sequence.
- Initialize an empty dictionary and loop through the iterator "it".
- Check if n is greater than 0 and current string is not present in the dictionary, then set default type as 1 otherwise increment by 1.
- At the end return the list of items.
- Finally initialize the iterator and display the histogram by calling the typeHistogram.
 
        
             
        
        
        
Answer: The difference between call by value and call by reference is that in call by value the actual parameters are passed into the function as arguments whereas in call by reference the address of the variables are sent as parameters.
Explanation:
Some examples are:
call by value
#include <stdio.h>  
void swap(int, int); 
int main() 
{  int a = 10, b= 20;
  swap(a, b);
  printf("a: %d, b: %d\n", a, b);
}  
void swap(int c, int d)
{
  int t;
  t = c; c = d; d = t;
}  
OUTPUT
a: 10, b: 20
The value of a and b remain unchanged as the values are local
//call by reference
#include <stdio.h>
  void swap(int*, int*); 
  int main() 
{
  int a = 10, b = 20;
  swap(&a, &b);   //passing the address
  printf("a: %d, b: %d\n", a, b);
}
void swap(int *c, int *d)
{
  int t;
  t = *c; *c = *d; *d = t;
}
 OUTPUT
a: 20, b: 10
due to dereferencing by the pointer the value  can be changed which is call by reference
 
        
             
        
        
        
Motherboard or main sequence processor 
(either that  a mainframe or a server)
hope this helps
        
             
        
        
        
Answer:
<u>Property</u>
Explanation:
Intellectual Property (IP) is the lawful protection of human idea/intellect by unauthorised users. These human intellects are intangible assets that have both moral and commercial value. They include ideas, art, music, movies, software e.t.c.
Common types of Intellectual property include 
- Copyrights
- patents
- Trade Marks
- Trade Secrets
 
        
                    
             
        
        
        
Answer:
When you move into a new home or apartment, the first thing on your checklist should be to have the <u>locks</u> changed
Explanation:
Changing the locks
Given that the way the previous owners of the new home or apartment made use of the locks and the keys are usually not completely known to the new owners, one may never know all those that have a key or a means to gain access into the apartment or home. Therefore, in order to guarantee proper security, it is a good practice to have as one of the first thing on the checklist, the changing of the locks of the entrance doors and windows of the new home or apartment.