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 >> Scripts >> PHP
 
 


 

 
 PHP interview questions  PHP Interview Questions (659)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (175)
 VB Script interview questions  VB Script Interview Questions (343)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
Question
What are the differences between procedure-oriented
languages and object-oriented languages?
 Question Submitted By :: PHP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
In procedural programming the main emphasis is on procedure
while in object oriented the data is important part. on the
same hand data is more secured in object oriented program.
-----------------------------------------------------------
Procedure Oriented Language:
---------------------------
PO Language is fully concentrates on
Procedures/functions/methods. It normally works as a
sequence of actions as seen in flowchart or in any
algorithm. It follows top-down approach. It totally focuses
on methods and not the data which is utilized by methods.
In PO languages if data is used by many methods then its
declared as global data but there is a problem if we do
that, what is that, if we forgot or by mistake if we
consume that data in some other method than it comes with
problem. Mostly these scenarios happen in large systems.

Example: COBOL, PASCAL, C, FORTRAN etc.

Object Oriented Language:
------------------------
OO concepts says it think about data and bind that data and
methods those are manipulating that data into one entity
known as object and then utilize that object into system.

Example: C++, Java, C#, VB.Net etc.

There are some fundamental concepts of OO Language which a
language has to follow to be a truly OO language.

OBJECT
CLASS
ABSTRACTION
ENCAPSULATION
DATA HIDING / INFORMATION HIDING
INHERITANCE
POLYMORPHISM
 
Is This Answer Correct ?    112 Yes 4 No
Kumar
 
Answer
# 2
C employs top down approach which is an procedure oriented,
where as c++ employs bottom up approach which is an object
oriented language.
 
Is This Answer Correct ?    29 Yes 5 No
Sathish
 
 
 
Answer
# 3
No Procedure Oriented Language Object Oriented Language
1 Procedure Oriented have more code. object oriented have less code

2 In procedural programming the main emphasis is on procedure
in object oriented the data is an important part.

3 PO Language is fully concentrates on
Procedures/functions/methods.
OO concepts says it think about data and bind that data and
methods those are manipulating that data into one entity
known as object and then utilize that object into system.

4 It follows top-down approach.
It follows bottom-up approach.
5 C employs top down approach which is an procedure oriented Language.
C++ employs bottom down approach which is an object oriented language.
6 COBOL, PASCAL, C, FORTRAN
are example of the procedure oriented language. C++, Java, C#, VB.Net are example of the object oriented language.
 
Is This Answer Correct ?    17 Yes 3 No
Abbas Chati
 
Answer
# 4
In procedural programming the main emphasis is on procedure
while in object oriented the data is important part. on the
same hand data is more secured in object oriented program.
-----------------------------------------------------------
Procedure Oriented Language:
---------------------------
PO Language is fully concentrates on
Procedures/functions/methods. It normally works as a
sequence of actions as seen in flowchart or in any
algorithm. It follows top-down approach. It totally focuses
on methods and not the data which is utilized by methods.
In PO languages if data is used by many methods then its
declared as global data but there is a problem if we do
that, what is that, if we forgot or by mistake if we
consume that data in some other method than it comes with
problem. Mostly these scenarios happen in large systems.

Example: COBOL, PASCAL, C, FORTRAN etc.

Object Oriented Language:
------------------------
OO concepts says it think about data and bind that data and
methods those are manipulating that data into one entity
known as object and then utilize that object into system.

Example: C++, Java, C#, VB.Net etc.

There are some fundamental concepts of OO Language which a
language has to follow to be a truly OO language.

• OBJECT
• CLASS
• ABSTRACTION
• ENCAPSULATION
• DATA HIDING / INFORMATION HIDING
• INHERITANCE
• POLYMORPHISM
 
Is This Answer Correct ?    6 Yes 4 No
Sourabh
 
Answer
# 5
i don't know but these answers are wrong. 
Is This Answer Correct ?    1 Yes 5 No
Manni
 
Answer
# 6
procedure oriented have more code where as object oriented
have less code

 
Is This Answer Correct ?    41 Yes 57 No
Umapathi
 

 
 
 
Other PHP Interview Questions
 
  Question Asked @ Answers
 
is php is the best for this situation   2
How many ways there are to fetch the data from the Database?   2
How do I open a file to write content to? Rushmore-Consultancy 1
What is the difference between the functions unlink and unset?   6
how to display and include the user system date/time in a php program/project Wipro 1
What is the difference between Reply-to and Return-path in the headers of a mail function?   2
Explain about Type Juggling in PHP?   2
how to retrieve from database..... this format (PRMRMDU402). firstname= prabhu, lastname=kumar, city=madurai, pincode=624402.... i want first name first two letters and last name last two letters ... city first two letters ... pin code last three letters....   2
What is the meaning of curl , which is used while connecting with pay pal? and how it works?   2
what is the current salary package in India for a PHP & MySQL programmer who has 3 years experience ABC 124
How can we know the count/number of elements of an array?   1
which function used to get the number of days between two given dates in php   1
 
For more PHP 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