CPP 前提条件 - CPP 認定資格試験問題集

 

C++ InstituteのCPP 前提条件にリラクスで合格するのも可能性があります。我々JapanCertの提供するC++ InstituteのCPP 前提条件のソフトを利用した多くのお客様はこのような感じがあります。弊社の無料デモをダウンロードしてあなたはもっと真実に体験することができます。我々は弊社の商品を選ぶお客様に責任を持っています。あなたの利用しているC++ InstituteのCPP 前提条件のソフトが最新版のを保証しています。

我々JapanCertは最も頼もしいアフターサービスを提供します。あなたはC++ InstituteのCPP 前提条件をご購入になってから、我々は一年間の無料更新サービスを提供します。その一年の間、我々の専門家たちは毎日CPP 前提条件の更新を検査しています。もし更新されたら、すぐにお客様を知らせます。お客様の持っているのはずっと最新版のですから、安心でCPP 前提条件を準備することができます。

CPP試験番号:CPP 資格練習
試験科目:「C++ Certified Professional Programmer」
最近更新時間:2017-06-22
問題と解答:230

>> CPP 資格練習

 

NO.1 What happens when you attempt to compile and run the following code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
class A {
int a;
public:
A(int a) : a(a) {}
int getA() const { return a; } void setA(int a) { this?>a = a; }
bool operator==(const A & b) const { return a == b.a; }
};
bool compare(const A & a, const A & b) { return a == b; }
int main () {
int t = {1,2,3,3,5,1,2,4,4,5};
vector<A> v (t,t+10);
vector<A>::iterator it = v.begin();
while ( (it = adjacent_find (it, v.end(), compare)) != v.end()) {
cout<<it?v.begin()<<" ";it++;
}
cout<< endl;
return 0;
A. program outputs: 2 3
B. program outputs: 2 7
C. program will run forever
D. compilation error
E. program outputs: 3 8
Answer: B

CPP 参考書   CPP 入門   

NO.2 What happens when you attempt to compile and run the following code?
#include <list>
#include <iostream>
using namespace std;
template<class T> void print(T start, T end) {
while (start != end) {
std::cout << *start << " "; start++;
}
}
class A {
int a;
public:
A(int a):a(a){}
operator int () const { return a;}int getA() const { return a;}
};
int main() {
int t1
={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
list<A> l1(t1, t1 + 10);
list<A> l2(l1);
l2.reverse(); l1.splice(l1.end(),l2);
l1.pop_back();l1.unique();
print(l1.begin(), l1.end()); cout<<endl;
return 0;
}
A. runtime exception
B. program outputs: 1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2
C. program outputs: 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1
D. program outputs: 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2
E. compilation error
Answer: D

CPP 体験談   

NO.3 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<<" "; } };
struct Add {
int operator()(int & a, int & b) {
return a+b;
}
};
int main() {
int t[]={1,2,3,4,5,6,7,8,9,10};
vector<int> v1(t, t+10);
vector<int> v2(10);
transform(v1.begin(), v1.end(), v2.begin(), bind1st(1,Add()));
for_each(v2.rbegin(), v2.rend(), Out<int>(cout));cout<<endl;
return 0;
}
Program outputs:
A. 1 2 3 4 5 6 7 8 9 10
B. compilation error
C. 2 3 4 5 6 7 8 9 10 11
D. 11 10 9 8 7 6 5 4 3 2
E. 10 9 8 7 6 5 4 3 2 1
Answer: B

CPP 必殺   

JapanCertは最新のPK0-004問題集と高品質のC_THR81_1702問題と回答を提供します。JapanCertの7693X VCEテストエンジンと7750X試験ガイドはあなたが一回で試験に合格するのを助けることができます。高品質の70-742 PDFトレーニング教材は、あなたがより迅速かつ簡単に試験に合格することを100%保証します。試験に合格して認証資格を取るのはそのような簡単なことです。

記事のリンク:http://www.japancert.com/CPP.html