Q27Comprehension4 Marks3 Sep 2023
Passage
Consider a graph generated from the "Scores" table that is represented by a matrix . Each node in the graph corresponds to a student from the table. SeqNo is used to label the nodes in the graph. Study the given pseudocode and answer the subquestions.
```
A = {}
while(Table 1 has more rows){
Read the first row X in Table 1
A[X.SeqNo] = [X.CityTown, X.Gender]
Move X to Table 2
}
n = length(keys(A))
M = createMatrix(n, n)
foreach i in keys(A){
foreach j in keys(A){
if(i != j and isRelated(A[i], A[j])){
M[i][j] = 1
}
}
}
Procedure isRelated(Y, Z)
if(first(Y) == first(Z) or last(Y) != last(Z)){
return(True)
}
else{
return(False)
}
End isRelated
```
Which of the following statements are true about this graph? It is a Multiple Select Question.