Labour Day Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 2493360325

Good News !!! CPP Beingcert Certified Python Programmer Exam is now Stable and With Pass Result

CPP Practice Exam Questions and Answers

Beingcert Certified Python Programmer Exam

Last Update 4 days ago
Total Questions : 0

Beingcert Certified Python Programmer Exam is stable now with all latest exam questions are added 4 days ago. Incorporating CPP practice exam questions into your study plan is more than just a preparation strategy.

By familiarizing yourself with the Beingcert Certified Python Programmer Exam exam format, identifying knowledge gaps, applying theoretical knowledge in Python Programming practical scenarios, you are setting yourself up for success. CPP exam dumps provide a realistic preview, helping you to adapt your preparation strategy accordingly.

CPP exam questions often include scenarios and problem-solving exercises that mirror real-world challenges. Working through CPP dumps allows you to practice pacing yourself, ensuring that you can complete all Beingcert Certified Python Programmer Exam exam questions within the allotted time frame without sacrificing accuracy.

CPP PDF

CPP PDF (Printable)
$240
$600

CPP Testing Engine

CPP PDF (Printable)
$240
$600

CPP PDF + Testing Engine

CPP PDF (Printable)
Question # 1

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,4,5,1,2,3,5,4};

vector v (t,t+10);

vector::iterator it;

int m1[] = {1, 3, 2};

it = find_end (v.begin(), v.end(), m1, m1+3);

if (it != v.end())

cout << "Found at position: " << it?v.begin() << endl;

return 0;

}

Options:

A.  

program outputs: Found at position: 5

B.  

program outputs: Found at position: 0

C.  

no output

D.  

program outputs: Found at position: 10

Discussion 0
Question # 2

What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: true false?

#include

#include

using namespace std;

int main ()

{

bool a,b;

cin>>boolalpha>>a>>b;

cout<

return 0;

}

Program will output:

Options:

A.  

truefalse

B.  

true0;

C.  

1false

D.  

10

E.  

none of these

Discussion 0
Question # 3

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

#include

#include

int main ()

{

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

std::vectorv1(t,t+5);

std::vectorv2(v1);

v1.resize(10);

v2.reserve(10);

std::vector::iterator i = v1.begin();int ii = 0;

while (i != v1.end()) { std::cout<

i = v2.begin();ii=0;

while (i != v2.end()) { std::cout<

return 0;

}

Options:

A.  

program outputs 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

B.  

compilation error

C.  

program outputs 1 1 1 1 1 1 1 1 1 1 1 2 3 4 5

D.  

program outputs 1 2 3 4 5 0 0 0 0 0 1 2 3 4 5 0 0 0 0 0

Discussion 0
Question # 4

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

#include

#include

#include

using namespace std;

int main ()

{

int t[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };

vector v1(t, t + 10);

deque d1(v1.begin(), v1.end());

deque d2;

d2 = d1;

d2.insert(d1.rbegin(), 10);

for(int i = 0; i

{

cout<

}

return 0;

}

Options:

A.  

program outputs: 0 1 2 3 4 5 6 7 8 9 10

B.  

program outputs: 10 0 1 2 3 4 5 6 7 8 9

C.  

program outputs: 0 1 2 3 4 5 6 7 8 9

D.  

compilation error

Discussion 0
Question # 5

What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: 64 100?

#include

#include

#include

#include

using namespace std;

int main ()

{

string s;

getline(cin, s);

stringstream input(s);

stringstream output;

for( ; !input.fail() ; )

{

int i;

input>>hex>>i;

output<

}

cout<

return 0;

}

What will be the result assuming that user will enter following sequence: 64 100:

Options:

A.  

64 100

B.  

100 256

C.  

100 256 256

D.  

0x64 0x100

E.  

0x100 0x256 0x256

Discussion 0
Question # 6

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

#include

#include

using namespace std;

template

class A {

T_v;

public:

A() {}

A(T v): _v(v){}

T getV() { return _v; }

void add(T & a) { _v+=a; }

void add(string & a) {

_v.insert(0, a);

}

};

int main()

{

Aa("Hello");

string s(" world!");

a.add(s);

cout << a.getV() <

return 0;

}

Options:

A.  

program will display: Hello world!

B.  

compilation error

C.  

program will display: world!Hello

D.  

program will run without any output

Discussion 0
Question # 7

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

#include

#include

#include

using namespace std;

class B { int val;

public:

B(int v):val(v){}

int getV() const {return val;} bool operator < (const B & v) const { return val

ostream & operator <<(ostream & out, const B & v) { out<

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

int main() {

int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3};

deque d1(t, t+10);

sort(d1.begin(), d1.end());

deque::iterator it = upper_bound(d1.begin(), d1.end(), B(4), greater());

for_each(it, d1.end(), Out(cout)); cout<

return 0;

}

Program outputs:

Options:

A.  

5 6 7 8 9 10

B.  

4 5 6 7 8 9 10

C.  

compilation error

D.  

1 2 3 4 5

E.  

1 2 3 4

Discussion 0
Question # 8

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

#include

#include

#include

#include

#include

using namespace std;

int main()

{

int t[] ={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

deque mydeck(t, t+10);list mylist(t,t+10);

queue first;

queue second(mydeck);

queue third(second);

queue > fourth(mylist);

mylist.clear();third.clear();

cout<

cout<

return 0;

}

Options:

A.  

program outputs: 10 0

10 0

B.  

program outputs: 0 0

0 0

C.  

program outputs: 10 10

10 10

D.  

program outputs: 10 0

0 10

E.  

compilation error

Discussion 0
Question # 9

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

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

int main() {

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

int t2[]={5,6,8,2,1};

vector v1(10);

sort(t1, t1+5);

sort(t2, t2+5);

set_union(t1,t1+5,t2,t2+5,v1.begin());

for_each(v1.begin(), v1.end(), Out(cout));cout<

return 0;

}

Program outputs:

Options:

A.  

3 2 4 1 5 6 8 2 1 0

B.  

1 2 3 4 5 6 8 2 1 0

C.  

1 1 2 2 3 4 5 5 6 8

D.  

1 2 3 4 5 6 8 0 0 0

E.  

compilation error

Discussion 0
Question # 10

What will happen when you attempt to compile and run the code below, assuming that file test.in contains the following sequence: 1 2 3?

#include

#include

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) {out<

int main () {

ifstream f("test.in");

list l;

for( ; f.good() ; ) {

int i;

f>>i;

l.push_back(i);

}

f.close();

for_each(l.begin(), l.end(), Out(cout));

return 0;

}

Program will output:

Options:

A.  

1 2 3

B.  

1 2 3 3

C.  

no output

D.  

compilation error

E.  

program runs forever without output

Discussion 0
Question # 11

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

#include

#include

#include

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; }

};

int main () {

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

deque d (t,t+15);

int number = count(d.begin(), d.end(), 2);

cout<< number<

return 0;

}

Program outputs:

Options:

A.  

4

B.  

3

C.  

2

D.  

0

E.  

compilation error

Discussion 0
Question # 12

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

#include

#include

using namespace std;

int main() {

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

string s[] = { "one", "one", "two", "two", "three","three", "four", "four", "five", "five"};

map m;

for (int i = 0; i < 10; i++) {

m.push_back(pair(t[i], s[i]));

}

for (map::iterator i = m.begin(); i != m.end(); i++) {

cout << i?>first << " ";

}

return 0;

}

Options:

A.  

program outputs: 1 2 3 4 5

B.  

compilation error

C.  

program outputs: 1 1 2 2 3 3 4 4 5 5

D.  

program outputs: one two three four five

E.  

program outputs: one one two two three three four four five five

Discussion 0
Question # 13

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

#include

#include

#include

using namespace std;

class B { int val;

public:

B(int v):val(v){}

int getV() const {return val;} bool operator < (const B & v) const { return val

ostream & operator <<(ostream & out, const B & v) { out<

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

int main() {

B t1[]={3,2,4,1,5};

B t2[]={6,10,8,7,9};

vector v1(10);

sort(t1, t1+5);

sort(t2, t2+5);

merge(t1,t1+5,t2,t2+5,v1.begin());

for_each(v1.begin(), v1.end(), Out(cout));cout<

return 0;

}

Program outputs:

Options:

A.  

1 2 3 4 5 6 10 8 7 9

B.  

3 2 4 1 5 6 7 8 9 10

C.  

3 2 4 1 5 6 10 8 7 9

D.  

1 2 3 4 5 6 7 8 9 10

E.  

compilation error

Discussion 0
Question # 14

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

#include

#include

#include

#include

#include

#include

using namespace std;

class B { int val;

public:

B(int v=0):val(v){}

int getV() const {return val;}

operator int() const { return val; };};

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) {out<

int main () {

int t[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

fstream f("test.out", ios::trunc|ios::out);

list l(t, t+10);

for_each(l.begin(), l.end(), Out(f));

f.close();

f.open("test.out");

for( ; f.good() ; ) {

B i;

f>>i;

cout<

}

f.close();

return 0;

}

Options:

A.  

file test.out will be opened writing

B.  

file test.out will be truncated

C.  

file test.out will be opened for reading

D.  

compilation error

E.  

program will display sequence 1 2 3 4 5 6 7 8 9 10

Discussion 0
Question # 15

Which stack initialization (line numbers) are correct? Choose all that apply.

#include

#include

#include

#include

#include

using namespace std;

int main()

{

deque mydeck;

list mylist;

vector myvector;

stack first;// Line I

stack second(mydeck);// Line II

stack third(second);// Line III

stack > fourth(mylist);// Line IV

stack > fifth(myvector);// Line V

return 0;

}

Options:

A.  

line I

B.  

line II

C.  

line III

D.  

line IV

E.  

line V

Discussion 0
Question # 16

Which method added to class B at the marked spot will allow the code below to compile? Choose all possible solutions.

#include

#include

#include

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<

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

int main() {

int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3};

vector v1(t, t+10);

sort(v1.begin(), v1.end(), greater());

for_each(v1.begin(), v1.end(), Out(cout));cout<

return 0;

}

Options:

A.  

bool operator < (const B & v) const { return val

B.  

bool operator > (const B & v) const { return val

C.  

bool operator > (const B & v) const { return val>v.val;}

D.  

bool operator == (const B & v) const { return val==v.val;}

E.  

operator int () const { return val; }

Discussion 0
Question # 17

What happens when you attempt to compile and run the following code? Choose all that apply.

#include

#include

#include

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) {out<

int main () {

int t[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

fstream f("test.out", ios::trunc|ios::out);

list l(t, t+10);

for_each(l.begin(), l.end(), Out(f));

f.close(); f.open("test.out");

for( ; f.good() ; ) {

int i; f>>i;

cout<

}

f.close();

return 0;

}

Options:

A.  

file test.out will be opened writing

B.  

file test.out will be truncated

C.  

file test.out will be opened for reading

D.  

no file will be created nor opened

E.  

program will display sequence 1 2 3 4 5 6 7 8 9 10

Discussion 0
Question # 18

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

#include

#include

#include

#include

using namespace std;

void myfunction(int i) {

cout << " " << i;

}

int main() {

int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 };

set s1(t, t+10);

vector v1(s1.rbegin(), s1.rend());

swap(s1, v1);

for_each(v1.begin(), v1.end(), myfunction);

for_each(s1.begin(), s1.end(), myfunction);

return 0;

}

Program outputs:

Options:

A.  

10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10

B.  

compilation error

C.  

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

D.  

10 9 8 7 6 5 4 3 2 1 10 9 8 7 6 5 4 3 2 1

Discussion 0
Question # 19

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;

queue first; queue second(mydeck);

queue third(second); queue > fourth(mylist);

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

queue > fifth(myvector);

fifth.push(10);fifth.push(11);fifth.push(12); // Line I

while(!fifth.empty())

{

cout<

fifth.pop(); // Line III

}

while (!fourth.empty())

{

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

fourth.pop(); // Line IV

}

return 0;

}

Options:

A.  

program outputs: 10 11 12 10 11 12

B.  

compilation error in line I

C.  

compilation error in line II

D.  

compilation error in line III

E.  

compilation error in line IV

Discussion 0
Question # 20

What happens when you attempt to compile and run the following code? Choose all that apply.

#include

#include

using namespace std;

int main ()

{

vectorv1(10, 3);

v1.push_back(3);

cout<

return 0;

}

Options:

A.  

program displays 4 4

B.  

program displays 10 3

C.  

size of vector v1 is 11

D.  

all elements of vector v1 are of the same value

Discussion 0
Question # 21

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

#include

#include

#include

using namespace std;

template void print(T start, T end) {

while (start != end) {

std::cout << *start << " "; start++;

}

}

int main(){

vectorv;

set s;

for(int i=10; i>0; i??) {

v.push_back(i);

s.push_back(i);

}

print(v.begin(), v.end()); print(s.begin(), s.end());cout<

return 0;

}

The output will be:

Options:

A.  

10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10

B.  

10 9 8 7 6 5 4 3 2 1 10 9 8 7 6 5 4 3 2 1

C.  

10 9 8 7 6 5 4 3 2 1 and unpredictable sequence of number range 1 to 10

D.  

compilation error

Discussion 0
Question # 22

What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: 1 2 3 4 quit?

#include

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) {out<

int main ()

{

list l;

while(cin.good())

{

string s;

cin>>s;

if (s == "quit") break;

l.push_back(s);

}

for_each(l.begin(), l.end(), Out(cout));

return 0;

}

Program will output:

Options:

A.  

1 2 3 4

B.  

1 2 3 4 quit

C.  

1

D.  

program runs forever without output

Discussion 0
Question # 23

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

#include

#include

#include

#include

using namespace std;

void myfunction(int i) {

cout << " " << i;

}

int main() {

vector v1(10,1);

fill(v1.begin()+2, v1.end()?2,2);

fill_n(v1.begin()+4,2,3);

for_each(v1.begin(), v1.end(), myfunction);

return 0;

}

Program outputs:

Options:

A.  

1 1 2 2 3 3 2 2 1 1

B.  

1 1 2 2 2 2 2 2 1 1

C.  

compilation error

D.  

none of these

Discussion 0
Question # 24

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

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

int main() {

int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3};

deque d1(t, t+10);

sort(d1.begin(), d1.end());

deque::iterator it = upper_bound(d1.begin(), d1.end(), 4);

for_each(it, d1.end(), Out(cout));cout<

return 0;

}

Program outputs:

Options:

A.  

5 6 7 8 9 10

B.  

4 5 6 7 8 9 10

C.  

1 2 3 4 5 6 7 8 9 10

D.  

1 2 3 4 5

E.  

1 2 3 4

Discussion 0
Question # 25

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

#include

#include

#include

#include

using namespace std;

void myfunction(int i) {

cout << " " << i;

}

int multiply (int a) {

return a*2;

}

int main() {

int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 };

vector v1(t, t+10);

set s1(t, t+10);

transform(s1.begin(), s1.end(), v1.begin(), multiply);

transform(v1.begin(), v1.end(), s1.begin(), multiply);

for_each(s1.begin(), s1.end(), myfunction);

return 0;

}

Program outputs:

Options:

A.  

20 10 18 12 4 8 14 16 6 2

B.  

2 4 6 8 10 12 14 16 18 20

C.  

4 8 12 16 20 24 28 32 36 40

D.  

compilation error

Discussion 0
Question # 26

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

#include

#include

#include

using namespace std;

class B { int val;

public:

B(int v=0):val(v){}

int getV() const {return val;}

operator int () const { return val;} };

ostream & operator <<(ostream & out, const B & v) { out<

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator() (const T & val ) { out<

struct Add {

B operator()(B & a, B & b) { return a+b; } };

int main() {

B t[]={1,2,3,4,5,6,7,8,9,10};

vector v1(t, t+10);

vector v2(10);

transform(v1.begin(), v1.end(), v2.begin(), bind2nd(Add(),1));

for_each(v2.rbegin(), v2.rend(), Out(cout));cout<

return 0;

}

Program outputs:

Options:

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

Discussion 0
Question # 27

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

#include

using namespace std;

class C {

public:

int _c;

C():_c(0){}

C(int c) { _c = c;}

C operator+=(C & b) {

C tmp;

tmp._c = _c+b._c;

return tmp;

}

};

template

class A {

T_v;

public:

A() {}

A(T v): _v(v){}

T getV() { return _v; }

void add(T & a) { _v+=a; }

};

int main()

{

A b(2);

Aa (5);

Cc;

a.add(c);

cout << a.getV() <

return 0;

}

Options:

A.  

program will display:2

B.  

program will not compile

C.  

program will compile

D.  

program will cause runtime exception

Discussion 0
Question # 28

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

#include

#include

#include

#include

using namespace std;

void myfunction(int i) { cout << " " << i;

}

struct sequence {

int val,inc;

sequence(int s, int i):val(s),inc(i){}

int operator()(){

int r = val; val += inc;

return r;

}

};

int main() {

vector v1(10);

fill(v1.begin(), v1.end(), sequence(1,1));

for_each(v1.begin(), v1.end(), myfunction);

return 0;

}

Program outputs:

Options:

A.  

1 2 3 4 5 6 7 8 9 10

B.  

10

C.  

0 0 0 0 0 0 0 0 0 0

D.  

compilation error

Discussion 0
Question # 29

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

#include

#include

#include

using namespace std;

templatestruct Out {

ostream & out;

Out(ostream & o): out(o){}

void operator()(const T & val ) {

out<

}

};

struct Sequence {

int start;

Sequence(int start):start(start){}

int operator()() { return start++; }

};

struct Odd { bool operator()(int v) { return v%2==0; }};

int main() {

vector v1(10);

generate(v1.begin(), v1.end(), Sequence(1));

partition(v1.begin(),v1.end(), Odd());

for_each(v1.begin(), v1.end(), Out(cout) );cout<

return 0;

}

Choose all possible outputs:

Options:

A.  

1 2 3 4 5 6 7 8 9 10

B.  

5 7 3 9 1 10 2 8 4 6

C.  

10 2 8 4 6 5 7 3 9 1

D.  

4 6 8 10 2 7 5 3 1 9

E.  

2 4 6 8 10 1 3 5 7 9

Discussion 0
Question # 30

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

#include

#include

#include

using namespace std;

int main(){

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

listv(t, t+10);

multiset s1(v.begin(),v.end());

if (s1.count(3) == 2) {

s1.erase(3);

}

for(multiset::iterator i=s1.begin();i!= s1.end(); i++) {

cout<<*i<<" ";

}

return 0;

}

Options:

A.  

program outputs: 1 2 3 4 5

B.  

program outputs: 1 2 4 5

C.  

program outputs: 1 1 2 2 3 4 4 5 5

D.  

program outputs: 1 1 2 2 3 3 4 4 5 5

E.  

compilation error

Discussion 0
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
Get CPP dumps and pass your exam in 24 hours!

Free Exams Sample Questions

  • We Accept

    exams4sure payments accept


    Secure Site

    mcafee secure

    TESTED 04 May 2024

  • Customer Review

    Hi this is Romona Kearns from Holland and I would like to tell you that I passed my exam with the use of exams4sure dumps. I got same questions in my exam that I prepared from your test engine software. I will recommend your site to all my friends for sure.

  • Money Back Guarantee

    Our all material is important and it will be handy for you. If you have short time for exam so, we are sure with the use of it you will pass it easily with good marks. If you will not pass so, you could feel free to claim your refund. We will give 100% money back guarantee if our customers will not satisfy with our products.