Toggle navigation
Login / Register
Ask Questions
Study
Current Affairs
Previous Papers
Kerala PSC
IBPS
UPSC
RBI
TNPSC
MPSC
SSC
CBSE
United States
Model Tests
News
More
Answers
Coaching Centres
Careers
Downloads
Colleges
Kuwait News & Classifieds
Classic Jhumka Earrings Silver
INR 113.00
Free Shipping
Buy Now
Black Jhumka Earrings & Studs
INR 94.00
Free Shipping
Buy Now
Classic Jhumka Earrings Silver
INR 207.00
Free Shipping
Buy Now
Beautiful stud earing
INR 93.00
Free Shipping
Buy Now
Different Size Hoop and Stud Earrings Set
INR 243.00
Free Shipping
Buy Now
Golden Hoop Earing
INR 70.00
Free Shipping
Buy Now
×
Create account with Openguide
Sign Up
By clicking Sign Up, you agree that you have read and accepted the
Open Guide Online User Agreement.
Already have an account?
Log in
×
Login to OpenGuide
Login
Forgot password?
Reset it
New user?
Register
×
Reset your password
Reset Password
Registered user?
Log in
New user?
Register
Home
Questions & Answer
Technology Questions & Answers
C++ programming Questions & Answers
C++ programming Questions & Answers
(Compiled from UPSC, SSC ,PSC ,IBPS previous question papers)
Which of the following cannot be inherited from the base class
A
Constructor
B
Friend
C
Both A and B cannot be inherited
D
Both A and B can be inherited
expression x.y represents as
A
member x of object y
B
member y of object x
C
member y of object pointed by x
D
all of above
What is getline() in c++
A
getline() extract the delimeter newline character from the input stream
B
getline() does not extract the delimeter newline character from the input stream
C
None of above
Difference between static and dynamic memory allocation is
A
In static memory allocation memory to be allocated in preknown
B
In dynamic memory allocation memory to be allocated in preknown
C
There is no differnece
D
Not exact difference is mentioned
Which is boolean operator for logical and
A
&
B
||
C
&|
D
&&
Which is not a correct variable type
A
float
B
int
C
double
D
real
Meaning of deed copy is
A
A deep copy creates a copy of the dynamically allocated objects too
B
A deep copy just copies the values of the data as they are
C
A deep copy creates a copy of the statically allocated objects too
D
Both A and C
Declaring pointer more than one can cause
A
Trap
B
abort a program
C
error
D
none of above
Every class has atleast one construtor
A
True
B
False
Can we overload constructors in C++
A
Yes
B
No
How to define a destructor
A
X~() {}
B
X() {}~
C
X() ~{}
D
~X() {}
If no constructor is there, then compiler assumes the class to have a default constructor with no arguments
A
True
B
False
C
Answer
Constructor is
A
A class automatically called whenever a new object of this class is created
B
A class automatically called whenever a new object of this class is destroyed
C
A function automatically called whenever a new object of this class is created
D
A function automatically called whenever a new object of this class is destroyed
Which operator is used to define a member of a class from outside the class definition
A
->
B
::
C
.
D
>>
All members of class have which access to its members
A
private
B
public
C
protected
D
depends
1
2
Categories
Android
C programming
C++ programming
Cloud Computing
Computer
Computer System Architecure
Data Base
Data Structure
Internet & Social Media
Java programming
Manual Testing
MS Office
MySQL
Networking
Operating System
PHP
Programming
Software Engineering
Software Testing
Help & Support
About Us
Contact Us
Terms of Service