Deck 23: Boost Libraries, Technical Report 1 and C0x
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/21
Play
Full screen (f)
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
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
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
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