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 (459)
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 ?    1329 Yes 114 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 ?    298 Yes 80 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 ?    221 Yes 33 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 ?    168 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 ?    170 Yes 58 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 ?    111 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 ?    58 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 ?    49 Yes 14 No
M.arul
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
what are difference between c and c++? Accenture 9
why the size of an empty class is 1   4
Is there any difference between dlearations int* x and int *x? If so tell me the difference? Lason 16
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast Quark 2
Types of storage and scope of each type CA 2
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> 1……………… int main (void) { pid_t pid; 2………………………… pid = fork(); 3…………………………. if (pid > 0) { int i; 4………………………… for (i = 0; i < 5; i++) { 5………………… …………… printf(" I AM VU : %d\n", i); 6………………… …………… sleep(1); } exit(0); } 7………………… ……… else if (pid == 0) { int j; for (j = 0; j < 5; j++) { 8……………………………… printf(" I have no child: %d\n", j); sleep(1); } _exit(0); } else { 9………………………………fprintf(stderr, "can't fork, error %d\n", errno); 10……………… … ………… exit (EXIT_FAILURE); } }   1
What are inline functions? Verizon 2
why c++ is not called strictly d super set of c? Satyam 3
Disadvantages of c++ Hcl 8
Profiler in projects? Symphony 2
What is name mangling?   2
Find the second maximum in an array? HCL 12
 
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