Free Dump: Free Demo and Valid Vce Dump For Certification Exam Prep

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Free4Dump

http://www.free4dump.com
Free demo and valid vce dump for certification exam prep
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Exam : CPA

Title : C++ Certified Associate


Programmer

Vendors : C++ Institute

Version : DEMO

1/3

Get Latest & Valid CPA Exam's Question and Answers from Free4dump.com. 1
http://www.free4dump.com/cpa-braindumps-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

NO.1 What will happen when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
int getValue();
int main()
{
const int x = getValue();
cout<<x;
return 0;
}
int getValue()
{
return 5;
}
A. It will print 0
B. The code will not compile.
C. It will print 5
D. It will print garbage value
Answer: C

NO.2 How many times will "HELLO" be printed?


#include <iostream>
using namespace std;
int main()
{
for(int i=?1; i<=10; i++)
{
if(i < 5)
continue;
else
break;
cout<<"HELLO";
}
return 0;
}
A. 1
B. 2
C. 0
D. 20
Answer: C

NO.3 What happens if you try to compile and run this program?
#include <iostream>
using namespace std;

2/3

Get Latest & Valid CPA Exam's Question and Answers from Free4dump.com. 2
http://www.free4dump.com/cpa-braindumps-torrent.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

int main (int argc, const char * argv[])


{
print("Test");
return 0;
}
void print(int c[])
{
cout<<c;
}
A. It prints: Test
B. Compilation fails
C. Program terminates abnormally
D. None of these
Answer: B

3/3

Get Latest & Valid CPA Exam's Question and Answers from Free4dump.com. 3
http://www.free4dump.com/cpa-braindumps-torrent.html

You might also like