Question Detail

Even if we define a function in a class, then also we need to declare it first.

  • True
  • False
Similar Questions :

1. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

2. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

3. Inheritance is transitive in nature.

  • True
  • False

4. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

5. C++ is a ?

  • Procedural programming language
  • Structural programming language
  • Low level language
  • Object oriented programming language
Read more from - C++ Programming Questions Answers - Set 2