Deck 23: Boost Libraries, Technical Report 1 and C0x

Full screen (f)
exit full mode
Question
Regular expressions are used in:

A) text editors
B) online forms
C) IDEs
D) all of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following is not a member function or operation of shared_ptr.

A)reset
B)use_count
C)->
D)delete
Question
The Random library provides:

A) pseudo-random number generators
B) uniform distributions
C) custom distributions
D) all of the above
Question
C++0x will be

A) easier to learn
B) better for building libraries
C) more compatible with C
D) all of the above
Question
Which of the following will not be included in C++0x?

A) decimal types
B) rvalue reference
C) template aliases
D) variable type deduction
Question
Regex_replace returns an):

A)bool
B)string
C)smatch
D)void
Question
An auto_ptr can manage any:

A) dynamically allocated object
B) dynamically allocated array
C) dynamically allocated object that can be destroyed with delete
D) object
Question
The character class \s represents any:

A) whitespace character
B) space character
C) string character
D) non-whitespace character
Question
A copy of an auto_ptr:

A) shares the resource
B) destroys the resource
C) can be used in an STL container
D) sets the original auto_ptr to null
Question
The unordered associative containers use a to determine where in the container to place the value.

A) bucket
B) delegator function
C) float
D) hash function
Question
The regular expression "[^0-9]+:\s\d{2,}" matches:

A) "123: Jones"
B) "John 32145"
C) "A7"
D) "j: 16"
Question
A program using Boost.Regex must include the header file.

A)boost_regex.h
B)regex.hpp
C)regular_exp.hpp
D)regex.h
Question
When the last shared_ptr to a resource is destroyed, all weak_ptrs to that resource .

A) are destroyed
B) are set to NULL
C) are not affected
D) can still access the resource
Question
The "^" and "$" characters represent:

A) back references
B) the beginning and end of a string
C) the beginning and end of a regular expression
D) none of the above
Question
To use shared_ptrs in your program you must include the header file.

A)smart_ptr.hpp
B)shared_ptr.hpp
C)shared.hpp
D)shared_ptr.h
Question
The dot character .) matches:

A) any visible character
B) any nonvisible character
C) any character
D) any character except a newline
Question
Use the weak_ptr member function to create a shared_ptr to the resource ob?served by the weak_ptr.

A)lock
B)use_count
C)reset
D)getSharedPtr
Question
The library in TR1 is based on a Boost library.

A) Regex
B) Unordered Associative Containers
C) Date
D) all of the above
Question
To replace only the first match to a regular expression, you must pass as an ar?gument to regex_replace.

A)-1
B)format_first_only
C)replace_first_only
D)0
Question
The regular expression "A{5,}" matches:

A) less than 5 A's
B) exactly 5 A's
C) at least 5 A's
D) none of the above
Question
A declaration allows you to test certain aspects of a program at compile time.

A)compile_time_test
B)static_assert
C)test
D)check
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/21
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 23: Boost Libraries, Technical Report 1 and C0x
1
Regular expressions are used in:

A) text editors
B) online forms
C) IDEs
D) all of the above
D
2
Which of the following is not a member function or operation of shared_ptr.

A)reset
B)use_count
C)->
D)delete
D
3
The Random library provides:

A) pseudo-random number generators
B) uniform distributions
C) custom distributions
D) all of the above
D
4
C++0x will be

A) easier to learn
B) better for building libraries
C) more compatible with C
D) all of the above
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following will not be included in C++0x?

A) decimal types
B) rvalue reference
C) template aliases
D) variable type deduction
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
6
Regex_replace returns an):

A)bool
B)string
C)smatch
D)void
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
7
An auto_ptr can manage any:

A) dynamically allocated object
B) dynamically allocated array
C) dynamically allocated object that can be destroyed with delete
D) object
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
8
The character class \s represents any:

A) whitespace character
B) space character
C) string character
D) non-whitespace character
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
9
A copy of an auto_ptr:

A) shares the resource
B) destroys the resource
C) can be used in an STL container
D) sets the original auto_ptr to null
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
10
The unordered associative containers use a to determine where in the container to place the value.

A) bucket
B) delegator function
C) float
D) hash function
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
11
The regular expression "[^0-9]+:\s\d{2,}" matches:

A) "123: Jones"
B) "John 32145"
C) "A7"
D) "j: 16"
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
12
A program using Boost.Regex must include the header file.

A)boost_regex.h
B)regex.hpp
C)regular_exp.hpp
D)regex.h
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
13
When the last shared_ptr to a resource is destroyed, all weak_ptrs to that resource .

A) are destroyed
B) are set to NULL
C) are not affected
D) can still access the resource
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
14
The "^" and "$" characters represent:

A) back references
B) the beginning and end of a string
C) the beginning and end of a regular expression
D) none of the above
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
15
To use shared_ptrs in your program you must include the header file.

A)smart_ptr.hpp
B)shared_ptr.hpp
C)shared.hpp
D)shared_ptr.h
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
16
The dot character .) matches:

A) any visible character
B) any nonvisible character
C) any character
D) any character except a newline
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
17
Use the weak_ptr member function to create a shared_ptr to the resource ob?served by the weak_ptr.

A)lock
B)use_count
C)reset
D)getSharedPtr
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
18
The library in TR1 is based on a Boost library.

A) Regex
B) Unordered Associative Containers
C) Date
D) all of the above
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
19
To replace only the first match to a regular expression, you must pass as an ar?gument to regex_replace.

A)-1
B)format_first_only
C)replace_first_only
D)0
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
20
The regular expression "A{5,}" matches:

A) less than 5 A's
B) exactly 5 A's
C) at least 5 A's
D) none of the above
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
21
A declaration allows you to test certain aspects of a program at compile time.

A)compile_time_test
B)static_assert
C)test
D)check
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 21 flashcards in this deck.