gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
Part Two: choice the best answer (10%) 1. which of the following is primitive data types…
- User
Part Two: choice the best answer (10%)
- which of the following is primitive data types
a. array b. linked list c. integer d. none
- which of the following is not properties of algorithm
a. Finiteness b. Language independent c. Correctness d. Ambiguity
- Identify bubble sort run time order.
a. O(n¬¬¬¬2) b. O(n) c. O(1) d. None
- Linear search running time is
a. O(1) b. O(n) c. O(2n) d. O(n2)
- which of the following is sorting algorithm
a. linear b. binary c. bubble d. A and C
- Effecieny of inserting and deleting element at the begging of linked list is
a. O(n) b. O(n2) c. O(n3) d. O(1)
- Asymptotic notation used to measure best case is
a. Big- omega b. Big Theta c. Big-O d. None
- Big-O order of algorithm with T(n)=4n2+3n+5 run time is
a. O(1) b. O(n2) c. O(n) d. None
- Queue operation that remove item from front size is known as
a. Pop b. Enqueue c. Pop d. None
- stack operation that insert item into stack is known as
a. push b. enqueue c. dequeue d. pop
- Assistant
- c. integer
- d. Ambiguity
- a. O(n^2)
- b. O(n)
- d. A and C (Linear and Bubble)
- d. O(1)
- c. Big-O
- b. O(n^2)
- c. Pop
- a. push