access and utility functions

mcqspedia.com has 4 Question/Answers about Topic access and utility functions

Member functions that provides read-only access to data, is called

Member functions that provides read-only access to data, is called
  • A. Constructors
  • B. Access functions
  • C. Rational functions
  • D. None of them
  • Correct Answer: Option B

A constructor that can be invoked with no arguments, is called as

A constructor that can be invoked with no arguments, is called as
  • A. Empty constructor
  • B. Default constructor
  • C. Inline constructor
  • D. None of them
  • Correct Answer: Option B

Access functions that is used to test truth or falsity of conditions, is called

Access functions that is used to test truth or falsity of conditions, is called
  • A. Predicate functions
  • B. Private functions
  • C. Public functions
  • D. Protected functions
  • Correct Answer: Option A

A destructor for a class is denoted by

A destructor for a class is denoted by
  • A. Tilde symbol ˜
  • B. Caret symbol ^
  • C. Underscore _
  • D. Grave accent symbol `
  • Correct Answer: Option A