Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cose 2436 Piease eirele your anavere en 1. What is Big-o notation used for? (b) shows the maximum data set size (d) shows the growth

image text in transcribed
cose 2436 Piease eirele your anavere en 1. What is Big-o notation used for? (b) shows the maximum data set size (d) shows the growth of an algorithm given the data (a) shows the minimum data set size Ic) shows an alternative algorithm 2. Our recursive algorithm to calculate (a) 1 the Fibonacci number series is the most efficient algorithm (b) O 3. The merge sort is recursive. (a) 1 (b) O 4. (a) The ArrayList is dynamic 1 (b) 0 Arraylist Code ArrayListdtringStuff-new ArrayListest ring) stuff.add ("apple") Stuff.add ("ba Stuff.add ("cucumber") a Stuff . add (0,"Spam"); . con" Stuff.remove (2) 5. Using the ArrayList Code, what will the following output? System.out.printin(stufE.get (o)) (a) apple (b) bacon )cucumber (d) Spam 6. Using the ArrayList Code, what will the following output? System.out.printin (Stuft.sizet) (a) 1 (b) 2 (c) 3 (d) 4 7. Using the ArrayList Code, how do you change "cucumber" to "carrot"? (a) Stuff.set (0, "carrot") (b) Stuff.set (1, "carrot" (c) Stuff.set 12, "carrot")(d) Stuff.set (3, carrot" 8. How would you declare a new ArrayList to store the cash balance of bank checking acco (a) ArrayList Balance new ArrayList (b) ArrayListcInteger> Balance new ArrayList (c) int Balance new ArrayList (Integer) (d) double Balance new ArrayList (Double): 9. Which sorts) have the Big-O growth of On')?(a) Bubble (b) Selection

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

LO5 Highlight five external recruiting sources.

Answered: 1 week ago