C++ Multiple Choice Questions
- Local Variables can be access ?
- Code block enclosed in braces { }.
- Code block enclosed in bracket ().
- Code block enclosed in square bracket [].
- None of the above
Added By : Rajesh
- Global Variables can be access ?
- Anywhere in the code except inside functions. After it's declaration.
- Anywhere in the code, even inside functions. After it's declaration.
- Nowhere in the code
- None of the above
Added By : Rajesh
- In C++ every statement end with?
- Colon (:)
- Comma (,)
- Dot (.)
- None of the above
Added By : Rajesh
- What is pointer?
- The variable that stores the reference to another variable
- The variable that stores reference of garbage variable
- The variable that stores the memory address of another variable
- A & C Both
Added By : Abhijit Kumar
- If class A inherits from more than one class, ie. A inherits from B1, B2,... is called
- Single Inheritance
- Multilevel Inheritance
- Multiple Inheritance
- None of the above
Added By : Sumit
- If class A inherits from class B, then B is called _______ of A. A is called ________ of B.
- Super class, Sub class
- Subclass, Super class
- Abstract class, Base Class
- Child class, Sub Class
Added By : Sumit
- ________ is the mechanism which allows a class A to inherit properties of a class B.
- Data abstraction
- Encapsulation
- Inheritance
- Polymorphism
Added By : Sumit
- Which of the following statements is correct?
- First time method of a class is called, the constructor method is called.
- Every time method of a class is called, the constructor method is called.
- Every time an instance of a class is created, the constructor method is called.
- None of the above
Added By : Jagdish Gupta
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015