Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
1.1. Procedural vs. Object-Oriented Programming
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
5 cards from this lesson. Good the night before a test.
Try these first
- 1.
Define procedural programming in one sentence.
Hint
Think about the flow of writing code.
- 2.
List one example of a procedural programming language.
Hint
Consider widely used programming languages.
- 3.
What is the main focus of procedural programming?
- Organizing code into classes
- Writing sequences of procedures
- Using real-world models
Hint
Think about how code is structured.
- 4.
True or False: OOP is linear and top-down.
- True
- False
Hint
Recall the characteristics of OOP.
- 5.
Create a class representing a bank account in OOP. Include methods for deposit and withdrawal. How does inheritance fit into this scenario?
Hint
Consider what properties a general account would have.
- 6.
Write a short program using both procedural programming and OOP. Compare their effectiveness in maintaining code.
Hint
Think about how easy it is to modify or extend the code in either approach.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting