VISUAL PROGRAMMING
VISUAL BASIC
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
arrayname = value
|
|
arrayname(subscript) = value
|
|
arrayname = {value}
|
|
arrayname(subscript) = {value}
|
Detailed explanation-1: -The correct answer is: num[4] = 1, 2, 3, 4; Concept: The array is a data structure used to store elements in linear order. The array is declared to store elements of a particular data type.
Detailed explanation-2: -A one-dimensional array, sometimes known as a single-dimensional array, is one in which the elements are accessed in sequence. The subscript of a column or row index will be used to access this type of array. A single subscript, in this case, represents each element. The items are saved in memory in sequential order.
Detailed explanation-3: -The declaration of a 2 – D array is data – type array name[row – size] [col – size]; In the above declaration, data-type refers to any valid C++ data – type, array name refers to the name of the 2 – D array, row – size refers to the number of rows and col-size refers to the number of columns in the 2 – D array.
Detailed explanation-4: -The first element of an array has the subscript zero.
Detailed explanation-5: -A one dimensional array in C contains a series of elements of the same datatype. The elements are zero-indexed, meaning the first element is in position or index 0, and the last element is in position or index (array size)-1.