Answer:
Python file with appropriate comments given below
Explanation:
#Take the input file name
filename=input('Enter the input file name: ')
#Open the input file
inputFile = open(filename,"r+")
#Define the dictionary.
list={}
#Read and split the file using for loop
for word in inputFile.read().split():
#Check the word to be or not in file.
if word not in list:
list[word] = 1
#increment by 1
else:
list[word] += 1
#Close the file.
inputFile.close();
#print a line
print();
#The word are sorted as per their ASCII value.
fori in sorted(list):
#print the unique words and their
#frequencies in alphabetical order.
print("{0} {1} ".format(i, list[i]));
Answer:
Slide transition.
Explanation:
PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.
Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.
Basically, the views that are available on the Microsoft PowerPoint application includes;
1. Slide Sorter.
2. Notes Page.
3. Reading Pane.
4. Presenter view.
In this scenario, Ryan has made a presentation of ten slides, which he wants to display in sequence after a specific time interval.
Using slide transition in the presentation software, Ryan can make the slides appear, one after the other, after a specific time interval.
Slide transition is an inbuilt feature of a presentation software that automatically changes the slides at regular intervals.
Public key and private key - In public key encryption, a pair of keys is used (public key and private key). The public key can be made available publicly, while the private key is only known by the owner. The public key is used to encrypt the message, while the private key is used to decrypt the message.
Answer:
b
Explanation:
First, we need to initialize the classifier.
Then, we are required to train the classifier.
The next step is to predict the target.
And finally, we need to evaluate the classifier model.
You will find different algorithms for solving the classification problem. Some of them are like decision tree classification etc.
However, you need to know how these classifier works. And its explained before:
You need to initialize the classifier at first.
All kinds of classifiers in the scikit-learn make use of the method fit(x,y) for fitting the model or the training for the given training set in level y.
The predict(x) returns the y which is the predicted label.And this is prediction.
For evaluating the classifier model- the score(x,y) gives back the certain score for a mentioned test data x as well as the test label y.