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 (658)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (174)
 VB Script interview questions  VB Script Interview Questions (342)
 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 ?    111 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 ?    28 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
 
what is pear in php in brief ?   1
How do you register one session ?   4
how much can a 1yr experienced php programmer earn in india? TCS 9
How many ways are there for passing variables between pages in PHP and what are they ?   10
How can we encrpt a text?   3
How can we submit a form without a submit button? Rushmore-Consultancy 23
Explain Parsing and Execution in PHP? Where PHP Engine Return errors? CMC 3
1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10 TCS 13
just explain MYSql ISAM and InnoDB functions. and what is the diffrent between both. and which is the better in both.   2
What are Sub routines?   1
How do you set the browser timeout?   3
what is the difference between GET,POST and REQUEST 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