ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> C++ General
 
 


 

 
 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (461)
Question
what is data Abstraction? and give example
 Question Submitted By :: C++-General
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
data abstraction is a process of representing the essential
features without including implementation details.
 
Is This Answer Correct ?    1339 Yes 116 No
Prathiba
 
Answer
# 2
Abstraction is the process of exhibiting only the essential
characteristics of an object depending on programmers
view.It is complement to encapsulation.
 
Is This Answer Correct ?    301 Yes 81 No
Karthick
 
 
 
Answer
# 3
data abstraction is the process of representing essential
details not including inter nal details.example index of
the book
 
Is This Answer Correct ?    222 Yes 34 No
Guest
 
Answer
# 4
Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}

main()
{
bank b1;
b1.input();
b1.output();
}

in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.
 
Is This Answer Correct ?    173 Yes 31 No
Namitha
 
Answer
# 5
It refers we can represents essential features without
including background details and explanations
ex:
index of text book.
class School
{
void sixthclass();
void seventhclass();
void tenthclass();
}
 
Is This Answer Correct ?    173 Yes 59 No
M.harikrishnam Raju
 
Answer
# 6
in oops the data abstraction is defined as represent
essential features without including background details or
implementation details.class use the concept of data
abstraction.
 
Is This Answer Correct ?    112 Yes 42 No
Pintu Gupta
 
Answer
# 7
data abstraction is a process of representing the essential
elements,hiding the back ground details.
 
Is This Answer Correct ?    73 Yes 20 No
Vishwajit Kumar
 
Answer
# 8
simply hiding implementation details and show what ever the
client programmer needs. there are two programmers in
devolopint the project Class Creators (who create new
datatypes) and client programmers (class consumers who use
data types in their applications).

It is helpful to break up the playing field into class
creaters and client programmers. The goal of the client
programmer is to collect a toolbox full of classes to use
for rapid application devolopment. The goal of the class
creator is to build a class that exposes only whats
necessary to the client programmers and keeps everything
else hidden. why because the client programmers cant use it
which means that the class creatior can change the hidden
portion at will without worrying about the impact to anyone
else. The hidden portion usually represents the tender
insides of an object that could easily be corrupted by a
careless or uninformed client programmer so hiding the
implementation reduces program bugs.

It is acheived in c++ through class boundaries (private
public and protected keywords...)

ex: class Light
{
private:
//data
public:
on();
off();
//.....
};
Light lt.on();
 
Is This Answer Correct ?    50 Yes 7 No
Prakash
 
Answer
# 9
DATA ABSTRACTION MEANS ESSENTIAL FEATURES WITHOUT GIVING
THE BACKGRAOUND DETAILS
 
Is This Answer Correct ?    59 Yes 18 No
Deepak
 
Answer
# 10
Data abstraction is a process of representing the essential
features without including background properties(or)
implementation details.
 
Is This Answer Correct ?    50 Yes 14 No
M.arul
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
I need to find a specific string between two strings how do I do it? Infosys 1
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members. Quark 2
pls help.. paper bills.. 1000, 500, 100, 50, 20, 10, 5, 1.. create a program that will count all the paper bills in the number being input.. example: enter a number: 3886 there is/are: 3 ->1000 1 ->500 3 ->100 1 ->50 1 ->20 1 ->10 1 ->5 1 ->1 example2: enter a number: 728 there is/are: 0 ->1000 1 ->500 2 ->100 0 ->50 1 ->20 0 ->10 1 ->5 3 ->1   4
What is a mutex and a critical section.Whats difference between them?How do each of them work? CTS 4
why c++ is not called strictly d super set of c? Satyam 3
print first nodd numbers in descending order   5
What are different types of typecasting supported by C++ CA 1
Explain the ISA and HASA class relationships. How would you implement each in a class design?   2
What happens if an exception is throws from an object's constructor and from object's destructor? TCS 3
How would you represent an error detected during constructor of an object?   1
Which algorithm do you like the most? Why? Google 2
which is best institue to learn C/C++ IN AMEERPET OR MAITHRIVANAM OR SR NAGAR, PLEASE HELP. THANKS IN ADVANCE   5
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com