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

19 What is the best data structure(s) for storing the customer order information

ID: 3601345 • Letter: 1

Question

19 What is the best data structure(s) for storing the customer order information in a drive-in burger place (a) array (c) structure (b) link list union 20 What is the best data structure(s) for storing a set of fixed key words (a) array (c) structure (b) link list (d) union 21 User-defined data type can be derived by (b) union (d) All of the mentioned (a) struct (c) typedef what is the best data type for random access implementation (a) array (c ) structure 22 (b) link list (d) union 23 What type of data access can be used in link list (a) random (c) a and b answers (b) sequential (d) none of the above 24 If an array is declared as arr[50] what is the max index b) 49 (d) none of the above (c) 51 25 | If an array is declared as arr[4] = {20, 30, 50) then what is the value of arr[4] (a) 50 (c) 20 (b) 0 (d) none of the above 26 Array name is a pointer (b) false (a) true (c) none of the above 27 How to pass the entire array arr[4] to a function c) &arr;[1 (d) none of the above 28 Size of a union is determined by size of the (a) First member in the union (c) Biggest member in the union (b) Last member in the union (d) Sum of the sizes of all members 29 Members of a union are accessed as (a) union-name.member (c) Both a & b (b) union-pointer->member (d) None of the mentioned 301 what would be the size of the following union declaration? Assuming size of double-8, size of int = 4, size of char = 1) union uTemp double ai nt b10] char c union uTemp u i a) 4 (c 40 (b) 8

Explanation / Answer

19. ac)structure
strucuter stores complete info of a customer
20. a) array
As the number of elements in fixed so array best for sorting
21. d) All of the mentioned
22. a) array
Because any int can be randomly accessed using index
23. b) sequential
Only sequential because numbers are linked one after another
24. a)49
25. d)none of the above
It stores a garbage value
26. b) false
27. b) arr
28. c) Biggest memeber in the union
29. c) Both a & b
30. c) 40
Largest is array of integers

**Comment for any further queries.

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