Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

Free Beingcert Certified Python Programmer Exam Practice Questions

Exams4sure Dumps

Exam style questions across every CPP domain

Last Update 3 days ago
Total Questions : 0

Start with our free CPP practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Certified Python Programmer exam. Each CPP exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Python Programming weak domains, see where you're losing marks, and build a focused study plan in minutes.

CPP PDF

CPP PDF (Printable)
$210
$600

CPP Testing Engine

CPP PDF (Printable)
$210
$600

CPP PDF + Testing Engine

CPP PDF (Printable)
Question # 31

What happens when you attempt to compile and run the following code?

#include

#include

#include

#include

#include

using namespace std;

int main()

{

deque mydeck;list mylist; vector myvector;

stack first;

stack second(mydeck);

stack third(second);

stack > fourth(mylist);

fourth.push(10);fourth.push(11);fourth.push(12);

stack > fifth(myvector);

fifth.push(10);fifth.push(11);fifth.push(12);

while(!fifth.empty())

{

cout<

fifth.pop();

}

while (!fourth.empty())

{

cout << fourth.front() << " ";

fourth.pop();

}

return 0;

}

Options:

A.  

program outputs: 12 11 10 12 11 10

B.  

compilation error

C.  

program outputs: 10 11 12 10 11 12

D.  

runtime exception

Discussion 0
Question # 32

What happens when you attempt to compile and run the following code?

#include

#include

using namespace std;

int main ()

{

float f = 10.126;

cout.unsetf(ios::floatfield);

cout<

return 0;

}

Program outputs:

Options:

A.  

10.126 10

B.  

10.126 10.12

C.  

10.1260 10.13

D.  

10.126 10.13

Discussion 0
Question # 33

What happens when you attempt to compile and run the following code?

#include

#include

#include

using namespace std;

int main () {

int t[] = {1,2,3,3,5,1,2,4,4,5};

vector v (t,t+10);

vector::iterator it = v.begin();

while ( (it = adjacent_find (it, v.end())) != v.end()) {

cout<

}

cout<< endl;

return 0;

}

Options:

A.  

program outputs: 2 3

B.  

program outputs: 2 7

C.  

program outputs: 3 8

D.  

compilation error

E.  

program will run forever

Discussion 0
Question # 34

What happens when you attempt to compile and run the following code?

#include

using namespace std;

int main()

{

cout.setf(ios::hex, ios::basefield);

cout<<100.33<<" ";

cout.setf(ios::showbase);

cout<<100.33<<" ";

return 0;

}

Program outputs:

Options:

A.  

64.21 64.21

B.  

64.21 0x64.21

C.  

0x64.21 0x64.21

D.  

100.33 100.33

E.  

compilation error

Discussion 0

Free Exams Sample Questions