Online Test for C++
- ________ is a default access specifier for members of structures in C++.
protectedpublicprivatedefault
- What features make C++ so powerful?
Easy implementationCode reusabilityEasy memory managementAll the above
- Which of the following mode declaration is used in C++ to open a file for input?
ios :: appin :: iosios :: inios :: file
- Which of the following operators can not be overloaded in C+ +?
*==+=::
- The parameter list in function overloading must differ by?
Number of functionsFunction SizeFunction NameNumber of argument
- The Object is not declared for which class?
ParentBaseAbstractDerived
- If class A inherits from class B, then B is called _______ of A. A is called ________ of B.
Super class, Sub classSubclass, Super classAbstract class, Base ClassChild class, Sub Class
- C++ actually supports the following two complete dynamic systems?
One defined by C++ and the other not defined by COne defined by C and one specific to C++Both are specific to C++Both of them are improvements of C
- 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
- 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
Also Exercise
Post Your Question
Social Sharing
Facebook
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