Download C++ Institute.CPA-21-02.VCEplus.2023-12-22.64q.tqb

Download Exam

File Info

Exam CPA - C++ Certified Associate Programmer
Number CPA-21-02
File Name C++ Institute.CPA-21-02.VCEplus.2023-12-22.64q.tqb
Size 587 KB
Posted Dec 22, 2023
Download C++ Institute.CPA-21-02.VCEplus.2023-12-22.64q.tqb

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
int main()
{ int i
=
0;
i++;
goto lab;
i++;
lab:
cout<<i;
return 0;
}


  1. It prints: 0
  2. It prints: 34
  3. It prints: 1
  4. It prints: 3
Correct answer: C



Question 2

What is the output of the program?
#include <iostream>
#include <string>
using namespace std;
int main()
{
char str[] = 'Hello\0\World\0';
cout << str;
return 0;
}


  1. It prints: Hello
  2. It prints: World
  3. It prints: HW
  4. It prints: World\0World
Correct answer: A



Question 3

If there is one, point out an error in the program
#include <iostream>
using namespace std;
int main()
{ int c = 'a';
switch(i)
{
case '2':
cout<<'OK';
case '1':
cout<<'Error';
default:
break;
}
return 0;
}


  1. No Error
  2. Use of undeclared identifier 'i'
  3. Illegal use of 'continue'
  4. Illegal use of 'break'
Correct answer: B









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files