Question: 1. which one is not List interface method? get() add() sort() set() size() remove() 2. Sets cannot have duplicate elements True False 3. What is

1. which one is not List interface method?

get() add() sort() set() size() remove()

2. Sets cannot have duplicate elements

True False

3. What is the big-Oh notation of the given code snippet?

void snippet() { for (int i = 0; i < n; i=i+5) a[i] = i; }

4. We do not need code efficiency any more since modern computers are powerful enough

True False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!