The following pseudocode is executed using the "**Words**" dataset. Assume that each sentence in
the dataset ends with a full stop. Ignore the upper and lower case, and punctuation symbols while
comparing with other words. What will **minWord** represent at the end of the execution?
6406537406434.
A list of words with the lowest overall frequency across all sentences.
6406537406435.
A list containing the lowest frequency words from each sentence.
6406537406436.
A list of words with the lowest overall frequency across all sentences not
ending with a question mark.
6406537406437.
A list containing the last word of every sentence evaluated in the dataset.
A published solution is not available for this question yet.
The following pseudocode is executed using the "**Words**" dataset. Assume that the rows in Table 1
are sorted in the increasing order of sequence number.
What does the list **L** contain at the end of execution?
6406537406450.
The list of nouns that come immediately after an adjective
6406537406451.
The list of adjectives that come immediately after a noun
6406537406452.
The list of nouns that come immediately before an adjective
6406537406453.
The list of adjectives that come immediately before a noun
A published solution is not available for this question yet.
The following pseudocode is executed using the "**Shopping Bills**" dataset. At the end of the
execution, the variable D captures the following information: for each customer Z, D[Z]["Shop"]
stores the shops visited by Z, and D[Z]["Category"] stores the categories of the items purchased by
Z. But the pseudocode may have mistakes. Identify all such mistakes (if any).
1 D = {}
2 while (Pile 1 has more cards) {
3 Read the top card X in Pile 1
4 D = updateDictionary(D, X)
5 Move X to Pile 2
6 }
7
8 Procedure updateDictionary(D, Y)
9 if (not isKey(D, Y.CustomerName)) {
10 D[Y.CustomerName] = {"Shop": [], "Category": []}
11 }
12 D[Y.CustomerName]["Shop"][Y.ShopName] = True
13 foreach A in Y.ItemList {
14 D[Y.CustomerName]["Category"][A.Category] = True
15 }
16 return(D)
17 End updateDictionary
6406537406462.
Error in Line 1
6406537406463.
Error in Line 10
6406537406464.
Error in Line 13
6406537406465.
Error in Line 14
6406537406466.
Error in Line 16
6406537406467.
No errors
A published solution is not available for this question yet.
Consider a graph generated from the "**Scores**" table that is represented by a matrix B. Each node
in the graph corresponds to a student from the table. SeqNo is used to label the nodes in the
graph and SeqNo starts from 0. Study the given pseudocode and answer the following questions.
Which of the following statements are true about this graph?
6406537406468.
There are two cliques in this graph, one for each gender
6406537406469.
In every clique, there is at least a pair of students having different genders
6406537406470.
All students in a given clique have the same gender
6406537406471.
All students in a given clique are from the same city/town
6406537406472.
There are no cliques in this graph
A published solution is not available for this question yet.
**Mix** is a recursive procedure that interleaves two lists. If the lists have different lengths, the
remaining elements of the longer list are appended at the end. Select the correct code fragment(s)
to complete the pseudocode.