download Mastguru Android App

C++ Programming Questions Answers - Chapter 1 Online Quiz Test

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

    1. All variables
    2. Local variables
    3. Universal variables
    4. Global variables
  • 2. What is the value of sizeof(char)

    1. 1
    2. 2
    3. 4
    4. 8
  • 3. If value has not type, then the pointer pointing to this value will be known as

    1. Empty pointer
    2. Null pointer
    3. Void pointer
    4. None of above
  • 4. Which arithmetic operation can be done in pointer

    1. Multiplication
    2. Division
    3. Addition
    4. None of above
  • 5. Inline functions are invoked at

    1. Run time
    2. Compile time
    3. Debug time
    4. None of above
  • 6. Which operator is used for comparing two variables

    1. :=
    2. =
    3. =:
    4. ==
  • 7. Can #define accept parameters

    1. Yes
    2. No
  • 8. what is the size of int datatype for 32 bit system

    1. 1 byte
    2. 2 byte
    3. 4 byte
    4. 8 byte
  • 9. How we define our name for constants

    1. #constant
    2. #define
    3. #define_constant
    4. #constant_define
  • 10. \r is used for

    1. carriage return
    2. new line
    3. end of the line
    4. vertical tab
  • 11. C++ programs must contain

    1. start()
    2. system()
    3. main()
    4. program()
  • 12. 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
  • 13. what is a class in c++

    1. Class in a collection of objects
    2. Class has noting to do with object
    3. It just have declaration of few variables
    4. None of above
  • 14. Reference is like a

    1. Pointer
    2. Structure
    3. Array
    4. None of above
  • 15. What is inheritance

    1. Inheritance allows one class to reuse the state and behavior of another class.
    2. It deals with dangling pointers
    3. It deals with void pointers
    4. It is type of class declaration
  • 16. Default constructor has how many arguments

    1. 1
    2. 2
    3. 3
    4. 0
  • 17. Which is not C++ storage class

    1. auto
    2. register
    3. static
    4. iostream
  • 18. Stack unwinding deals with

    1. deals with polymorphism
    2. deals with inheritance
    3. deals with exception handing
    4. deals with classes
  • 19. Meaning of PDB

    1. Physical Database File
    2. Program Database File
    3. Program Direct File
    4. None of above
  • 20. Meaning of STL

    1. Standard Tree Library
    2. Standard Term Library
    3. Standard Template Library
    4. None of above
Submit Quiz
Post a comment