ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is Object Oriented programming.what is the difference 
between C++ and C?
 Question Submitted By :: Jitu22_85
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Object Oriented programming.what is the difference between C++ and C?
Answer
# 1
c is a procedural oriented lang & c++ is a oop lang
c can store upto 32 char where as c++ can store 0 to255 char
in c we won't have inheritance ,polymorphism,data hiding & 
data abstraction concepts
 
Is This Answer Correct ?    1 Yes 1 No
Samyukta
 
  Re: What is Object Oriented programming.what is the difference between C++ and C?
Answer
# 2
object oriented prog. introduces the concept of object & 
class.In object oriented lang. data member can be made 
public, private, & protected. eg:- c++,java, etc.
                      c++ is advanced form of c. In one 
hand c is procedure laugauge where as on other side c is 
object oriented. we have some additional keywords in c than 
c++.ex:-new etc.c++ also allows 256 char to store.
 
Is This Answer Correct ?    2 Yes 1 No
Yashwant
 
 
 
  Re: What is Object Oriented programming.what is the difference between C++ and C?
Answer
# 3
object oriented programming (oop eg c++)is based on 
object;whereas procedure oriented programming <pop eg c) is 
a structured programming.pop concentrates more on functions 
where as in oop more attention is given to the data rather 
than functions.oop deals with realworld problems where as 
pop doesnot model the realworld problems.
 
Is This Answer Correct ?    1 Yes 1 No
Kalpana
 
  Re: What is Object Oriented programming.what is the difference between C++ and C?
Answer
# 4
all above given is bull shit , all that is just bookish 
language , 
use both and feal the difference . you wont abe able to 
judge minute differences unless and untill you have mastred 
it .

till then rely on above answers.
 
Is This Answer Correct ?    2 Yes 0 No
Shiv
 
  Re: What is Object Oriented programming.what is the difference between C++ and C?
Answer
# 5
c is a procedural oriented lang & c++ is a oop lang
c can store upto 32 char where as c++ can store 0 to255 char
in c we won't have inheritance ,polymorphism,data hiding & 
data abstraction concepts
object oriented prog. introduces the concept of object & 
class.In object oriented lang. data member can be made 
public, private, & protected. eg:- c++,java, etc.
                      c++ is advanced form of c. In one 
hand c is procedure laugauge where as on other side c is 
object oriented. we have some additional keywords in c than 
c++.ex:-new etc.c++ also allows 256 char to store.object 
oriented programming (oop eg c++)is based on 
object;whereas procedure oriented programming <pop eg c) is 
a structured programming.pop concentrates more on functions 
where as in oop more attention is given to the data rather 
than functions.oop deals with realworld problems where as 
pop doesnot model the realworld problems.


and in my opinion also , 4th one is the best answer.
 
Is This Answer Correct ?    2 Yes 0 No
Sourav
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
How many lines of code you have written for a single program? BoA1
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.  3
How to avoid a class from instantiation? Symphony5
What are the types of STL containers?  1
What is the difference between public, private, protected inheritance? Wipro4
Why do C++ compilers need name mangling? Lucent1
What is Name Decoration? Lucent2
is throwing exception from a constructor not a good practice ? Ericsson4
why the size of an empty class is 1  3
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55" HCL5
Explain the difference between 'operator new' and the 'new' operator? Lucent1
Difference between delete and delete[]? TCS3
Explain "passing by value", "passing by pointer" and "passing by reference" ?  5
write program for palindrome  3
what is smart pointer & use of the smart pointer ???  1
What is conversion constructor? TCS1
Difference between Operator overloading and Functional overloading? HP3
What are advantages of C++ when comparing with C? HP3
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?  2
How the V-Table mechanism works? HP3
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com