pointers and references

MCQsQuestion.com has 6 Question/Answers about Topic pointers and references

A pointer to object that owns call of member function in which expression appears, is called

A pointer to object that owns call of member function in which expression appears, is called
  • A. * this operator
  • B. * operator
  • C. Subscript operator
  • D. None of them
  • Correct Answer: Option A

A derived type that is based upon more than one fundamental type, is called

A derived type that is based upon more than one fundamental type, is called
  • A. Super type
  • B. Structure type
  • C. Objective type
  • D. All of them
  • Correct Answer: Option B

Which from following is not a mutable lvalue?

Which from following is not a mutable lvalue?
  • A. double x= 1.54;
  • B. a [6]
  • C. double & r = x;
  • D. double a [7] = {0.0};
  • Correct Answer: Option D

Address of a variable is accessed by

Address of a variable is accessed by
  • A. Pointer
  • B. An array
  • C. Address operator
  • D. Functions
  • Correct Answer: Option C

X *= y is an example of

X *= y is an example of
  • A. Arithmetic assignment operations
  • B. Assignment operator
  • C. Overloading arithmetic operations with assignment operator
  • D. All of them
  • Correct Answer: Option C

Increment operator ++and decrement operator −− each have two forms, that is called

Increment operator ++and decrement operator −− each have two forms, that is called
  • A. Prefix
  • B. Postfix
  • C. Post operator
  • D. Both A and B
  • Correct Answer: Option D