Fichas
Chapter 8 (Arrays)
Fichas del conjunto (25)
- 1This appears in an array declaration and specifies the number of elements the array can hold.Size Declarator
- 2To make programs easier to maintain, many programmers use these to specify the size of an array.Named Constants
- 3This is an individual storage location in an array.Element
- 4This is a number that identifies a storage location in an array.Subscript
- 5This is typically the first subscript in an array.[0]
- 6This is typically the last subscript in an array.[arraySize - 1]
- 7This algorithm uses a loop to step through each element of an array, starting with the first element, searching for a value. The search stops when the item is found or when then end of the array has been reached.Sequential Search Algorithm
- 8Many programming languages perform this, which means they do not allow a program to use an invalid array subscript. It happens typically during runtime.Array Bounds Checking
- 9This term describes two or more arrays that hold related data and the related elements in each array are accessed with a common subscript.Parallel Arrays
- 10You typically think of a two-dimensional array as containing _____ and _____.Rows / Columns
- 11Tool specifically designed for storing and processing lists of data. Processing a large number of items in this tool is usually easier than processing a large number of items stored in separate variables.Array
- 12A series of values separated with commas used to initialize an array is known as an _____. The values are stored in the order that they were initialized as.Initialization List
- 13Mistake that occurs when a loop iterates one time too many or one too few.Off-by-One Error
- 14Various techniques used to locate a specific item in a large collection of data, such as an array.Search Algorithms
- 15Arrays that can hold only one set of data.One-Dimensional Arrays
- 16Arrays that can hold multiple sets of data. They are like several identical arrays put together.Two-Dimensional Arrays
- 17True/False: Some programming languages use parentheses instead of brackets for array declarations.True
- 18Subscripts are also known as _____.Indexes
- 19The "_____" loop can simplify array processing when your task is simply to step through an array, retrieving the value of each element.For Each
- 20Can you store a mixture of data types in an array?No, all data types must be the same as the data type declared with the array.
- 21True/False: In most languages, the size of an array be changed while the program is running.False
- 22How do you look for a partial string match when searching an array of strings for a value?You use a function similar to the "contains" function which returns true if a string is found inside another string, or false otherwise.
- 23What two parameters do you assign a module/function in order to accept an array as an argument?A parameter that accepts an array of the specified data type as an argument. (Example: Integer array[])
A parameter that accepts an Integer that specifies the number of elements in the array. (Example: Integer arraySize) - 24True/False: Unlike a one-dimensional array, a two-dimensional array requires two size declarators when being declared. One for the number of rows and the other for the number of columns.True
- 25True/False: You can do many things with arrays, but you can't pass one as an argument to a module or a function.False: You can pass an array to a module/function by having two parameters that accept both the array and the array's size.
Información
- Descripción
- El usuario ha eliminado su información de asignaturas Fichas sobre Chapter 8 (Arrays), creado por Usuario eliminado el 12/01/2021.
- Creado por
- Usuario eliminado · ene 2021
- Actualizado
- 12 ene 2021
- Visitas
- 22
- Etiquetas
- Historial
-
- Creado por Andrew Lewis · 14 dic 2020
- Copiado por Andrew Lewis · 12 ene 2021
- Valoración