1.
What order are you using in sorting from the highest to the lowest?
Correct Answer
B. Descending
Explanation
The correct answer is "Descending." Descending order refers to arranging items or numbers in a sequence from highest to lowest. In this case, when sorting from the highest to the lowest, the items or numbers will be arranged in a descending order.
2.
What order is used in sorting from the lowest to the highest?
Correct Answer
A. Ascending
Explanation
Ascending order is used in sorting from the lowest to the highest. In ascending order, the elements are arranged in increasing order, starting from the smallest value and ending with the largest value. This means that the first element in the sorted list will be the lowest value, while the last element will be the highest value.
3.
What sorting order is made use of for unsorted arrays?
Correct Answer
C. Bubble
Explanation
The correct answer is "Bubble". The bubble sort algorithm is used to sort unsorted arrays. In this sorting method, adjacent elements are compared and swapped if they are in the wrong order. This process is repeated until the entire array is sorted. It is called "bubble" sort because smaller elements "bubble" to the top of the array while larger elements "sink" to the bottom.
4.
What sorting order swap values until they are from the lowest to highest?
Correct Answer
C. Bubble
Explanation
The correct answer is "Bubble" because the bubble sort algorithm repeatedly compares adjacent elements and swaps them if they are in the wrong order. This process is repeated until the entire list is sorted in ascending order, with the smallest values "bubbling" to the beginning of the list. Therefore, the swap values in the given sorting order until they are from the lowest to highest.
5.
Which of these functions is the primary one played by an array?
Correct Answer
A. Sorting
Explanation
The primary function played by an array is sorting. Arrays are data structures that allow for the storage and organization of multiple elements of the same data type. Sorting is a common operation performed on arrays, where the elements are arranged in a specific order, such as in ascending or descending order. This allows for easier searching, accessing, and manipulating of the elements within the array. Looping, angling, and swapping are not specific functions of arrays, although they may be used in conjunction with arrays for various purposes.
6.
Which of these is used as a simple form of sorting arrays?
Correct Answer
A. Characters
Explanation
Characters are used as a simple form of sorting arrays. This means that the elements in the array are sorted based on their character values, such as alphabetical order. This type of sorting is commonly used when dealing with arrays that contain strings or characters.
7.
What is used in recognising arrays among these?
Correct Answer
A. Numbers
Explanation
Numbers are used in recognizing arrays. Arrays are a collection of similar data types, and numbers are commonly used as elements in arrays. By using numbers, we can easily identify and manipulate the elements within an array. Designs, loops, and wings are not directly related to recognizing arrays.
8.
Which of these can you also sort using arrays?
Correct Answer
A. String
Explanation
Arrays can be used to sort elements of different data types, including strings. Therefore, the given option "String" can also be sorted using arrays.
9.
What names are strings called?
Correct Answer
A. Memory Addresses
Explanation
Strings are not called memory addresses, DNS, Methodical Process, or Mega. Strings are sequences of characters, typically used to represent text. Memory addresses, on the other hand, are locations in computer memory where data is stored.
10.
What columns do arrays print in?
Correct Answer
C. Single
Explanation
Arrays in programming typically print in a single column. This means that the elements of the array are displayed vertically, one after the other, in a single column.