C++ Programming Questions Answers - Chapter 1

  • 22. 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
    Answer And Explanation

    Answer: Option D

  • 23. What is the value of sizeof(char)

    1. 1
    2. 2
    3. 4
    4. 8
    Answer And Explanation

    Answer: Option A

  • 24. 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
    Answer And Explanation

    Answer: Option C

  • 25. Which arithmetic operation can be done in pointer

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

    Answer: Option C

  • 26. Inline functions are invoked at

    1. Run time
    2. Compile time
    3. Debug time
    4. None of above
    Answer And Explanation

    Answer: Option B

  • 27. Which operator is used for comparing two variables

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

    Answer: Option D

  • 28. Can #define accept parameters

    1. Yes
    2. No
    Answer And Explanation

    Answer: Option A