Important Questions on C++

Jan 13 • Resources • 139743 Views • 448 Comments on 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.

C++

C++ Language

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

Your email address will not be published. Required fields are marked *

448 Responses to Important Questions on C++

  1. Anonymous says:

    Ta for ur helping

  2. prajakta says:
  3. Anonymous says:
  4. Anonymous says:
  5. Anonymous says:
  6. mipawa says:

    pointers and arrays

  7. PRABIN MEHER says:
  8. Anonymous says:
  9. efeson says:

    physics

  10. efeson says:

    physics

  11. Mufi says:

    C++ problems

  12. sangeetha says:

    need of viva questions on computer practicals for CS

  13. sangeetha says:

    need of viva questions on computer practicals for CS

  14. gurrala dhamodhar says:
  15. Manoz Pant says:
  16. Muhammad khan says:

    BSCS

  17. Muhammad khan says:
  18. rehman baig says:

    i want to get help.

  19. rehman baig says:

    i want to get help.

  20. AJEET KUMAR says:

    C+++ paper question

  21. amare says:

    Enter your any educational query or doubtcolle student

  22. chacha says:

    diploma

  23. ajay shukla says:

    project cding on sales management system

  24. byiringiro jluc says:

    ur- nyarugenge compus

  25. avind kushre says:

    12th

  26. avind kushre says:

    12th

  27. avind kushre says:

    12th

  28. avind kushre says:

    12th

  29. avind kushre says:

    12th

  30. avind kushre says:

    12th

  31. avind kushre says:

    12th

  32. avind kushre says:

    12th

  33. avind kushre says:

    12th

  34. avind kushre says:

    12th

  35. avind kushre says:

    12th

  36. avind kushre says:

    12th

  37. Anonymous says:
  38. Anonymous says:
  39. Suba says:

    1st bca

  40. Suba says:
  41. MERSHA AYIDAGNU says:
  42. narendra says:

    C++

  43. narendra says:

    C++

  44. narendra says:
  45. kavia shree says:

    question papers foe c++(class 10)

  46. pradeep says:
  47. Anonymous says:
  48. Anonymous says:
  49. Mohan says:
  50. Mohan says:
  51. Prachitosh Nayak says:

    Mca

  52. Mohammadrana says:

    c++ programing language

  53. Mohammadrana says:

    c++ programing language

  54. Mohammadrana says:

    c++ programing language

  55. Mohammadrana says:

    c++ programing language

  56. Mohammadrana says:
  57. Kamlesh singroli says:

    Msc cs

  58. Kamlesh singroli says:

    Msc cs

  59. hasen Ali says:

    C++

  60. Mekonnen Kassye says:

    Computer Science

  61. sadhana says:

    bca fourth sem
    no any doubt

  62. negewo torbi says:

    it

  63. Khaleqasim says:

    Bachelor of engineering

  64. Khaleqasim says:

    Bachelor of engineering

  65. Khaleqasim says:

    Bachelor of engineering

  66. Khaleqasim says:
  67. Pooja says:

    BCA

  68. Pooja says:

    BCA

  69. Pooja says:

    BCA

  70. Pooja says:

    BCA

  71. Anonymous says:
  72. reo dinesh says:

    1st bsc.cs c++ books

  73. Anonymous says:
  74. Raveena says:

    lovely professional university

  75. Raveena says:
  76. nitin bopche says:

    B.com and iti running

  77. satyam malviya says:

    I want simple answers for c ++

  78. satyam malviya says:
  79. satyam malviya says:
  80. saiteja says:

    Y Rey hi it SD ve

  81. saiteja says:
  82. Anonymous says:
  83. Garige Navya says:

    Bsc mpcs degree 1st semester important questions in c++ language

  84. mahaveer singh says:

    btech

  85. mahaveer singh says:

    btech

  86. Soumya says:

    Bsc

  87. Soumya says:

    Bsc

  88. bazirake eric says:

    computer science

  89. bazirake eric says:

    computer science

  90. Meet says:
  91. Meet says:
  92. Mukesh says:

    B.sc 2 Nd year

  93. Mukesh says:
  94. Anonymous says:
  95. priscilla boansi says:

    c++ programming

  96. priscilla boansi says:
  97. Anonymous says:
  98. meena says:

    BE

  99. meena says:

    BE

  100. Anonymous says:
  101. Anonymous says:
  102. Disha says:

    Polytechnic

  103. dechasa beyene says:

    programming

  104. fusi says:

    c++

  105. fusi says:

    c++

  106. fusi says:

    c++

  107. fusi says:

    c++

  108. fusi says:
  109. MAHAVIR PRASAD says:

    QUES FOR VIVA OF C++ LANGUAGE

  110. Rajkumar says:
  111. Anonymous says:
  112. rajkumar says:
  113. surya says:

    cpp

  114. shobha says:

    mca

  115. shobha says:

    mca

  116. shobha says:

    mca

  117. shobha says:

    mca

  118. shobha says:

    mca

  119. shobha says:

    mca

  120. shobha says:

    mca

  121. shobha says:

    mca

  122. SAMIR GORIWALE says:

    C++EXAM PAPAR

  123. surya says:

    C++

  124. surya says:
  125. surya says:
  126. surya says:
  127. awel abera says:

    computer science

  128. Hasmuddin says:

    Lbsi exam paper

  129. Anonymous says:
  130. Kabugho Harriet says:
  131. Gowri Manhoar says:

    I want important question and previous year question paper of c++ object orinted program of 3rd sem

  132. Vishal Singh says:

    Enter your any educational query or doubte

  133. Vishal Singh says:

    Enter your any educational query or doubte

  134. Komal jadhav says:

    BCS 2

  135. Anonymous says:
  136. Urgan says:

    Enter your any educational query or doubt

  137. Saranya says:

    Bsc cs

  138. partha says:

    Enter your any educational query or doubtgjgiuhg

  139. partha says:
  140. Rajesh Kumar says:

    Good

  141. sumit sharma says:

    generic function in c++ and file and exception handling?

  142. Anonymous says:
  143. Asante Alex says:

    beginning

  144. Asante Alex says:
  145. praveen says:

    NCA

  146. Anonymous says:
  147. Vino says:

    Bsc (com.sci)

  148. kimo says:

    I read in class ten

  149. kimo says:
  150. Shamitha says:

    B.tech cse 2 nd year

  151. Nasiha says:
  152. Jothiga says:
  153. Jothiga says:
  154. logesh says:

    Happy

  155. logesh says:

    Happy

  156. logesh says:

    Happy

  157. Shyam says:
  158. Shyam says:
  159. Shyam says:
  160. Abhilash Ashokrao Petkar says:
  161. porselvan says:

    Bca

  162. RANJINI.L says:

    opp with c++

  163. RANJINI.L says:

    opp with c++

  164. Anonymous says:
  165. Yamini stalini says:

    C++

  166. Rabiyul Fazil.s says:

    Cpp questions

  167. Rabiyul Fazil.s says:
  168. Anonymous says:
  169. Anonymous says:
  170. TRISHALLA JOHAL says:

    C language of PGDCA SEM 1 Of patiala university

  171. TRISHALLA JOHAL says:

    C language of PGDCA SEM 1 Of patiala university

  172. michael adewuto says:

    none

  173. michael adewuto says:

    none

  174. michael adewuto says:
  175. Rohit says:

    Bca

  176. Rohit says:

    Bca

  177. ajithkumar says:

    Bca

  178. mayore Elizabeth says:

    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.

  179. sunil says:

    bsc cs

  180. sunil says:

    bsc cs

  181. sunil says:

    bsc cs

  182. sunil says:

    bsc cs

  183. sunil says:

    bsc cs

  184. sunil says:

    bsc cs

  185. sunil says:

    bsc cs

  186. sunil says:

    bsc cs

  187. sunil says:

    bsc cs

  188. sunil says:

    bsc cs

  189. sunil says:

    bsc cs

  190. sunil says:

    bsc cs

  191. sunil says:

    bsc cs

  192. sunil says:

    bsc cs

  193. sunil says:

    bsc cs

  194. sunil says:

    bsc cs

  195. Lavanya says:

    Question and answer

  196. Gayani says:

    Degree 2nd semester 2017 results available on

  197. rakesh says:

    About taking admissions in p.hd

  198. rakesh says:

    About taking admissions in p.hd

  199. Anonymous says:

    C++ in operators in bca course

  200. Anonymous says:

    C++ in operators in bca course

  201. Anonymous says:

    C++ in operators in bca course

  202. Anonymous says:
  203. Bhoya rahul says:

    C++ paper solution

  204. Bhoya rahul says:

    C++ paper solution

  205. Bhoya rahul says:
  206. Bhoya rahul says:
  207. Bhoya rahul says:
  208. Anonymous says:

    C++

  209. prathaprock.c003@gmail.com says:

    C++

  210. prathaprock.c003@gmail.com says:

    C++

  211. Anonymous says:
  212. Damion Davidson says:

    help with c++

  213. Kanhu Charan Nayak says:

    271/600*100

  214. PREM KUMAR says:
  215. Xam mushki says:

    BCA

  216. Xam mushki says:
  217. sunil kumar says:

    learn good computer
    no body have good knowledge in computer basic ever who near me whether sir or student

  218. Mayuri bavle says:

    C++question answer

  219. Mayuri bavle says:
  220. Akshada mande says:

    Bca

  221. Akshada mande says:

    Bca

  222. Akshada mande says:

    Bca

  223. Akshada mande says:
  224. Akshada mande says:
  225. bharat says:

    bca subject unipune question paper and answer

  226. bharat says:

    bca subject unipune question paper and answer

  227. Anonymous says:
  228. jerome dezosa says:
  229. jerome dezosa says:
  230. Anonymous says:
  231. Anonymous says:
  232. Ekata kulkarni says:

    BCA

  233. Ekata kulkarni says:

    BCA

  234. Shivani says:

    Bcafy

  235. bhargav says:

    b.tech

  236. bhargav says:

    b.tech

  237. mahes says:
  238. Anonymous says:
  239. Gopika mohan says:

    Pg

  240. Gopika mohan says:

    Pg

  241. sona says:

    13th bca pass

  242. sona says:

    13th bca pass

  243. Tharani says:

    Bca II year

  244. Tharani says:
  245. aman says:
  246. B.Gopi says:

    sample c++ question papers

  247. B.Gopi says:
  248. B.Gopi says:
  249. divya says:
  250. divya says:
  251. divya says:
  252. divya says:
  253. divya says:
  254. divya says:
  255. divya says:
  256. Harikaurimalla says:

    I want all previous question papers with answers

  257. Harikaurimalla says:

    I want all previous question papers with answers

  258. SANGEETHA says:

    M.E.,

  259. SANGEETHA says:

    M.E.,

  260. SANGEETHA says:

    M.E.,

  261. hamza says:
  262. muthumari says:
  263. muthumari says:
  264. sandy says:

    cpp question paper with answer

  265. Anonymous says:
  266. Amanpreet kaur says:

    computer course

  267. bhagya says:

    computer science department

  268. bhagya says:

    computer science department

  269. bhagya says:

    computer science department

  270. bhagya says:

    computer science department

  271. bhagya says:

    computer science department

  272. bhagya says:

    computer science department

  273. bhagya says:

    computer science department

  274. bhagya says:

    computer science department

  275. bhagya says:

    computer science department

  276. bhagya says:

    computer science department

  277. bhagya says:

    computer science department

  278. bhagya says:

    computer science department

  279. bhagya says:

    computer science department

  280. bhagya says:

    computer science department

  281. bhagya says:

    computer science department

  282. bhagya says:
  283. bhagya says:
  284. bhagya says:
  285. bhagya says:

    BCA 3rd semester gfgc college tumkur

  286. bhagya says:

    BCA 3rd semester gfgc college tumkur

  287. bhagya says:

    BCA 3rd semester gfgc college tumkur

  288. bhagya says:

    BCA 3rd semester gfgc college tumkur

  289. bhagya says:

    BCA 3rd semester gfgc college tumkur

  290. bhagya says:

    BCA 3rd semester

  291. bhagya says:

    BCA 3rd semester

  292. bhagya says:

    BCA 3rd semester

  293. bhagya says:

    bca 3rd semester

  294. bhagya says:

    bca 3rd sem

  295. bhagya says:

    bca 3rd sem

  296. bhagya says:

    bca 3rd sem

  297. bhagya says:

    bca 3rd sem

  298. bhagya says:

    bca 3rd sem

  299. bhagya says:

    bca 3rd sem

  300. bhagya says:

    bca 3rd sem

  301. bhagya says:

    bca 3rd sem

  302. bhagya says:

    bca 3rd sem

  303. bhagya says:

    bca 3rd sem

  304. Perumal says:

    Computer science

  305. Perumal says:

    Computer science

  306. Perumal says:

    Computer science

  307. Perumal says:

    Computer science

  308. Perumal says:

    Computer science

  309. Perumal says:

    Computer science

  310. Perumal says:

    Computer science

  311. shubham says:

    BCA sem3 imporant questions

  312. smriti priya says:

    for web desigining

  313. smriti priya says:

    for web desigining

  314. smriti priya says:

    for web desigining

  315. smriti priya says:

    for web desigining

  316. smriti priya says:
  317. vishweshwaraya technical university says:

    i need c++ inter iew questions pdf

  318. Raakhil Judoo says:

    C++ programming

  319. Raakhil Judoo says:
  320. Vicky kumar says:

    B.c.a

  321. Vaibhav says:

    Tybsc computer science

  322. Thulani says:
  323. deepha says:

    important 2 mark

  324. deepha says:
  325. deepha says:
  326. Jagannathan says:

    Bachlar computer applications

  327. Anonymous says:
  328. Anonymous says:
  329. shubhashish says:

    BCA mostly asked questions.
    main topics of c++, linux,& dbms

  330. Riya says:

    i want to learn c language

  331. Riya says:

    i want to learn c language

  332. Riya says:

    i want to learn c language

  333. Riya says:

    i want to learn c language

  334. Riya says:

    i want to learn c language

  335. Riya says:

    i want to learn c language

  336. Riya says:

    i want to learn c language

  337. Riya says:

    i want to learn c language

  338. Riya says:

    i want to learn c language

  339. Riya says:

    i want to learn c language

  340. Riya says:

    i want to learn c language

  341. Riya says:

    i want to learn c language

  342. Riya says:

    i want to learn c language

  343. Riya says:

    i want to learn c language

  344. Riya says:
  345. Riya says:
  346. Riya says:
  347. Riya says:
  348. Anonymous says:
  349. shivam shinde says:

    second year {b.tech}

  350. shivam shinde says:

    second year {b.tech}

  351. Anonymous says:

    Important questions and answers for final examination preparation of operator overloading

  352. Anonymous says:
  353. kashinath says:

    Bca

  354. kashinath says:

    Bca

  355. B.R.jagtap says:

    BCA

  356. Rizwan khan says:

    Bsc Student

  357. Rizwan khan says:

    Bsc Student

  358. Anonymous says:
  359. pragati says:

    all wase help mi exam

  360. pragati says:

    all wase help mi exam

  361. pragati says:
  362. pragati says:
  363. micheal says:

    i face difficulty in understanding C++, so that i want C++ question to pass in exam. thank you.

  364. micheal says:
  365. Lokesha says:

    8 and 9 modal question paper csas

  366. Anonymous says:
  367. Anonymous says:
  368. Anonymous says:
  369. Owaiz says:

    sy bcs

  370. bisi says:

    bca

  371. bisi says:
  372. ranjini.l says:

    oop with c++

  373. Ige says:

    No doubt

  374. Ige says:

    No doubt

  375. Anonymous says:
  376. mahima says:
  377. Anonymous says:
  378. Gosavi Vishvanath vilas says:

    Tybca

  379. seenu says:

    b.sc

  380. seenu says:

    b.sc

  381. seenu says:
  382. lalman says:
  383. DineshKarthick says:
  384. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  385. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  386. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  387. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  388. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  389. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  390. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  391. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  392. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  393. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  394. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  395. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  396. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  397. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  398. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  399. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  400. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  401. Srishesha says:

    I want important questions in DSC++ from unit 1,2

  402. Srishesha says:
  403. Abhishek Manik Ashtikar says:

    i have problem in coding

  404. Abhishek Manik Ashtikar says:
  405. Aishwarya.R says:

    Answers for important questions in c++ for every chapters

  406. Sowmiya says:
  407. Sowmiya says:
  408. Madhu says:

    C++ questions

  409. Madhu says:

    C++ questions

  410. cs says:
  411. Anukul Baishya says:

    Tdc 1st sem

  412. Lalam Chandra Mouli says:

    C++ learning

  413. Andarg says:

    If you have any multiple choice questions about C++ sent me.

  414. sifiso says:

    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

  415. kohila. P says:

    c++ program materail with previous question for bharathdhasan university

  416. hamza says:

    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.

  417. balalakshmi says:

    What are all the important questions in microprocessor and tell me how I m studying it in easy way?

  418. Manish Kr Vats says:

    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

  419. deneke says:

    first year computer scince student at jimma university

  420. Abhishek says:

    What are the main questions in c++ from the exam point of view

  421. Jaspreet kaur says:

    write a friend function for adding the two different subject marks and display the sum using two classes

  422. sivaji says:

    mechatronis question banks and previous year questions

  423. vincent says:

    Enter your any educational query or doubt umu campus

  424. suresh says:

    Enter your any educational query or doubtful degree

  425. balwinder kaur says:

    please guided to me in summer training of computer engineering (diploma).

  426. Pranit Mogal says:

    Write a C++ program to find area and volume of cylinder using Inline function

  427. Mohammed Ilyas.B says:

    i need a guide for these languages (c,c++,java,html,php) easy understanding with key notes

  428. Mbabazi Vicent says:

    Would wish to know more about C++ programming language

  429. Suraj V. Doke says:

    I want guess papers of Second Year BBA(CA) 2017 for fourth semister

  430. Neville says:

    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

  431. Pascoal says:

    Hello Sir/Madam I would like help on void functions as I’m failing to call variables using void functions

  432. Ananna says:

    Write a program that reads 3 integer numbers a,b and c from user and computes minimum,median and maximum of the numbers.

  433. Aakash Gusain says:

    Which data members are accessible by member function of derived class?

  434. anoop tripathy says:

    does MCA will be the better option for a good future

  435. Surya says:

    How to download the important questions in c++ with answers?

  436. Pravina balmiki says:

    very much confusing in c++ practical and theory part

  437. khem bist says:

    i am a student of a class 12. I want to need a simple example of c ++

  438. Bani Singh says:

    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

  439. Gyanendra Pandey says:

    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.

  440. Gift says:

    what is the simplest way of implementing virtual methords in c++

  441. Sounak Ghosh says:

    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.

  442. Kishlay Verma says:

    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.

  443. Jishnu Sen says:

    Oh fantastic. Very interesting and worthy subject to bring upfront.

  444. aratrika sengupta says:

    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.

  445. Roshan Patil says:

    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.

  446. Arpita Sardar says:

    The above Questions answers are really helpful to know about C++. So evry1 sholud go through it specially who r interested in IT field.

  447. Shaheen Khan says:

    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

  448. Susmita Guha says:

    Came up with a different term free storage management. Would like to know more about it..

« »