Examlex

Solved

What Is the Output of the Following Program?
#Include \quad

question 28

Multiple Choice

What is the output of the following program?
#include <iostream>
using namespace std;
class TestClass
{
\quad private:
\quad\quad int val;
\quad\quad void showVal()
\quad\quad { cout << val << endl; }
\quad public:
\quad\quad TestClass(int x)
\quad\quad { val = x; }
};
int main()
{
\quad TestClass test(77) ;
\quad test.showVal() ;
\quad return 0;
}


Definitions:

SEC

The U.S. Securities and Exchange Commission is a federal agency tasked with overseeing the securities sector and safeguarding investors.

GAAP

Generally Accepted Accounting Principles; a common set of accounting rules and standards used in the United States.

Par Value

The face value of a bond or stock as stated by the issuing company, which may differ from its market value.

Related Questions