QUESTION 1 Processing a large number of items in a(n) ________ is usually easier
ID: 3685286 • Letter: Q
Question
QUESTION 1
Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables.
Constant.
Variable
Array.
Loop.
None of the above.
4 points
QUESTION 2
What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
Size.
Size declarator.
Number.
Number declarator.
None of the above .
4 points
QUESTION 3
Access the individual elements in an array by using their _____________.
Sizes.
Numbers.
Integers.
Subscripts.
None of the above.
4 points
QUESTION 4
Which is the simplest search technique to use to find an item in an array?
Sequential.
Binary.
Bubble.
Select.
None of the above .
4 points
QUESTION 5
Which of the following arguments must be passed when passing an array as an argument?
The array itself.
An integer that specifies the number of elements in the array.
The data type of the array.
A and B.
A and C.
4 points
QUESTION 6
Arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript.
a. Sequential.
Binary.
Parallel.
Linear.
None of the above.
4 points
QUESTION 7
How many subscripts do you need to access one element in a two-dimensional array?
One.
Two.
Three.
Four.
None of the above.
4 points
QUESTION 8
Two- dimensional arrays can be thought of as containing ___________.
Rows and columns.
Lines and pages.
Rows and pages.
Lines and columns.
Rows and pages.
4 points
QUESTION 9
A three-dimensional array can be thought of as ______ of two-dimensional arrays.
Rows.
Columns.
Lines.
Pages.
None of the above.
4 points
QUESTION 10
In the following declaration, what is the data type of the elements of the array?
Declare Integer numbers [SIZE]
SIZE.
numbers.
Integer.
Declare.
None of the above.
4 points
QUESTION 11
Every element in an array is assigned a unique number known as a ______________.
Subscript.
integer.
character.
number.
None of the above.
4 points
QUESTION 12
Which of the following statement is true about the statement below?
Declare Integer score [5] = 83, 92, 78, 94, 71
This is an array declaration.
This is an array initialization.
This is an array size establishment.
This is an array declaration and initialization.
This is an array declaration and size establishment.
4 points
QUESTION 13
What is the subscript for the data value 92 in the example given below?
Declare Integer score [5] = 83, 92, 78, 94, 71
One.
Two.
A.
B.
None of the above.
4 points
QUESTION 14
What is the term used for the value that is searched for in a search algorithm?
StringValue.
searchValue.
matchValue.
flag.
None of the above.
4 points
QUESTION 15
When working with arrays most programming languages perform ____________, which means they do not allow programs to use invalid subscripts.
Aarray bounds checking.
buffer overrun protection.
bitwise data execution.
subscript binding.
None of the above.
4 points
QUESTION 16
What type of error occurs when a loop iterates one time too few or one time too many?
Run time error.
Off-by-one error.
Validation error.
Syntax error.
All of the above.
4 points
QUESTION 17
Subscripts are used to identify specific elements in an array.
True
False
4 points
QUESTION 18
Unlike variables, arrays need to be initialized separately from the declaration.
True
False
4 points
QUESTION 19
Array bounds checking happens at runtime, which is while the program is running.
True
False
4 points
QUESTION 20
In a sequential search algorithm, the Boolean variable used as a flag is initialized to TRUE.
True
False
4 points
QUESTION 21
The first step in calculating the average of the values in an array is to get the total of the values.
True
False
4 points
QUESTION 22
When processing the data in a two-dimensional array, each element has two subscripts.
True
False
4 points
QUESTION 23
Multiple-dimensional arrays can be used to model data that occurs in multiple sets.
True
False
4 points
QUESTION 24
One of the advantages of two- or more dimensional arrays is that the data values can be of two or more data types.
True
False
4 points
QUESTION 25
Arrays, like variables, can only hold one value at a time.
True
False
A.Constant.
B.Variable
C.Array.
D.Loop.
E.None of the above.
Explanation / Answer
Answer to Question 1; Array
Each variable is a seperate item which must be declared and processed individually, Whereas , an array can hold a group of values having same data type.
Answer to Question 2 :Size declarato
Number of values an array holds depends on the size of the array.
For ex: If a[5] is an array , 5 is the size of values which the array can hold,
the above array can hold values from a[0],a[1],....a[4]. The number 0,1,..4 indicate the index of the array element
Answer to Question 3 :Subscript
In array a[5], each individual element can be accessed as a[0],a[1],a[2],...a[4]. Where the numbers 0,1,...4 are called array subscripts.
Answer to Question 4: Bubble
Bubble sort is the simplest method of searching na item in an array.
The algorithm starts at the beginning of the data set. It compares the first two elements, and if the first is greater than the second, it swaps them,It continues doing this for each pair of adjacent elements to the end of the data set. It then starts again with the first two elements, repeating until no swaps have occurred on the last pass.
Answer to Question 5: The array itself.
Answer to Question 6: Parallel arrays
This term describes two or more arrays that hold related data, and the related elements in each array are accessed with a common subscript.
Answer to Question 7: Two subscripts .
For ex a[5][10] is a two dimensional array, element from first row first column can be accessed as a[0][0].
Answer to Question 8: Rows and columns
Answer to Question 9:None of the above.
A 3-D array is considered as an array of 2-D arrays.
Answer to Question 10:Integer
Answer to Question 11:Subscript or index.
Answer to Question 12:This is an array declaration and initialization.
Answer to Question 13:One
In Declare Integer score [5] = 83, 92, 78, 94, 71, the subscript for element 92 is One
Answer to Question 14:Search Value
Answer to Question 15:When working with arrays most programming languages perform _Array bound Checking_, which means they do not allow programs to use invalid subscripts.
Answer to question 16:Off-by-one error
Answer to Question 17: True.
Each array elements can be specified using array index or subscript
Answer to Question 18:False
Arrays can also be declared and initialzed in the same statement
Answer to Question 19: True
Array bound checking typically happens while a program is running.
Answer to Question 20:False
Answer to Question 21: True
Answer to Question 22:True
Since its a two dimensional array, each element can be accessed using two subscipts, where first subscript indicates and second subscript indicates column.
Answer to Question 23:True
It is possible to create arrays with multiple dimensions, to model data that occur in multiple sets.
Answer to Question 24:False
In mullti dimension arrays, each elements needs to be of same data type.
Answer to Question 25:False
An array is a way to hold more than one value at a time
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.