Question 1: What is the output of the following snippet? #include <iostream> using namespace std; class A { friend class B; private: int field; public: int set(int x) { return field = ++x; } int get() { return ++field; } }; class B { public: void …
Read More »CPA – Programming Essentials in C++ Chapter 2 Module 1 Exam Answers
CPA – Programming Essentials in C++ Chapter 2 Module 1 Exam Answers Question 1: What is the output of the following snippet? #include <iostream> using namespace std; class A { public: float v; A() { v = 1.0; } A(A &a) { A::v = a.v; cout << …
Read More »CPA – Programming Essentials in C++ Summary Test Answers
CPA – Programming Essentials in C++ Summary Test Answers Question 1: What is the value of the i variable? float x = 1.0 / 5.0; int i=x; 1 0.20 5.0 0 Question 2: What is the output of the following snippet? #include <iostream> #include <string> using namespace std; int main() …
Read More »CPA – Programming Essentials in C++ Module 1 Exam Answers
CPA – Programming Essentials in C++ Module 1 Exam Answers Question 1: What is the output of the following snippet if a digit 8 followed by Enter is entered through the keyboard? #include <iostream> using namespace std; int main() { int i; cin >> i; cout << …
Read More »CPA – Programming Essentials in C++ Module 2 Exam Answers
CPA – Programming Essentials in C++ Module 2 Exam Answers Question 1: What is the output of the following snippet? #include <iostream> using namespace std; int main() { int i = 1, j = i++, k = –i; if(i > 0) { j++; k++; } …
Read More »CPA – Programming Essentials in C++ Module 3 Exam Answers
CPA – Programming Essentials in C++ Module 3 Exam Answers Question 1: What is the output of the following snippet? #include <iostream> using namespace std; struct S { float *f; }; void make(S *p, float x = 10) { float *f = new float; *f = sizeof(*f) …
Read More »CPA – Programming Essentials in C++ Module 4 Exam Answers
Question 1: What is the output of the following snippet? #include <iostream> using namespace std; int main() { int *it[3]; for(int i = 0; i < 3; i++) { it[i] = new int [i + 1]; for(int j = 0; j < i + 1; j++) …
Read More »Coursera and Meta Offers 7+ Career Certificate Programs for Free | Meta Scholarship Program
Coursera and Meta Offers 7+ Career Certificate Programs for Free | Meta Scholarship Program Learn in-demand skills and enhance your career potential through one of Meta’s Professional Career Certificate programs offered through IT Experience partnership with Meta Elevate. This is at no cost to you, the program is entirely free. …
Read More »Amazon Internship | Applied Science Internship for Students | Apply before 19th October 2022
Amazon Internship | Applied Science Internship for Students | Apply before 19th October 2022 Hi everyone, Amazon is hiring students for the role of Applied Scientist Internship. This opportunity is for students so if you satisfy the eligibility then go ahead and apply for it. Eligibility: Startups Undergraduate Corporate Engineering …
Read More »AWS Certified Cloud Practitioner Free Certification – AWS Virtual Training Events
AWS Certified Cloud Practitioner Free Certification – AWS Virtual Training Events Hey everyone, A golden opportunity for Students to get AWS Certified Cloud Practitioner Free Certification for free. AWS launches some online training events from time to time, in which if you register, you get a chance to prepare for …
Read More »