Question Detail

Which type of variables can be referred from anywhere in the c++ code

  • All variables
  • Local variables
  • Universal variables
  • Global variables
Similar Questions :

1. Meaning of deed copy is

  • A deep copy creates a copy of the dynamically allocated objects too
  • A deep copy just copies the values of the data as they are
  • A deep copy creates a copy of the statically allocated objects too
  • Both A and C

2. What is inheritance

  • Inheritance allows one class to reuse the state and behavior of another class.
  • It deals with dangling pointers
  • It deals with void pointers
  • It is type of class declaration

3. Stack unwinding deals with

  • deals with polymorphism
  • deals with inheritance
  • deals with exception handing
  • deals with classes

4. Which of the following functions below can be used Allocate space for array in memory

  • calloc()
  • malloc()
  • realloc()
  • All of above

5. What is the meaning of base class in C++

  • Another class got inherit from this class
  • It inherit other class
  • It has a pointer variable
  • It is the first class declared
Read more from - C++ Programming Questions Answers - Chapter 1