Important Questions on C++
Questions with Answers on C++ Programming Language
Following are the important questions on C++ with their answers which has been asked in the various exams and interviews. Let’s discuss them in detail.
Q1: What is C++?
Ans: C++ is a general purpose object oriented programming language invented in the early 1980 by bajarne stroutrup.
Q2: What is class?
Ans: A class can be declared as a collection of data members along with members function which allows association of data and functions into a single unit called encapsulation.
Q3: What are the different features of c++?
Ans: Following are the different features of the Classes in C++,
- Operators and function overloading
- Free storage management
- Constant types
- References
- Inline function
- Virtual function
- Templates
- Exception handling
Q4: Explain constructor?
Ans: Constructors is a member function having the same name as that of its class and is executed automatically when the class is instantiated(object is created).
Q5: What is a function?
Ans: A function is a block of code which executes the statements when we call it.
It consists of three entities:
1) the function name.this is simply a unique identifier.
2) The function parameters.this is a set of zero or more typed identifier.
3) The function return type this specifies the type of value function returns.
Q6: Explain Inline function?
Ans: Inline function are those function whose function body is inserted in place of the function call.
Q7: What is function overloading?
Ans: function polymorphism for function overloading is a concept that allows multiple function to share the same name with different arguments type assigning one or more function function body to the same name is known as function overloading.
Q8: What is implicit and explicit type conversion?
Ans: In implicit casting in c++ compile automatically handle the type conversion.the final result expressed in the highest precision possible.
Explicit: the conversion of data type of two operands is not automatic but forced.we can force an expression to be a specific type by using a cast.
Q9: What is inheritance in C++ and name the different types of inheritance?
Ans: it is a technique of organizing information in a hierarchy form. It is like a child inheriting the features of its parent.
The class which we are inheriting from is called as the base class and the class which inherits called as derived class.
Different types of inheritance are as follows-:
1) single level
2) Multi-level
3) Multiple
4) Hierarchical(hybrid)
5) multipath
Q10: What is friend function?
Ans: A friend function is a function which is use to access the private data member of different class.
Download the C++ Questions and Answers in pdf QUESTIONS ON C++ with Answers.pdf
Give your views about this article in the comments below this article.
Related Links-
Important Question on C++
C++ Interview Questions and Answers with PDF
Tell us Your Queries, Suggestions and Feedback
448 Responses to Important Questions on C++
« Wireless Transmission Questions on IC Engines with answers »
Ta for ur helping
pointers and arrays
physics
physics
C++ problems
need of viva questions on computer practicals for CS
need of viva questions on computer practicals for CS
BSCS
i want to get help.
i want to get help.
C+++ paper question
Enter your any educational query or doubtcolle student
diploma
project cding on sales management system
ur- nyarugenge compus
12th
12th
12th
12th
12th
12th
12th
12th
12th
12th
12th
12th
1st bca
C++
C++
question papers foe c++(class 10)
Mca
c++ programing language
c++ programing language
c++ programing language
c++ programing language
Msc cs
Msc cs
C++
Computer Science
bca fourth sem
no any doubt
it
Bachelor of engineering
Bachelor of engineering
Bachelor of engineering
BCA
BCA
BCA
BCA
1st bsc.cs c++ books
lovely professional university
B.com and iti running
I want simple answers for c ++
Y Rey hi it SD ve
Bsc mpcs degree 1st semester important questions in c++ language
btech
btech
Bsc
Bsc
computer science
computer science
B.sc 2 Nd year
c++ programming
BE
BE
Polytechnic
programming
c++
c++
c++
c++
QUES FOR VIVA OF C++ LANGUAGE
cpp
mca
mca
mca
mca
mca
mca
mca
mca
C++EXAM PAPAR
C++
computer science
Lbsi exam paper
I want important question and previous year question paper of c++ object orinted program of 3rd sem
Enter your any educational query or doubte
Enter your any educational query or doubte
BCS 2
Enter your any educational query or doubt
Bsc cs
Enter your any educational query or doubtgjgiuhg
Good
generic function in c++ and file and exception handling?
beginning
NCA
Bsc (com.sci)
I read in class ten
B.tech cse 2 nd year
Happy
Happy
Happy
Bca
opp with c++
opp with c++
C++
Cpp questions
C language of PGDCA SEM 1 Of patiala university
C language of PGDCA SEM 1 Of patiala university
none
none
Bca
Bca
Bca
how to create a math application that offers math questions then get answer from they user.the application should assign a mark for each correct answer then grade the student with regard to total percentage of correct answers.
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
bsc cs
Question and answer
Degree 2nd semester 2017 results available on
About taking admissions in p.hd
About taking admissions in p.hd
C++ in operators in bca course
C++ in operators in bca course
C++ in operators in bca course
C++ paper solution
C++ paper solution
C++
C++
C++
help with c++
271/600*100
BCA
learn good computer
no body have good knowledge in computer basic ever who near me whether sir or student
C++question answer
Bca
Bca
Bca
bca subject unipune question paper and answer
bca subject unipune question paper and answer
BCA
BCA
Bcafy
b.tech
b.tech
Pg
Pg
13th bca pass
13th bca pass
Bca II year
sample c++ question papers
I want all previous question papers with answers
I want all previous question papers with answers
M.E.,
M.E.,
M.E.,
cpp question paper with answer
computer course
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
computer science department
BCA 3rd semester gfgc college tumkur
BCA 3rd semester gfgc college tumkur
BCA 3rd semester gfgc college tumkur
BCA 3rd semester gfgc college tumkur
BCA 3rd semester gfgc college tumkur
BCA 3rd semester
BCA 3rd semester
BCA 3rd semester
bca 3rd semester
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
bca 3rd sem
Computer science
Computer science
Computer science
Computer science
Computer science
Computer science
Computer science
BCA sem3 imporant questions
for web desigining
for web desigining
for web desigining
for web desigining
i need c++ inter iew questions pdf
C++ programming
B.c.a
Tybsc computer science
important 2 mark
Bachlar computer applications
BCA mostly asked questions.
main topics of c++, linux,& dbms
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
i want to learn c language
second year {b.tech}
second year {b.tech}
Important questions and answers for final examination preparation of operator overloading
Bca
Bca
BCA
Bsc Student
Bsc Student
all wase help mi exam
all wase help mi exam
i face difficulty in understanding C++, so that i want C++ question to pass in exam. thank you.
8 and 9 modal question paper csas
sy bcs
bca
oop with c++
No doubt
No doubt
Tybca
b.sc
b.sc
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
I want important questions in DSC++ from unit 1,2
i have problem in coding
Answers for important questions in c++ for every chapters
C++ questions
C++ questions
Tdc 1st sem
C++ learning
If you have any multiple choice questions about C++ sent me.
C++/define class cash register in c++ with the follow description: private members: cashOnHand of type integer public member s a default constructor cash register ()set the cash in the register to500.a constructor cash register(into set the cash in the register to a specific amount. A fun action getCurrentBalance())which returns value of cashOnHand. ,
A function accept amount(into) to receive the amount deposited by the customer and update the amount in the register
c++ program materail with previous question for bharathdhasan university
Hie, my name is hamza khan and i am from New Delhi.. My query is about programming in ++. I am doing bca from ignou. But still I have a back in c++ so please suggest how can I clear the exam please give me ans favour me some notes and easy way to clear this exam.
What are all the important questions in microprocessor and tell me how I m studying it in easy way?
i am studing in btech 2nd year and what must i do or practise more so that i can get a good job like job in any top companies like google or microsoft.
thaks
first year computer scince student at jimma university
What are the main questions in c++ from the exam point of view
write a friend function for adding the two different subject marks and display the sum using two classes
mechatronis question banks and previous year questions
Enter your any educational query or doubt umu campus
Enter your any educational query or doubtful degree
please guided to me in summer training of computer engineering (diploma).
Write a C++ program to find area and volume of cylinder using Inline function
i need a guide for these languages (c,c++,java,html,php) easy understanding with key notes
Would wish to know more about C++ programming language
I want guess papers of Second Year BBA(CA) 2017 for fourth semister
I want C++ question papers for the years 2014-15, 2015-16 for 9th grade pls create a website and upload the question papers and please send it to this email specified above. Many students in the Nilgiris are in need of these question papers
Hello Sir/Madam I would like help on void functions as I’m failing to call variables using void functions
Write a program that reads 3 integer numbers a,b and c from user and computes minimum,median and maximum of the numbers.
Which data members are accessible by member function of derived class?
does MCA will be the better option for a good future
How to download the important questions in c++ with answers?
very much confusing in c++ practical and theory part
i am a student of a class 12. I want to need a simple example of c ++
I am pursing bca 3th sem in ch. harchand singh group of college khurja. I am do’t know Full english.then, i do. I am not understanding.and Exam came in date 19/2/16
I have problem in C++ with Friend Function.
If i declares display function as a friend function then there is no problem in programming while if i declare get function for friend function and display function as member function then how can i solve the problem in programming.
what is the simplest way of implementing virtual methords in c++
C++ is a very essential computer language which was developed by Bjarne Stroustrup.It is an object oriented programming language.The given article is very essential for those who are preparing for interviews as well as for their semester exams.
C++ is an object-oriented programming language. For any technical interview concept of OOP is very much important. Go through the above questions,they will enrich your understanding in this subject.
Oh fantastic. Very interesting and worthy subject to bring upfront.
Though just these questions do not satisfy the needs for facing an interview based on C but it will be quite ensuring if someone is searching for the basic grip on C.
The above question and answer are not sufficient for interviwe on c++. This question are so basic.if u add more question on exception handling,polymerphism,template ,virtual function,operator overloading n referance. N most helpful is realtime example on it topics.
n also thanks to puju for making such good bolg.
The above Questions answers are really helpful to know about C++. So evry1 sholud go through it specially who r interested in IT field.
Questions of C++ is present here. In This topic include 10 basics ques. of C++ which clear the meaning of C++ and tell differences with other lang
Came up with a different term free storage management. Would like to know more about it..