:: 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                      
Categories >> Software >> Programming Languages >> C++ >> C++ General


 STL interview questions  STL Interview Questions (91)
 OOPS interview questions  OOPS Interview Questions (558)
 C++ General interview questions  C++ General Interview Questions (458)
what is data Abstraction? and give example
 Question Submitted By :: C++-General
I also faced this Question!!     Answer Posted By  
# 1
data abstraction is a process of representing the essential
features without including implementation details.
Is This Answer Correct ?    1321 Yes 114 No
# 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 ?    293 Yes 79 No
# 3
data abstraction is the process of representing essential
details not including inter nal details.example index of
the book
Is This Answer Correct ?    219 Yes 33 No
# 4
Data abstraction refers to, providing only essential
features by hiding its background details.
class result
int marks;
float percentage;
char name[20];
void input();
void output();

bank b1;

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 ?    167 Yes 30 No
# 5
It refers we can represents essential features without
including background details and explanations
index of text book.
class School
void sixthclass();
void seventhclass();
void tenthclass();
Is This Answer Correct ?    170 Yes 56 No
M.harikrishnam Raju
# 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
Is This Answer Correct ?    111 Yes 42 No
Pintu Gupta
# 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
# 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
Light lt.on();
Is This Answer Correct ?    49 Yes 7 No
# 9
Is This Answer Correct ?    58 Yes 18 No
# 10
Data abstraction is a process of representing the essential
features without including background properties(or)
implementation details.
Is This Answer Correct ?    49 Yes 14 No

Other C++ General Interview Questions
  Question Asked @ Answers
Implement a 2 dimensional array by one dimentional array CTS 1
Write the program form Armstrong no in c++? HCL 10
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number? Persistent 2
iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping pls send me the procedure to design applications?   1
write a C++ programming using for loop: * * * * * * * * * * TCS 4
Write a corrected statement in c++ so that the statement will work properly. x + y=z;   2
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??   4
Is there any difference between dlearations int* x and int *x? If so tell me the difference? Lason 16
Why can you not make a constructor as const?   3
How many pointers are required to reverse a link list? CTS 5
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData Quark 2
Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);   2
For more C++ General Interview Questions Click Here 

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