C++ Programming Questions Answers - Chapter 1

  • 29. Which arithmetic operation can be done in pointer

    1. Multiplication
    2. Division
    3. Addition
    4. None of above
    Answer :

    Option C

  • 30. What is the meaning of base class in C++

    1. Another class got inherit from this class
    2. It inherit other class
    3. It has a pointer variable
    4. It is the first class declared
    Answer :

    Option A

  • 31. Constructor is

    1. A class automatically called whenever a new object of this class is created
    2. A class automatically called whenever a new object of this class is destroyed
    3. A function automatically called whenever a new object of this class is created
    4. A function automatically called whenever a new object of this class is destroyed
    Answer :

    Option C

  • 32. How we define our name for constants

    1. #constant
    2. #define
    3. #define_constant
    4. #constant_define
    Answer :

    Option B

  • 33. Every class has atleast one construtor

    1. True
    2. False
    Answer :

    Option A

  • 34. Which operator is used for comparing two variables

    1. :=
    2. =
    3. =:
    4. ==
    Answer :

    Option D

  • 35. C++ programs must contain

    1. start()
    2. system()
    3. main()
    4. program()
    Answer :

    Option C

Please Like Us