100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Csci 340 Exam 1 Prep Questions and answers latest update $13.99   Add to cart

Exam (elaborations)

Csci 340 Exam 1 Prep Questions and answers latest update

 2 views  0 purchase

Csci 340 Exam 1 Prep Questions and answers latest update

Preview 2 out of 13  pages

  • November 2, 2024
  • 13
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (12)
avatar-seller
Schoolflix
Csci 340 Exam 1 Prep
Types of Associative Containers ANS✔✔ set, map


Associative Containers ANS✔✔ advantage for searching not sorting


order of data valued based


internally a self-balancing binary search tree


Sequence Containers ANS✔✔ vector, list, deque.


Vector Iterator Operations ANS✔✔ * return position
-> access member of elem.
++ increment
-- decrease
= assign iterator
begin( ) 1st elem
end( ) past last elem


Inserting/Deleting with vector ANS✔✔ End fast


Middle, beginning slow because you have to shift all elements.

, Vector Constructor Member Methods ANS✔✔ Constructor:
vector<int> name;


Copy Constructor:
vector<int> name(SourceName);


vector<float> name(source.begin( ), source.end( )
// above copies content of source into vector


Capacity Member methods of a Vector ANS✔✔ size( ) //actual elem in
vector
empty( )
max_size( )
capacity( ) // num. elem a vector could contain in mem.
resize( )
reserve( ) //changes capacity of vector


Member Methods: Obtaining iterators ANS✔✔ begin( )
end( )
rbegin( ) //last elem.
rend( ) // position before 1st elem


Member Methods: Element access ANS✔✔ operator [ ]
at

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 Schoolflix. 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)

80796 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