Online Test for C++
- Which of the following operator(s) cannot be overloaded?
. (Member Access or Dot operator)?: (Ternary or Conditional Operator ):: (Scope Resolution Operator)All of the above
- Which of the following is user defined data type?
PublicPrivateClassA & B Both
- In c++ object of the class is also called?
ConstantsTagInstanceData collection
- ________ is a default access specifier for members of structures in C++.
protectedpublicprivatedefault
- The static member variable is initialized to?
012-1
- It is not possible to achieve inheritance of structures in c++?
TrueFalse
- Which of the following is not a member of class?
Static functionFriend functionConst functionVirtual function
- Which of the following mode declaration is used in C++ to open a file for input?
ios :: appin :: iosios :: inios :: file
- Find Error/Output in follwing code:
#include <iostream>
using namespace std;
void square (int *x) {
*x = (*x)++ * (*x);
}
void square (int *x, int *y) {
*x = (*x) * --(*y);
}
int main ( ) {
int number = 30;
square(&number, &number);
cout << number;
return 0;
}
910
920
870
900
- What features make C++ so powerful?
Easy implementationCode reusabilityEasy memory managementAll the above
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