Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Lists, queues, stacks and trees are ____ data structures that may grow and shrin

ID: 3810836 • Letter: L

Question

Lists, queues, stacks and trees are ____ data structures that may grow and shrink as programs execute. a) flexible b) automatic c) dynamic d) static (a) the first element of an array is the zeroth. (b) the last element of an array is the array size - 1 (c) the position number contained within square brackets is called a subscript (d) a subscript cannot be an expression. Which statement would be used to define a 10 element integer array c? (a) Array c = intl [10], (b) c = int[10]. (c) int Array c[10]; (d) int c[10]: Which of the following is incorrect? (a) int n [5] = (0, 7, 0, 3. 8, 2); (b) int n[] = (0, 7, 0, 3, 8, 2); (c) int n[5] = (7); (d) int n[5] = (6, 6, 6); 11. Assume string 1 is a character array. Which of the following operations does not produce a string? (a) string 1[] = "Test"; (b) string 1[] = {"t", 'e', 's', 't' '0'}; (c) string 1[] = {"t", 'e', 's', 't'}; (d) string 1 [] = " "; What's wrong with this code? int1 [] = (1, 2, 3, 4, 5); a) The array size must be specified in the square brackets. b) The parentheses should be square brackets. c) The square brackets should be curly braces. d) The parentheses should be curly braces.

Explanation / Answer

7.option C

dynamic data structures.

8. option d is wrong: subscript can be expressio

9.Option D is the correct way. to declare an array.

10.option B is correct way. option a, c,d are also acceptable but produces unexpected results.

11.option D is correct

12. option D;paranthesis must be curlybraces.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote