11. A ___________ variable is declared outside all functions. a. local b. global c. floating-point d. counter e. None of
Posted: Sat May 14, 2022 8:22 pm
11. A ___________ variable is declared outside all
functions.
a.
local
b.
global
c.
floating-point
d.
counter
e.
None of these
12. The individual values contained in
array are known as
a.
parts
b.
elements
c.
numbers
d.
constants
e.
None of these
13. To access an array element, use the
array name and the element's
a.
data type
b.
subscript
c.
name
d.
value
e.
None of these
14. The name of an array stores the
__________ of the first array element.
a.
memory address
b.
value
c.
element number
d.
data type
e.
None of these
15. A two-dimensional array can be
viewed as ___________ and _____________.
a.
rows, columns
b.
arguments, parameters
c.
increments, decrements
d.
All of these
e.
None of these
16. An element of a two-dimensional
array is referred to by __________ followed by ___________.
a.
the array name, the column number of element
b.
the row subscript of the element, the column subscript of the
element
c.
a comma, a semicolon
d.
the row subscript of element, the array name
e.
None of these
17. An array can store a group of
values, but the values must be
a.
the same data type
b.
each of a different data type
c.
constants
d.
integers
e.
None of these
18. Given the following declaration,
where is 77 stored in the scores array?
scores = [83 62 77 97];
a.
Scores(0)
b.
Scores(1)
c.
Scores(2)
d.
Scores(4)
19. An array can easily be stepped
through by using a
a.
for loop
b.
reference variable
c.
named constant
d.
null value
e.
None of these
20. An array with no elements is
a.
legal in Matlab
b.
illegal in Matlab
c.
automatically furnished one element, with a value of zero
d.
automatically furnished one value -- the null terminator
e.
None of these
21. What is the last legal subscript
that can be used with the array from problem 18?
a.
3
c.
2
b.
1
d.
4
22. How many elements does the
following array have?
bugs[1000];
a.
1000
c.
1001
b.
999
d.
1
functions.
a.
local
b.
global
c.
floating-point
d.
counter
e.
None of these
12. The individual values contained in
array are known as
a.
parts
b.
elements
c.
numbers
d.
constants
e.
None of these
13. To access an array element, use the
array name and the element's
a.
data type
b.
subscript
c.
name
d.
value
e.
None of these
14. The name of an array stores the
__________ of the first array element.
a.
memory address
b.
value
c.
element number
d.
data type
e.
None of these
15. A two-dimensional array can be
viewed as ___________ and _____________.
a.
rows, columns
b.
arguments, parameters
c.
increments, decrements
d.
All of these
e.
None of these
16. An element of a two-dimensional
array is referred to by __________ followed by ___________.
a.
the array name, the column number of element
b.
the row subscript of the element, the column subscript of the
element
c.
a comma, a semicolon
d.
the row subscript of element, the array name
e.
None of these
17. An array can store a group of
values, but the values must be
a.
the same data type
b.
each of a different data type
c.
constants
d.
integers
e.
None of these
18. Given the following declaration,
where is 77 stored in the scores array?
scores = [83 62 77 97];
a.
Scores(0)
b.
Scores(1)
c.
Scores(2)
d.
Scores(4)
19. An array can easily be stepped
through by using a
a.
for loop
b.
reference variable
c.
named constant
d.
null value
e.
None of these
20. An array with no elements is
a.
legal in Matlab
b.
illegal in Matlab
c.
automatically furnished one element, with a value of zero
d.
automatically furnished one value -- the null terminator
e.
None of these
21. What is the last legal subscript
that can be used with the array from problem 18?
a.
3
c.
2
b.
1
d.
4
22. How many elements does the
following array have?
bugs[1000];
a.
1000
c.
1001
b.
999
d.
1