Java – Object Oriented Programming (Question and Answers)
Q1: What is computer programming?
Answer: Computer Programming is a process of designing, writing, testing, debugging and maintaining the source code written in a programming language to solve a real life problem.
Q2: What does it require to write a source code in programming process?
Answer: The process of writing source code of programs requires expertise in subject, knowledge of desired application domain, a formal logic and knowledge of syntax of the relevant programming language.
Q3: What are the two main approaches (methodologies) of programming?
Answer:
1. Procedural Programming
2. Object Oriented programming.
Q4: What is procedural programming? Give examples of programming languages that support procedural programming.
Answer: In this approach or procedural programming, a programming task is broken into smaller and easily manageable modules (procedures). The stress is given to functionalities rather than data.
Basic, COBOL, Pascal and C Languages supports Procedural Programming approach.