Examveda
Examveda

Which of the following statements allows the user to enter data at the keyboard?

A. cin << currentPay;

B. cin >> currentPay;

C. cout << currentPay;

D. cout >> currentPay;

E. None of the above

Answer: Option B


Join The Discussion

Comments ( 1 )

  1. Mehul Patel
    Mehul Patel :
    3 years ago

    Which among the following best describes encapsulation?
    It is a way of combining various data members into a single unit
    It is a way of combining various member functions into a single unit
    It is a way of combining various data members and member functions into a single unit which can operate on any data
    It is a way of combining various data members and member functions that operate on those data members into a single unit

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block