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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
