100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CMSC 132 EXAM 2 WITH SOLVED SOLUTIONS UPDATED AND VERIFIED. $13.99   Add to cart

Exam (elaborations)

CMSC 132 EXAM 2 WITH SOLVED SOLUTIONS UPDATED AND VERIFIED.

 6 views  0 purchase
  • Course
  • CMSC
  • Institution
  • CMSC

CMSC 132 EXAM 2 WITH SOLVED SOLUTIONS UPDATED AND VERIFIED.

Preview 2 out of 7  pages

  • October 18, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CMSC
  • CMSC
avatar-seller
HIGRADES
CMSC 132 EXAM 2 WITH SOLVED
SOLUTIONS UPDATED AND VERIFIED




Complie btime berrors b- b bcorrect banswer-syntax berrors


run btime berrors b- b bcorrect banswer-index bout bof bbounds


does bprivate bT[] ba= bnew bT[3] bwork b- b bcorrect banswer-no


what berror bdoes bprivate bT[] ba= bnew bT[3] bgive b- b bcorrect banswer-compile
btime


does bprivate bT[] ba= b(T[])new bObject[4]work b- b bcorrect banswer-yes b- bbut
bruntime bexception(class bcast bexception)


restricting bparameterized btypes bmethod b- b bcorrect banswer-public bclass
bmyCollection<T bextends bFoo>(extends bused bfor bboth bclass/interface)


does bObject[] bx b= bnew bString[] bwork b- b bcorrect banswer-yes b- barrays bcan
bgo bbigger bto bsmaller


Is barrayList<String> ba bsubtypes bof bArrayList<object>? b- b bcorrect banswer-no


proper bnotation bfor bwildcard b- b bcorrect banswer-ArrayList<? bextends bAthlete>
ba b= bnew bArrayList<football>


<?> b- b bcorrect banswer-can't badd belements bcan bread


<? bextends bathlete> b- b bcorrect banswer-can badd, bcan't bread

, array blist binternally buses bwhat b- b bcorrect banswer-array


LL bretrieving bat bspecified belement b- b bcorrect banswer-O(n)


array bretrieving bat bspecified belement b- b bcorrect banswer-o(1)


lin bsearch b- b bcorrect banswer-O(n)


Binary bsearch b- b bcorrect banswer-o(logn) barray
o(nlogn) bLL

add bat btail bLL bno btail b- b bcorrect banswer-o(n)


add bat btail bLL bw btail b- b bcorrect banswer-o(1)


add bat btail barray b- b bcorrect banswer-o(1) bin baggregate b
o(n) bhave bto bcreate bnew barray

delete bat btail barray b- b bcorrect banswer-o(n) b- bgo bthru beverything
o(1) b- bdirect baccess

delete bat btail bLL b- b bcorrect banswer-o(n) b- bhaving ba btail bdoesn't bmatter
bneed bprev


add bat btail bcircular barray b- b bcorrect banswer-o(1)


delete bat bhead bLL b- b bcorrect banswer-o(1)


delete bat bhead bcircular barray b- b bcorrect banswer-o(1)


insert bbefore bcursor bsteps bLL b- b bcorrect banswer-make bnew bnode
swap bcursor band bnew bnode
change bpointers

insert bafter bcursor bsteps bLL b- b bcorrect banswer-make bnew bnode
change bpointers

delete bat bcursor bsteps bLL b- b bcorrect banswer-copy bnext bnode bto bcurrent
change bpointers

avg bcase bdelete bat bcursor bLL b- b bcorrect banswer-o(1)


worst bcase bdelete bat bcursor bLL b- b bcorrect banswer-check bif bcursor bis bat
bend bsize bcurrent.next=null bso bdelete bat btrail bwhich bis bO(n)


adv bof bdoubly bLL b- b bcorrect banswer-iterate bbackward
delete bat btail

Doubly bLL bdelete bat btail b- b bcorrect banswer-o(1)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller HIGRADES. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.99
  • (0)
  Add to cart