Question
What is true about array of object? It holds primitive data. It holds reference value. It contains unlimited object elements. We can apply arrayname.length to
-
What is true about array of object?
It holds primitive data.
It holds reference value.
It contains unlimited object elements.
We can apply arrayname.length to find the first element in the array.
-
Which statement is TRUE about array doll. Doll doll[] = new Doll[10];?
Array doll has 9 elements
Doll.size() will return 10
Every element in array doll must be initialised with new object Doll before use.
The last index of array doll is 10.
-
The time complexity for searching operation of a random key using Binary Search is __________
O(log (n))
O(1)
O(n)
O(n2)
-
Big O notation tells__________________.
how the speed of an algorithm relates to the size of the memory of items.
how the size of a data structure related to the number of items.
the performance time of an algorithm for a given size data structure.
None of the above.
-
Searching maximum values in an ordered array is ___________.
O(1)
O(n)
O(n2)
O(log n)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started