What words are displayed in the list box by the following program segment?

```
Dim deadlySins() As String = {"pride", "greed", "anger", "envy",
"lust", "gluttony", "loth"}

Dim query = From sin in deadlySins
Order By sin Ascending
Where sin.StartsWith("g")
Select sin
lstBox.Items.Add(query.First)
lstBox.Items.Add(query.Max)
```
(A) gluttony and greed
(B) gluttony and gluttony
(C) pride and gluttony
(D) greed and greed

(A) gluttony and greed

Computer Science & Information Technology

You might also like to view...

If the following pseudocode was coded and executed, what would display?

``` Declare String str = "a1b2c3d4" Declare Integer index For index = 0 To length(str) - 1 If isLetter(str[index]) Then Set str[index] = "+" End If End For Display str ``` a. +1+2+3+4+ b. +1+2+3+4 c. 1+2+3+4 d. a+b+c+d+

Computer Science & Information Technology

What are the components of a C# method?

What will be an ideal response?

Computer Science & Information Technology