W5: STANDARD LIBRARY Flashcards

1
Q

W5-Q1: Which NAMESPACE most LIBRARY components are declared and defined in?

A

std

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

W5-Q2: Which NAMESPACE the filesystem component is declared and defined in?

A

filesystem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

W5-Q3: Which NAMESPACE the library macros are predefined in?

A

global

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

W5-Q4: The String Library provides support for 3 general types of strings. What are they?

A

_ the string classes
_ the string_view classes
_ null terminated C-style string functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

W5-Q5: The Standard Template Library (STL) consists of?

A
_ container template classes 
 \+ sequential containers
 \+ container adaptors
 \+ associative containers (beyond scope) 
_ iterators
_ algorithms 
_ function objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

W5-Q6: What does a CONTAINER CLASS represent?

A

_ represents the shell of a data structure
_ manages the memory associated with the elements of that structure and provides member functions to access those elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

W5-Q7: What do ITERATORS represent?

A

facilitate the traversal of the data structure and provide simple access to range of elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

W5-Q8: What do ALGORITHMS represent?

A

implement solutions for sequences of elements through the use of iterators and function objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

W5-Q9: What does a complete programming solution to the implementation of a data structure require?

A

_ the definition of the data type of each element in the data structure
_ the choice of the optimal data structure to collect the elements
_ the function object for the algorithm to use on the data structure
_ syntax to accesses the facilities of the STL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly