C++ Programming Questions Answers - Chapter 1 Online Quiz Test
-
1. Which type of variables can be referred from anywhere in the c++ code
- All variables
- Local variables
- Universal variables
- Global variables
-
2. What is the value of sizeof(char)
- 1
- 2
- 4
- 8
-
3. If value has not type, then the pointer pointing to this value will be known as
- Empty pointer
- Null pointer
- Void pointer
- None of above
-
4. Which arithmetic operation can be done in pointer
- Multiplication
- Division
- Addition
- None of above
-
5. Inline functions are invoked at
- Run time
- Compile time
- Debug time
- None of above
-
6. Which operator is used for comparing two variables
- :=
- =
- =:
- ==
-
7. Can #define accept parameters
- Yes
- No
-
8. what is the size of int datatype for 32 bit system
- 1 byte
- 2 byte
- 4 byte
- 8 byte
-
9. How we define our name for constants
- #constant
- #define
- #define_constant
- #constant_define
-
10. \r is used for
- carriage return
- new line
- end of the line
- vertical tab
-
11. C++ programs must contain
- start()
- system()
- main()
- program()
-
12. 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
-
13. what is a class in c++
- Class in a collection of objects
- Class has noting to do with object
- It just have declaration of few variables
- None of above
-
14. Reference is like a
- Pointer
- Structure
- Array
- None of above
-
15. 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
-
16. Default constructor has how many arguments
- 1
- 2
- 3
- 0
-
17. Which is not C++ storage class
- auto
- register
- static
- iostream
-
18. Stack unwinding deals with
- deals with polymorphism
- deals with inheritance
- deals with exception handing
- deals with classes
-
19. Meaning of PDB
- Physical Database File
- Program Database File
- Program Direct File
- None of above
-
20. Meaning of STL
- Standard Tree Library
- Standard Term Library
- Standard Template Library
- None of above