• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CSCI 340 – Exam 1 Study Guide

Document preview thumbnail
Preview 2 out of 8 pages

CSCI 340 Exam 1, covering C++ Standard Template Library (STL) fundamentals and data structure concepts. It reviews container types (vector, list, map, stack, tree), their syntax, and common operations such as push_back, insert, at(), and iteration with iterators. The guide also includes properties of trees (height, maximum nodes, leaves), STL algorithm categories (non-modifying, modifying, numeric, sorting), and container characteristics like sequence vs. associative. Practical code examples are provided for iterating through vectors and maps, creating containers, and using functions like find, sort, and count.

Content preview

how do you add an int 10 to the back of a vector v1?


Give this one a try later!


v1.push_back(10);




List is a ____ container

, Give this one a try later!


sequence




what is a tree


Give this one a try later!


a tree is either empty or it has a node called the followed by zero or my
trees called subtrees




True of false. Lists have direct access?


Give this one a try later!


false




Compare vectors and a list.


Give this one a try later!


List are store, linked, allow fast insertions and deletions, but slower access




how to get mac number of nodes with height


Give this one a try later!

Document information

Uploaded on
September 6, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$10.50

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BestKey
4.2
(119)
Sold
299
Followers
108
Items
8950
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions