Q20.Two words are said to be Special if they fulfil the following conditions:
• They are different words.
• Number of letters are not same in both words.
• Number of vowels are same in both words.
The following pseudocode is executed using the "Words" dataset. Assume that `vCount(X)` returns the number of vowels in `X.Word`. At the end of execution, `count` stores the number of Special pairs. Choose the correct code fragment(s) to complete the pseudocode.
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
while(Table 1 has more rows){
Read the first row Y in Table 1
**** Fill the code ****
Move Y to Table 3
}
Move all rows from Table 3 to Table 1
}
```
Save
Check
Details
Q20
16 Jul 2023
Q20.Two words are said to be Special if they fulfil the following conditions:
• They are different words.
• Number of letters are not same in both words.
• Number of vowels are same in both words.
The following pseudocode is executed using the "Words" dataset. Assume that `vCount(X)` returns the number of vowels in `X.Word`. At the end of execution, `count` stores the number of Special pairs. Choose the correct code fragment(s) to complete the pseudocode.
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
while(Table 1 has more rows){
Read the first row Y in Table 1
**** Fill the code ****
Move Y to Table 3
}
Move all rows from Table 3 to Table 1
}
```