Examlex

Solved

What Years Are Displayed in the List Box by the Following

question 38

Multiple Choice

What years are displayed in the list box by the following program segment?
Dim years As Integer = {1492, 1776, 1840, 1929, 1945, 2005}
Dim query = From year in years
Where Is20thCentury(year)
Select year
For Each year in query
lstBox.Items.Add(year)
Next
Function Is20thCentury(num As Integer) As Boolean
If (num >= 1900) and (num < 2000) Then
Return True
Else
Return False
End IF
End Function


Definitions:

Marginal Utility

The extra value or satisfaction garnered by a consumer with the acquisition of one more unit of a good or service.

Total Utility

The overall satisfaction or happiness received from consuming a certain amount of goods or services.

Marginal Utility

The extra pleasure or benefit obtained from consuming an additional unit of a product or service.

Total Utility

The total satisfaction or benefit that a consumer derives from consuming a certain quantity of goods and services.

Related Questions