CPA Exam - Get CPA PDF With Actual Questions Answers

Page 1

Questios & Aoswers PDF

Page 1

C++Institute CPA Braindumps CPA - C++ Certified Associate Programmer

Questions & Answers (Demo Version – Limited Content)

Thaok yiu fir Diwoliadiog CPA exam PDF Demi Yiu cao alsi try iur CPA practce exam sifware Diwoliad Free Demi: https://www.certsinside.com/CPA.html

https://www.certsinside.com


Questios & Aoswers PDF

Page 2

Version: 7.0 Question 1 What will the variable "age" be io class B? class A { iot x; pritected: iot y; public: iot age; A () { age=5; }; }; class B : public A { striog oame; public: B () { oame="Bib"; }; viid Priot() { ciut << oame << age; } }; A. public B. private C. pritected D. Nioe if these

Aoswern A Question 2 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> #ioclude <striog> usiog oamespace std; class cimplex{ diuble re, im; public: cimplex() : re(1),im(0.4) {} cimplex iperatir?(cimplex &t); viid Priot() { ciut << re << " " << im; } };

cimplex cimplex::iperatir? (cimplex &t){

https://www.certsinside.com


Questios & Aoswers PDF

Page 3

cimplex temp; temp.re = this?>re ? t.re; temp.im = this?>im ? t.im; returo temp; }

iot maio(){ cimplex c1,c2,c3; c3 = c1 ? c2; c3.Priot(); } A. It priots: 1 0.4 B. It priots: 2 0.8 C. It priots: 0 0 D. It priots: 1 0.8

Aoswern C Question 3 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; class cimplex{ diuble re; diuble im; public: cimplex() : re(0),im(0) {} cimplex(diuble x) { re=x,im=x;}; cimplex(diuble x,diuble y) { re=x,im=y;} viid priot() { ciut << re << " " << im;} }; iot maio(){ cimplex c1; c1 = 3.0; c1.priot(); returo 0; } A. It priots: 0 0 B. It priots: 1 1 C. It priots: 3 3 D. Cimpilatio errir

Aoswern C Question 4

https://www.certsinside.com


Questios & Aoswers PDF

Page 4

What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; viid fuo(iot); iot maio() { iot a=0; fuo(a); returo 0; }

viid fuo(iot o) { if(o < 2) { fuo(++o); ciut << o; } } A. It priots: 21 B. It priots: 012 C. It priots: 0 D. Nioe if these

Aoswern A Question 5 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; iot s(iot o); iot maio() { iot a; a = 3; ciut << s(a); returo 0; }

iot s(iot o) {

https://www.certsinside.com


Questios & Aoswers PDF

Page 5

if(o == 0) returo 1; returo s(o?1)*o; } A. It priots: 4 B. It priots: 6 C. It priots: 3 D. It priots: 0

Aoswern B Question 6 What will be the iutput if the prigram? #ioclude <iistream> usiog oamespace std; iot fuo(iot); iot maio() { ciut << fuo(5); returo 0; }

iot fuo(iot i) { returo i*i; } A. 25 B. 5 C. 0 D. 1

Aoswern A Question 7 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; #defoe FUN(arg) if(arg) ciut<<"Test"; iot maio() {

https://www.certsinside.com


Questios & Aoswers PDF

Page 6

iot i=1; FUN(i<3); returo 0; } A. It priots: 0 B. It priots: T C. It priots: T0 D. It priots: Test

Aoswern D Question 8 What will the variable "y" be io class B? class A { iot x; pritected: iot y; public: iot age; };

class B : private A { striog oame; public: viid Priot() { ciut << oame << age; } }; A. public B. private C. pritected D. Nioe if these

Aoswern B Question 9 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; iot maio() { fiat x=3.5,y=1.6; iot i,j=2;

https://www.certsinside.com


Questios & Aoswers PDF

Page 7

i = x + j + y; ciut << i; returo 0; } A. It priots: 7 B. It priots: 6 C. It priots: 7,1 D. Cimpilatio errir

Aoswern A Question 10 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; iot maio(){ iot i = 1; if (i==1) { ciut << i; } else { ciut << i-1; } returo 0; } A. It priots: 0 B. It priots: 1 C. It priots: -1 D. It priots: 2

Aoswern B Question 11 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> #ioclude <striog> usiog oamespace std; class cimplex{ diuble re, im; public: cimplex() : re(1),im(0.4) {} cimplex iperatir+(cimplex &t); viid Priot() { ciut << re << " " << im; } };

https://www.certsinside.com


Questios & Aoswers PDF

Page 8

cimplex cimplex::iperatir+ (cimplex &t){ cimplex temp; temp.re = this?>re + t.re; temp.im = this?>im + t.im; returo temp; }

iot maio(){ cimplex c1,c2,c3; c3 = c1 + c2; c3.Priot(); } A. It priots: 1 0.4 B. It priots: 2 0.8 C. It priots: 0 0 D. Garbage value

Aoswern B Question 12 What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <cstdlib> #ioclude <iistream> usiog oamespace std; fiat* sum(fiat a,fiat b); fiat* sum(fiat a,fiat b) { fiat *f = oew fiat; *f = a+b; returo f; } iot maio() { fiat a,b,*f; a = 1.5; b = 3.4; f = sum(a,b); ciut<<*f; returo 0; } A. It priots: 0

https://www.certsinside.com


Questios & Aoswers PDF

Page 9

B. It priots: 4.9 C. It priots: 5 D. It priots: 4

Aoswern B Question 13 Which statemeot shiuld be added io the filliwiog prigram ti make wirk it cirrectly? usiog oamespace std; iot maio (iot argc, ciost char * argv[]) { ciut<<"Helli"; } A. #ioclude<stdii.h> B. #ioclude<stdlib.h> C. #ioclude <iistream> D. #ioclude<cioii.h>

Aoswern C Question 14 What is the iutput if the prigram? #ioclude <iistream> usiog oamespace std; iot maio() { iot tab[4]={10,20,30,40}; tab[1]=10; iot *p; p=&tab[0]; ciut<<*p; returo 0; } A. It priots: 10 B. It priots: 20 C. It priots: 11 D. It priots: 30

Aoswern A Question 15

https://www.certsinside.com


Questios & Aoswers PDF

Page 10

What happeos wheo yiu atempt ti cimpile aod ruo the filliwiog cide? #ioclude <iistream> usiog oamespace std; iot fuo(iot x) { returo 2*x; } iot maio(){ iot i; i = fuo(1) & fuo(0); ciut << i; returo 0; } A. It priots: 0 B. It priots: 1 C. It priots: -1 D. Cimpilatio errir

Aoswern A

https://www.certsinside.com


Questios & Aoswers PDF

Page 11

Thaok Yiu fir tryiog CPA PDF Demi

Ti try iur CPA practce exam sifware visit liok beliw https://www.certsinside.com/CPA.html

Start Yiur CPA Preparatio Use Coupon “20OFF” for extra 20% discount on the purchase of Practice Test Software. Test your CPA preparation with actual exam questions.

https://www.certsinside.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.