Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Programming Using Visual Basic
Quiz 7: Arrays
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
True/False
In the two-dimensional array declaration Dim newVar(,) As Double = {{1, 2, 3}, {4, 5, 2054}, {6, 802, 2786}} the comma in newVar(,) can be removed.
Question 62
True/False
The statement Dim nextVar(3, 5) As Double declares a two-dimensional array that can store a table containing 4 columns and 6 rows of numeric data.
Question 63
Multiple Choice
Suppose a structure and an array are created with the code Structure Nation Dim name As String Dim continent As String Dim population As Double 'in millions Dim area As Double 'in square miles End Structure Dim nations(191) As Nation in the Declarations section of the Code editor and the array is filled with data for the 192 member nations of the UN. What will be displayed in the DataGridView control when the following code is executed? Dim query = From country In nations Where (country.continent = "Europe") And country.name.StartsWith("S") Let countryUC = country.name.ToUpper Let pop = (1000000 * country.population) .ToString("N0") Let area = (country.area) .ToString("N0") Order By countryUC Ascending Select countryUC, pop, area
Question 64
Multiple Choice
Which of the following types of variables can only hold a single item of data?
Question 65
Multiple Choice
Which of the following declarations creates a two-dimensional array?
Question 66
Multiple Choice
Suppose a structure and an array are created with the code Structure Nation Dim name As String Dim continent As String Dim population As Double 'in millions Dim area As Double 'in square miles End Structure Dim nations(191) As Nation in the Declarations section of the Code editor and the array is filled with data for the 192 member nations of the UN. What will be displayed in the DataGridView control when the following code is executed? Dim query = From country In nations Where country.population > 200 Order By country.area Descending Select country.name, country.continent dgvNations.DataSource = query.ToList dgvNations.CurrentCell = Nothing
Question 67
True/False
Suppose a structure is created with the code Structure stateUSA Dim capCity As String Dim yearFounded As Integer End Structure in the Declarations section of the Code window. In this structure, the variable capCity is known as a member.