質問 1:
What happens when you attempt to compile and run the following code?
# include <iostream>
# include <algorithm>
#include <map>
using namespace std;
int main() {
int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 };
map<int, int> m;
for(int i=0; i < 10; i++) {
m[i]=t[i];
}
map<int, int>::iterator it = find(m.begin(), m.end(), 5);
cout<<it?>first;
return 0;
}
Program outputs:
A. 4
B. 5
C. compilation error
D. 10
正解:C
質問 2:
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
template<int>
void g(int a)
{
cout<<a?1<<endl;
}
template<class A>
void g(A a)
{
cout<<a+1<<endl;
}
int main()
{
int a = 1;
g(a);
return 0;
}
A. program displays: 2
B. compilation error
C. runtime exception
D. program displays: 1
正解:A
質問 3:
Which method added to class B at the marked spot will allow the code below to compile?
Choose all possible solutions.
# include <vector>
# include <iostream>
# include <algorithm>
using namespace std;
class B { int val;
public:
B(int v):val(v){}
int getV() const {return val;}
/* Insert Code Here */
};
ostream & operator <<(ostream & out, const B & v) { out<<v.getV(); return out;} template<class T>struct Out {
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) { out<<val<<" "; } };
int main() {
int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3};
vector<B> v1(t, t+10);
sort(v1.begin(), v1.end(), greater<B>());
for_each(v1.begin(), v1.end(), Out<B>(cout));cout<<endl;
return 0;
}
A. bool operator < (const B & v) const { return val<v.val;}
B. bool operator == (const B & v) const { return val==v.val;}
C. operator int () const { return val; }
D. bool operator > (const B & v) const { return val<v.val;}
E. bool operator > (const B & v) const { return val>v.val;}
正解:B,D,E
質問 4:
What happens when you attempt to compile and run the following code?
# include <iostream>
# include <map>
# include <vector>
# include <string>
using namespace std;
int main(){
int second[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 };
string first[] = {"three", "four", "two", "one", "six","five", "seven", "nine","eight","zero"}; map<int,string> m;
for(int i=0; i<10; i++) {
m.insert(pair<int,string>(second[i],first[i]));
}
m[0]="ten";
m.insert(pair<int,string>(1,"eleven"));
for(map<int, string>::iterator i=m.begin();i!= m.end(); i++) {
cout<<i?>second<<" ";
}
return 0;
}
A. program outputs: zero one two three four five six seven eight nine
B. program outputs: ten eleven two three four five six seven eight nine
C. program outputs: ten one two three four five six seven eight nine
D. program outputs: zero eleven two three four five six seven eight nine
E. program outputs: 0 1 2 3 4 5 6 7 8 9
正解:C
質問 5:
What happens when you attempt to compile and run the following code?
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
using namespace std;
int main() {
int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5};
vector<int> v1(t, t + 15);
set<int> s1(t, t + 15);
pair<set<int>::iterator, vector<int>::iterator > resultSet = equal(s1.begin(), s1.end(), v1.begin());
cout<<*resultSet.first<<" "<<*resultSet.second<<endl;
return 0;
}
Program outputs:
A. compilation error
B. 0 5
C. 4 2
D. 2 4
正解:A
質問 6:
What happens when you attempt to compile and run the following code?
# include <vector>
# include <iostream>
# include <algorithm>
using namespace std;
template<class T>struct Out {
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) { out<<val<<" "; } };
int main() {
int t1[]={3,2,4,1,5};
int t2[]={5,6,8,2,1};
vector<int> v1(10);
sort(t1, t1+5);
sort(t2, t2+5);
set_symmetric_difference(t1,t1+5,t2,t2+5,v1.begin());
for_each(v1.begin(), v1.end(), Out<int>(cout));cout<<endl;
return 0;
}
Program outputs:
A. compilation error
B. 3 4 6 8 0 0 0 0 0 0
C. 6 8 3 4 0 0 0 0 0 0
D. 6 8 0 0 0 0 0 0 0 0
E. 3 4 0 0 0 0 0 0 0 0
正解:B
弊社のCPP問題集のメリット
Pass4Testの人気IT認定試験問題集は的中率が高くて、100%試験に合格できるように作成されたものです。Pass4Testの問題集はIT専門家が長年の経験を活かして最新のシラバスに従って研究し出した学習教材です。弊社のCPP問題集は100%の正確率を持っています。弊社のCPP問題集は多肢選択問題、単一選択問題、ドラッグ とドロップ問題及び穴埋め問題のいくつかの種類を提供しております。
Pass4Testは効率が良い受験法を教えてさしあげます。弊社のCPP問題集は精確に実際試験の範囲を絞ります。弊社のCPP問題集を利用すると、試験の準備をするときに時間をたくさん節約することができます。弊社の問題集によって、あなたは試験に関連する専門知識をよく習得し、自分の能力を高めることができます。それだけでなく、弊社のCPP問題集はあなたがCPP認定試験に一発合格できることを保証いたします。
行き届いたサービス、お客様の立場からの思いやり、高品質の学習教材を提供するのは弊社の目標です。 お客様がご購入の前に、無料で弊社のCPP試験「C++ Certified Professional Programmer」のサンプルをダウンロードして試用することができます。PDF版とソフト版の両方がありますから、あなたに最大の便利を捧げます。それに、CPP試験問題は最新の試験情報に基づいて定期的にアップデートされています。

一年間無料で問題集をアップデートするサービスを提供します。
弊社の商品をご購入になったことがあるお客様に一年間の無料更新サービスを提供いたします。弊社は毎日問題集が更新されたかどうかを確認しますから、もし更新されたら、弊社は直ちに最新版のCPP問題集をお客様のメールアドレスに送信いたします。ですから、試験に関連する情報が変わったら、あなたがすぐに知ることができます。弊社はお客様がいつでも最新版のC++ Institute CPP学習教材を持っていることを保証します。
弊社のC++ Certified問題集を利用すれば必ず試験に合格できます。
Pass4TestのC++ Institute CPP問題集はIT認定試験に関連する豊富な経験を持っているIT専門家によって研究された最新バージョンの試験参考書です。C++ Institute CPP問題集は最新のC++ Institute CPP試験内容を含んでいてヒット率がとても高いです。Pass4TestのC++ Institute CPP問題集を真剣に勉強する限り、簡単に試験に合格することができます。弊社の問題集は100%の合格率を持っています。これは数え切れない受験者の皆さんに証明されたことです。100%一発合格!失敗一回なら、全額返金を約束します!
C++ Institute CPP 認定試験の出題範囲:
トピック | 出題範囲 |
---|
トピック 1 | - Algorithms: Sorting and Binary Search: This section of the exam measures the skills of C++ Certified Associate Programmers and assesses knowledge of sorting algorithms like sort and stable_sort, along with binary search techniques. Candidates must efficiently organize and search data within ordered containers. One major skill evaluated is optimizing searches with std::binary_search.
|
トピック 2 | - Algorithms: Non-Modifying Sequence Operations: This section of the exam measures the skills of C++ Certified Associate Programmers and focuses on iterating through containers without altering their contents. Candidates will be tested on functions such as find, count, and mismatch to search and compare elements. One specific skill assessed is using std::for_each to process container elements efficiently.
|
トピック 3 | - Advanced I
- O: This section of the exam measures the skills of C++ Certified Entry-Level Programmers and covers advanced input and output stream manipulations. Candidates must demonstrate their ability to format streams using flags and manipulators.
|
トピック 4 | - Sequence Containers and Container Adapters: This section of the exam measures the skills of C++ Certified Associate Programmers and covers the use of sequence containers like vectors, deques, and lists. Candidates must demonstrate their ability to manipulate data using container methods and iterators and access stored elements efficiently. One key skill assessed is implementing dynamic storage management using vectors.
|
トピック 5 | - Algorithms: Modifying Sequence Operations: This section of the exam measures the skills of C++ Certified Entry-Level Programmers and examines the ability to modify container elements using functions like copy, swap, replace, and remove. The exam evaluates proficiency in restructuring data while maintaining performance.
|
トピック 6 | - Associative Containers: This section of the exam measures the skills of C++ Certified Entry-Level Programmers and covers fundamental concepts related to associative containers, including sets, maps, and multimaps.
|
トピック 7 | - Templates: This section of the exam measures the skills of C++ Certified Associate Programmers and tests their knowledge of defining and using template functions and classes. Candidates will be assessed on their ability to work with generic programming structures.
|
トピック 8 | - Smart Pointers: This section of the exam measures the skills of C++ Certified Entry-Level Programmers and focuses on managing memory using smart pointers like std::unique_ptr and std::shared_ptr. Candidates must understand ownership and conversion between pointer types.
|
トピック 9 | - Algorithms: Merge, Heap, Min, Max: This section of the exam measures the skills of C++ Certified Entry-Level Programmers and explores merging operations, heap structures, and set operations. Candidates will be tested on functions such as merge, set_union, and max_element. One specific skill assessed is using std::min_element to locate the smallest value in a collection.
|
参照:http://cppinstitute.org/cpp-c-certified-professional-programmer
弊社は無料でC++ Certified試験のDEMOを提供します。
Pass4Testの試験問題集はPDF版とソフト版があります。PDF版のCPP問題集は印刷されることができ、ソフト版のCPP問題集はどのパソコンでも使われることもできます。両方の問題集のデモを無料で提供し、ご購入の前に問題集をよく理解することができます。
簡単で便利な購入方法:ご購入を完了するためにわずか2つのステップが必要です。弊社は最速のスピードでお客様のメールボックスに製品をお送りします。あなたはただ電子メールの添付ファイルをダウンロードする必要があります。
領収書について:社名入りの領収書が必要な場合には、メールで社名に記入して頂き送信してください。弊社はPDF版の領収書を提供いたします。
元村** -
やっぱり秀逸です。断然お勧めです。丁寧に解説したCPP問題集で、試験直前の総仕上げにも役立つ1冊です。