C++ Institute CPP exam certification is widely recognized IT certifications. People around the world prefer CPP exam certification to make their careers more strengthened and successful. Speaking of C++ Institute CPP exam, ITCertKing C++ Institute CPP exam training materials have been ahead of other sites. Because ITCertKing has a strong IT elite team, they always follow the latest C++ Institute CPP exam training materials, with their professional mind to focus on C++ Institute CPP exam training materials.
In this competitive IT industry, having some authentication certificate can help you promote job position. Many companies that take a job promotion or increase salary for you will refer to how many gold content your authentication certificates have. C++ Institute CPP is a high gold content certification exam. C++ Institute CPP authentication certificate can meet many IT employees' needs. ITCertKing can provide you with C++ Institute certification CPP exam targeted training. You can free download ITCertKing's trial version of raining tools and some exercises and answers about C++ Institute certification CPP exam as a try.
Through the C++ Institute certification CPP exam method has a lot of kinds, spend a lot of time and energy to review the C++ Institute certification CPP exam related professional knowledge is a kind of method, through a small amount of time and money ITCertKing choose to use the pertinence training and exercises is also a kind of method.
Exam Code: CPP
Exam Name: C++ Institute (C++ Certified Professional Programmer)
One year free update, No help, Full refund!
Total Q&A: 230 Questions and Answers
Last Update: 2013-10-13
The ITCertKing C++ Institute CPP exam questions is 100% verified and tested. ITCertKing C++ Institute CPP exam practice questions and answers is the practice test software. In ITCertKing, you will find the best exam preparation material. The material including practice questions and answers. The information we have could give you the opportunity to practice issues, and ultimately achieve your goal that through C++ Institute CPP exam certification.
CPP Free Demo Download: http://www.itcertking.com/CPP_exam.html
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 outputs: 3 8
D. compilation error
E. program will run forever
Answer: B
C++ Institute certification training CPP test questions CPP exam simulations
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. compilation error
B. runtime exception
C. program outputs: 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2
D. program outputs: 1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2
E. program outputs: 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1
Answer: C
C++ Institute CPP exam simulations CPP original questions
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. 2 3 4 5 6 7 8 9 10 11
C. 10 9 8 7 6 5 4 3 2 1
D. 11 10 9 8 7 6 5 4 3 2
E. compilation error
Answer: E
C++ Institute CPP CPP CPP certification training CPP
ITCertKing offer the latest 000-122 exam material and high-quality 000-224 pdf questions & answers. Our HP2-H28 VCE testing engine and HP2-N35 study guide can help you pass the real exam. High-quality HP2-E56 dumps training materials can 100% guarantee you pass the exam faster and easier. Pass the exam to obtain certification is so simple.
Article Link: http://www.itcertking.com/CPP_exam.html
没有评论:
发表评论