Q18.The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the following paragraph.
"Surrounded by nature, Susan often takes a stroll, savoring the soothing sounds of chirping birds. Rustlings in the trees suggest squirrels beginning their day, searching for sustenance. Surely, the beauty of a sunrise holds unparalleled magic."
Assume that upper case and lower case are ignored during comparison of letters. Which of the following words will not be considered in the count at the end of execution?
```
count = 0, flag = False
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
if(1st letter of X.Word == 's' and flag){
if(2nd letter of X.Word == 'u'){
count = count + 1
}
}
if(X.Word ends with full stop){
flag = True
}
}
```
Save
Check
Details
Q18
23 Feb 2025
Q18.The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the following paragraph.
"Surrounded by nature, Susan often takes a stroll, savoring the soothing sounds of chirping birds. Rustlings in the trees suggest squirrels beginning their day, searching for sustenance. Surely, the beauty of a sunrise holds unparalleled magic."
Assume that upper case and lower case are ignored during comparison of letters. Which of the following words will not be considered in the count at the end of execution?
```
count = 0, flag = False
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
if(1st letter of X.Word == 's' and flag){
if(2nd letter of X.Word == 'u'){
count = count + 1
}
}
if(X.Word ends with full stop){
flag = True
}
}
```