Q59.Let `'x'`, `'y'`, and `'z'` be the only keys of dictionary `D`, and `L = keys(D)`. At the end of execution of the following pseudocode, `flag` stores `True`. Choose the possible value of `L`.
```
flag = False
position = 0
foreach key in L {
if((position == 1) and (key == 'y')) {
flag = True
}
position = position + 1
}
```
Save
Check
Details
Q59
20 Nov 2022
Q59.Let `'x'`, `'y'`, and `'z'` be the only keys of dictionary `D`, and `L = keys(D)`. At the end of execution of the following pseudocode, `flag` stores `True`. Choose the possible value of `L`.
```
flag = False
position = 0
foreach key in L {
if((position == 1) and (key == 'y')) {
flag = True
}
position = position + 1
}
```