C++ Institute CPA Certified Associate Programmer (CPA-21-02) Certification Sample Questions

CPA Certified Associate Programmer Dumps, CPA-21-02 Dumps, CPA-21-02 PDF, CPA Certified Associate Programmer VCE, C++ Institute CPA-21-02 VCE, C++ Institute CPA - C++ PDFThe purpose of this Sample Question Set is to provide you with information about the CPA - C++ Certified Associate Programmer exam. These sample questions will make you very familiar with both the type and the difficulty level of the questions on the CPA-21-02 certification test. To get familiar with real exam environment, we suggest you try our Sample C++ Institute CPA Certified Associate Programmer Certification Practice Exam. This sample practice exam gives you the feeling of reality and is a clue to the questions asked in the actual CPA - C++ Certified Associate Programmer certification exam.

These sample questions are simple and basic questions that represent likeness to the real C++ Institute CPA-21-02 exam questions. To assess your readiness and performance with real time scenario based questions, we suggest you prepare with our Premium C++ Institute CPA Certified Associate Programmer Certification Practice Exam. When you solve real time scenario based questions practically, you come across many difficulties that give you an opportunity to improve.

C++ Institute CPA-21-02 Sample Questions:

01. A variable needs to store a numeric value that may include fractions. What is the correct way to declare it?
a) int x = 3.14;
b) float x = 3.14;
c) char x = 3.14;
d) bool x = true;
 
02. What are valid reasons to use multiple inheritance in C++?
a) To combine features from multiple base classes
b) To implement interface-like functionality
c) To inherit constructors from all base classes
d) To access multiple sets of private members
e) To avoid creating deep inheritance chains
 
03. Which phase of the compilation process converts high-level language code into machine code?
a) Linking
b) Parsing
c) Assembling
d) Compilation
 
04. What are valid ways to catch exceptions in C++?
a) By reference
b) By value
c) By pointer
d) Using catch(...)
e) Using catch(const char* e)
 
05. How do you declare a namespace in C++?
a) using namespace <name>
b) declare namespace <name>
c) namespace <name> { // code }
d) import namespace <name>
 
06. Which components can be inherited from a base class?
a) Public members
b) Protected members
c) Private members
d) Static members
e) Constructors
 
07. You need to write a program that takes an integer input and prints its square. Which of the following is correct?
a) int x;
cin >> x;
cout << x * x;
b) int x;
cout << x * x;
cin >> x;
c) cout << "Square: ";
int x;
cin >> x;
d) int x;
cin >> x;
cout << x + x;
 
08. What are valid characteristics of overloaded functions?
a) Functions have different return types
b) Functions have different access specifiers
c) Functions have the same name
d) Functions have different parameter lists
e) Functions are implemented in different classes
 
09. A function must modify the value of an argument passed to it. Which method of passing is suitable?
a) By value
b) By reference
c) By constant reference
d) By pointer
 
10. Which statements are true about friend functions in C++?
a) They can access private members of the class
b) They are declared outside the class definition
c) They require the friend keyword in the class declaration
d) They are members of the class
e) They can be used for operator overloading

Answers:

Question: 01
Answer: b
Question: 02
Answer: a, b
Question: 03
Answer: d
Question: 04
Answer: a, d, e
Question: 05
Answer: c
Question: 06
Answer: a, b, d
Question: 07
Answer: a
Question: 08
Answer: c, d
Question: 09
Answer: b
Question: 10
Answer: a, b, c, e

Note: For any error in CPA - C++ Certified Associate Programmer (CPA-21-02) certification exam sample questions, please update us by writing an email on feedback@edusum.com.

Rating: 5 / 5 (1 vote)