class scope and class members

mcqspedia.com has 5 Question/Answers about Topic class scope and class members

Non-member functions are defined as

Non-member functions are defined as
  • A. File scope
  • B. Function scope
  • C. Class scope
  • D. Global scope
  • Correct Answer: Option A

Which operator is combined with a pointer to an object to access that object’s member?

Which operator is combined with a pointer to an object to access that object’s member?
  • A. Dot member selection operator
  • B. Scope resolution operator
  • C. Arrow member selection operator
  • D. All of them
  • Correct Answer: Option C

Member selection operator is denoted by

Member selection operator is denoted by
  • A. :
  • B.
  • C. • •
  • D.
  • Correct Answer: Option D

A class data members and member functions belongs to

A class data members and member functions belongs to
  • A. To file scope
  • B. To that function scope
  • C. That class scope
  • D. All of them
  • Correct Answer: Option C

Scope resolution operator is denoted by

Scope resolution operator is denoted by
  • A. :
  • B. : :
  • C. ?
  • D. ??
  • Correct Answer: Option B