SlideShare a Scribd company logo
By OnlineInterviewQuestions.com
Data Structure Interview Questions
Top Data Structure Interview Questions and Answers. Can you
answers All
Q1. What is meant by Object Oriented Programming – OOP?
Object-oriented programming (OOP) is a computer programming technique that organizes software design
around data, or objects, rather than functions and logic. An object can be defined as a data field that has some
unique attributes and behavior.
Q2. What is meant by Structural Programming?
Structured Programming can be defined as a programming Approach in which the program is made as a single
structure. Lines or blocks of codes are written and executed in a sequential manner such as one instruction after
the other.
Q3. What is meant by Class?
It is defined as the template of similar types of objects. Class consists of state and behaviour of an object.
Q4. What is meant by Object?
Object is an instance of a class that has similar characteristics.
Q5. What is meant by Method?
Method is defined as the block of code that is specifically defined for a specific task.
Q6. What is meant by Attribute?
Attributes denote the characteristics of an object.
Q7. What is meant by Data Hiding/Encapsulation?
Encapsulation refers to the winding of data into a single unit that is known as a class, while Data hiding is the
process of hiding data from unauthentic and unauthorized access.
Q8. What is meant by Inheritance?
Inheritance is the ability of a class to inherit the characteristics and properties of another class. This is one of
the most significant features of the object-oriented programming language. There are mainly three modes of
inheritance public, protected and private and two types of classes: subclass(the one which inherits) and the base
or the superclass(from which inheritance is done). And there are five ways in which inheritance can be done.
Q9. What is meant by Polymorphism?
Polymorphism in object-oriented programming is the capability by which an object is able to take on numerous
different forms. Polymorphism is used mainly when a reference to a child class object is made by a parent class.
In Java, each and every object can be polymorphic since they can all pass the IS-A test easily. This is because an
object is said to be polymorphic when it can successfully pass the IS-A test.
Q10. What is meant by Final Class?
A Final class is defined as a class that can not be inherited further. All Methods of a final class are final, can not
be redefined further, and must not be declared as final in the class definition.
Q11. What is meant by Abstract Class?
Q12. What is meant by Interface?
Q13. What is meant by Design Patterns – DP?
A design pattern is a general repeatable solution for every task in the software design phase of software
engineering. A design pattern is a structure to solve a task.
Q14. What is meant by Data Structures – DS?
Data Structure can be defined as the structure for a group of data elements that provides an efficient way of
storing and organizing data in Software engineering. For instance, Arrays, Linked List, Stack, Queue, etc
Q15. What is meant by main method?
The main method is a method for software from which the execution of the software starts. Every block of a
code called by it.
Q16. What is the difference between class & structure?
The class supports inheritance whereas structure does not support inheritance. Class is private by default
whereas structure is public.
Q17. What is the difference between class & object?
Class can be created for similar types of objects whereas object is only an instance of a class.
Q18. What is the difference between super class & sub class?
A subclass is a class that derives from the class which is known as the Superclass.
Q19. What is the difference between interface & abstract class?
Abstract class Interface
(1) Abstract class can contain abstract and non-abstract
methods that should be declared with the abstract
keyword.
The interface should be declared with the interface
keyword. It can contain only abstract methods.
(2) Abstract class doesn't support multiple
inheritances.
The interfacesupports multiple inheritances.
(3) Abstract class can contain final, non-final, static,
and non-static variables.
The interface contains only static and final
variables.
(4) Abstract class can provide the implementation of
the interface.
Interface can't provide the implementation of the
abstract class.
(5) An abstract class can be extended by using the
"extends" keyword.
An interface can be implemented by using the
"implements" keyword.
(6)For instance,
public abstract class Shape{
public abstract void draw();
}
Example:
public interface Drawable{
void draw();
}
Q20. Give few difference between constructor and method?
Constructor Method
(1) Constructor should not return any value. Method should return a value.
(2) Constructors are invoked implicitly. Methods are invoked explicitly.
(3) The name of the Constructor should be same as the class
name.
Method name should be different.
(4) Constructor is declared with construct keyword.
Method should be declared with method
name.
Q21. What is the difference between stored procedure & function?
Function Stored Procedure
(1) Function should return a value. Stored procedure may or may not return a value.
(2) Function should declared by using fun keyword. Stored Procedure may not required fun keyword.
(3) Functions can have only input parameters. Procedures can have input or output parameters.
(4) Functions can be called from Procedure. Procedures cannot be called from a Function..
Q22. What is the difference between overriding & overloading?
When there are different methods in one class that have the same name but distinct parameters, overloading
takes place. What happens at the time of overriding is that the methods have the same name as well as the same
parameters. But one method here will belong to the parent class the other will belong to the child class. Also,
these two are different types of concept as well, where overriding is the run-time type and the overloading is the
compile-time type.
Q23. What is the difference between Conversation & Casting?
Casting Conversion
(1) Casting is the process to convert one data type to
another data type by using casting operator.
Conversion is process to convert a datatype into
another data type automatically by compiler.
(2) Casting can be applied to compatible data types as
well as incompatible data types..
Conversion can only be applied to compatible
datatypes.
(3) Casting is also known as Type casting. Conversion is also known as Type Conversion.
(4) Type casting is done during programming. Type conversion is done at the compile time.
Q24. What is the difference between private & public & friendly classes?
Public containers would be Visible to all classes, Friendly variables would be Visible to the only same package,
while Private containers would be Visible only to the container to which they belong.
Q25. What is the difference between form & report?
Forms are visual representations that are basically used to take user’s Input or information, while Reports are
gathered the information for a task that is generally shown as an output.
Q26. What is the difference between normal report & matrix report?
Normal report is represented as a document whereas a matrix report is represented in tabular format.
Q27. What is the difference between variable & constant?
Both are the containers that are used to store a value. Variables are temporary whereas constants are permanent.
The value of a variable may be changed during the execution but the value of constant is always fixed according
to its declaration.
Please Visit OnlineInterviewquestions.com to download more pdfs

More Related Content

What's hot

Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introductionHasan Kata
 
Customer Relationship Management Module Project Report
Customer Relationship Management Module Project ReportCustomer Relationship Management Module Project Report
Customer Relationship Management Module Project Report
sachinkumar Bharadva
 
Language translator internship report
Language translator internship reportLanguage translator internship report
Language translator internship report
SumitSumit26
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
Smriti Jain
 
dot net technology
dot net technologydot net technology
dot net technology
Imran Khan
 
DML Commands
DML CommandsDML Commands
VTU final year project report
VTU final year project reportVTU final year project report
VTU final year project report
athiathi3
 
Face Recognition Research Report
Face Recognition Research ReportFace Recognition Research Report
Face Recognition Research Report
Sandeep Garg
 
Economic reforms post 1991 aviation
Economic reforms post 1991 aviationEconomic reforms post 1991 aviation
Economic reforms post 1991 aviationvkkan80
 
47533870 final-project-report
47533870 final-project-report47533870 final-project-report
47533870 final-project-reportMohammed Meraj
 
Human activity recognition
Human activity recognitionHuman activity recognition
Human activity recognition
Randhir Gupta
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
VMahesh5
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
KALIDHASANR
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
Soba Arjun
 
Java Comments | Java course
Java Comments | Java courseJava Comments | Java course
Java Comments | Java course
RAKESH P
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
Vibhawa Nirmal
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
Ehsan Hamzei
 
Software Engineer CV
Software Engineer CVSoftware Engineer CV

What's hot (20)

Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
 
Customer Relationship Management Module Project Report
Customer Relationship Management Module Project ReportCustomer Relationship Management Module Project Report
Customer Relationship Management Module Project Report
 
Language translator internship report
Language translator internship reportLanguage translator internship report
Language translator internship report
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 
dot net technology
dot net technologydot net technology
dot net technology
 
DML Commands
DML CommandsDML Commands
DML Commands
 
VTU final year project report
VTU final year project reportVTU final year project report
VTU final year project report
 
Face Recognition Research Report
Face Recognition Research ReportFace Recognition Research Report
Face Recognition Research Report
 
Economic reforms post 1991 aviation
Economic reforms post 1991 aviationEconomic reforms post 1991 aviation
Economic reforms post 1991 aviation
 
47533870 final-project-report
47533870 final-project-report47533870 final-project-report
47533870 final-project-report
 
Human activity recognition
Human activity recognitionHuman activity recognition
Human activity recognition
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
 
Dbms interview questions
Dbms interview questionsDbms interview questions
Dbms interview questions
 
Java Comments | Java course
Java Comments | Java courseJava Comments | Java course
Java Comments | Java course
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
 
IEEE Presentation
IEEE PresentationIEEE Presentation
IEEE Presentation
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Software Engineer CV
Software Engineer CVSoftware Engineer CV
Software Engineer CV
 

Similar to Data Structure Interview Questions & Answers

EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
Jeba Moses
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
Questpond
 
software engineer interview questions.pdf
software engineer interview questions.pdfsoftware engineer interview questions.pdf
software engineer interview questions.pdf
RaajpootQueen
 
Technical interview questions
Technical interview questionsTechnical interview questions
Technical interview questions
Soba Arjun
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
RAJASEKHARV10
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programming
Praveen Chowdary
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Madhavendra Dutt
 
Cs2305 programming paradigms lecturer notes
Cs2305   programming paradigms lecturer notesCs2305   programming paradigms lecturer notes
Cs2305 programming paradigms lecturer notes
Saravanakumar viswanathan
 
C#
C#C#
1 intro
1 intro1 intro
1 intro
abha48
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
ansariparveen06
 
Core java interview faq
Core java interview faqCore java interview faq
Core java interview faqKumaran K
 
Oops
OopsOops
Java interview faq's
Java interview faq'sJava interview faq's
Java interview faq'sDeepak Raj
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
Mindsmapped Consulting
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
javatrainingonline
 

Similar to Data Structure Interview Questions & Answers (20)

EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
 
Intervies
InterviesIntervies
Intervies
 
software engineer interview questions.pdf
software engineer interview questions.pdfsoftware engineer interview questions.pdf
software engineer interview questions.pdf
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Technical interview questions
Technical interview questionsTechnical interview questions
Technical interview questions
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programming
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
 
Cs2305 programming paradigms lecturer notes
Cs2305   programming paradigms lecturer notesCs2305   programming paradigms lecturer notes
Cs2305 programming paradigms lecturer notes
 
C#
C#C#
C#
 
1 intro
1 intro1 intro
1 intro
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
 
Core java interview faq
Core java interview faqCore java interview faq
Core java interview faq
 
Oops
OopsOops
Oops
 
Java interview faq's
Java interview faq'sJava interview faq's
Java interview faq's
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 

More from Satyam Jaiswal

Data Analyst Interview Questions & Answers
Data Analyst Interview Questions & AnswersData Analyst Interview Questions & Answers
Data Analyst Interview Questions & Answers
Satyam Jaiswal
 
Data warehousing interview questions
Data warehousing interview questionsData warehousing interview questions
Data warehousing interview questions
Satyam Jaiswal
 
Machine Learning Interview Questions and Answers
Machine Learning Interview Questions and AnswersMachine Learning Interview Questions and Answers
Machine Learning Interview Questions and Answers
Satyam Jaiswal
 
Behavioral Interview Questions and Answers
Behavioral Interview Questions and AnswersBehavioral Interview Questions and Answers
Behavioral Interview Questions and Answers
Satyam Jaiswal
 
Docker Interview Questions
Docker Interview QuestionsDocker Interview Questions
Docker Interview Questions
Satyam Jaiswal
 
Compiler Design Quiz
Compiler Design QuizCompiler Design Quiz
Compiler Design Quiz
Satyam Jaiswal
 

More from Satyam Jaiswal (6)

Data Analyst Interview Questions & Answers
Data Analyst Interview Questions & AnswersData Analyst Interview Questions & Answers
Data Analyst Interview Questions & Answers
 
Data warehousing interview questions
Data warehousing interview questionsData warehousing interview questions
Data warehousing interview questions
 
Machine Learning Interview Questions and Answers
Machine Learning Interview Questions and AnswersMachine Learning Interview Questions and Answers
Machine Learning Interview Questions and Answers
 
Behavioral Interview Questions and Answers
Behavioral Interview Questions and AnswersBehavioral Interview Questions and Answers
Behavioral Interview Questions and Answers
 
Docker Interview Questions
Docker Interview QuestionsDocker Interview Questions
Docker Interview Questions
 
Compiler Design Quiz
Compiler Design QuizCompiler Design Quiz
Compiler Design Quiz
 

Recently uploaded

Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
yhkoc
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 

Data Structure Interview Questions & Answers

  • 1. By OnlineInterviewQuestions.com Data Structure Interview Questions Top Data Structure Interview Questions and Answers. Can you answers All Q1. What is meant by Object Oriented Programming – OOP? Object-oriented programming (OOP) is a computer programming technique that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has some unique attributes and behavior. Q2. What is meant by Structural Programming? Structured Programming can be defined as a programming Approach in which the program is made as a single structure. Lines or blocks of codes are written and executed in a sequential manner such as one instruction after the other. Q3. What is meant by Class? It is defined as the template of similar types of objects. Class consists of state and behaviour of an object. Q4. What is meant by Object? Object is an instance of a class that has similar characteristics. Q5. What is meant by Method? Method is defined as the block of code that is specifically defined for a specific task. Q6. What is meant by Attribute?
  • 2. Attributes denote the characteristics of an object. Q7. What is meant by Data Hiding/Encapsulation? Encapsulation refers to the winding of data into a single unit that is known as a class, while Data hiding is the process of hiding data from unauthentic and unauthorized access. Q8. What is meant by Inheritance? Inheritance is the ability of a class to inherit the characteristics and properties of another class. This is one of the most significant features of the object-oriented programming language. There are mainly three modes of inheritance public, protected and private and two types of classes: subclass(the one which inherits) and the base or the superclass(from which inheritance is done). And there are five ways in which inheritance can be done. Q9. What is meant by Polymorphism? Polymorphism in object-oriented programming is the capability by which an object is able to take on numerous different forms. Polymorphism is used mainly when a reference to a child class object is made by a parent class. In Java, each and every object can be polymorphic since they can all pass the IS-A test easily. This is because an object is said to be polymorphic when it can successfully pass the IS-A test. Q10. What is meant by Final Class? A Final class is defined as a class that can not be inherited further. All Methods of a final class are final, can not be redefined further, and must not be declared as final in the class definition. Q11. What is meant by Abstract Class? Q12. What is meant by Interface? Q13. What is meant by Design Patterns – DP? A design pattern is a general repeatable solution for every task in the software design phase of software engineering. A design pattern is a structure to solve a task.
  • 3. Q14. What is meant by Data Structures – DS? Data Structure can be defined as the structure for a group of data elements that provides an efficient way of storing and organizing data in Software engineering. For instance, Arrays, Linked List, Stack, Queue, etc Q15. What is meant by main method? The main method is a method for software from which the execution of the software starts. Every block of a code called by it. Q16. What is the difference between class & structure? The class supports inheritance whereas structure does not support inheritance. Class is private by default whereas structure is public. Q17. What is the difference between class & object? Class can be created for similar types of objects whereas object is only an instance of a class. Q18. What is the difference between super class & sub class? A subclass is a class that derives from the class which is known as the Superclass. Q19. What is the difference between interface & abstract class? Abstract class Interface (1) Abstract class can contain abstract and non-abstract methods that should be declared with the abstract keyword. The interface should be declared with the interface keyword. It can contain only abstract methods. (2) Abstract class doesn't support multiple inheritances. The interfacesupports multiple inheritances. (3) Abstract class can contain final, non-final, static, and non-static variables. The interface contains only static and final variables. (4) Abstract class can provide the implementation of the interface. Interface can't provide the implementation of the abstract class. (5) An abstract class can be extended by using the "extends" keyword. An interface can be implemented by using the "implements" keyword.
  • 4. (6)For instance, public abstract class Shape{ public abstract void draw(); } Example: public interface Drawable{ void draw(); } Q20. Give few difference between constructor and method? Constructor Method (1) Constructor should not return any value. Method should return a value. (2) Constructors are invoked implicitly. Methods are invoked explicitly. (3) The name of the Constructor should be same as the class name. Method name should be different. (4) Constructor is declared with construct keyword. Method should be declared with method name. Q21. What is the difference between stored procedure & function? Function Stored Procedure (1) Function should return a value. Stored procedure may or may not return a value. (2) Function should declared by using fun keyword. Stored Procedure may not required fun keyword. (3) Functions can have only input parameters. Procedures can have input or output parameters. (4) Functions can be called from Procedure. Procedures cannot be called from a Function.. Q22. What is the difference between overriding & overloading? When there are different methods in one class that have the same name but distinct parameters, overloading takes place. What happens at the time of overriding is that the methods have the same name as well as the same parameters. But one method here will belong to the parent class the other will belong to the child class. Also, these two are different types of concept as well, where overriding is the run-time type and the overloading is the compile-time type. Q23. What is the difference between Conversation & Casting? Casting Conversion (1) Casting is the process to convert one data type to another data type by using casting operator. Conversion is process to convert a datatype into another data type automatically by compiler. (2) Casting can be applied to compatible data types as well as incompatible data types.. Conversion can only be applied to compatible datatypes. (3) Casting is also known as Type casting. Conversion is also known as Type Conversion. (4) Type casting is done during programming. Type conversion is done at the compile time. Q24. What is the difference between private & public & friendly classes?
  • 5. Public containers would be Visible to all classes, Friendly variables would be Visible to the only same package, while Private containers would be Visible only to the container to which they belong. Q25. What is the difference between form & report? Forms are visual representations that are basically used to take user’s Input or information, while Reports are gathered the information for a task that is generally shown as an output. Q26. What is the difference between normal report & matrix report? Normal report is represented as a document whereas a matrix report is represented in tabular format. Q27. What is the difference between variable & constant? Both are the containers that are used to store a value. Variables are temporary whereas constants are permanent. The value of a variable may be changed during the execution but the value of constant is always fixed according to its declaration. Please Visit OnlineInterviewquestions.com to download more pdfs