SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice question 6 of 25
Which is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?
Full set: 137 questionsThe defining characteristic of object-oriented programming (OOP) is the concept of bundling data (attributes) and the methods (functions) that operate on that data into a single unit called an "object." This allows a program to be decomposed into a collection of interacting objects. This principle, often involving concepts like encapsulation, inheritance, and polymorphism, is unique to OOP and distinguishes it from procedural and functional paradigms, which organize programs around procedures or functions, respectively.
A. Recursion is a prominent feature of functional programming, where problems are often solved by applying a function to its own output.
B. Modular programming and calling subroutines (procedures or functions) are the foundational concepts of the procedural programming paradigm.
C. Treating programs as the evaluation of mathematical functions is the core principle of the functional programming paradigm.
1. Abelson, H., & Sussman, G. J. (1996). Structure and Interpretation of Computer Programs (2nd ed.). MIT Press. Chapter 3, "Modularity, Objects, and State." Section 3.1 discusses the concept of assignment and local state, which leads to the object-oriented paradigm of grouping state and operations.
2. Guttag, J. V. (2021). 6.0001 Introduction to Computer Science and Programming in Python. Massachusetts Institute of Technology: MIT OpenCourseWare. Lecture 8: Object Oriented Programming. Defines OOP as a style of programming that involves bundling data and functions that work on that data into objects.
3. Weisfeld, M. (2019). The Object-Oriented Thought Process (5th ed.). Addison-Wesley Professional. Chapter 1, "Introduction to Object-Oriented Concepts." "The fundamental concept of object-oriented (OO) development is to view a system as a set of interacting objects."
Keep practicing
Take the free SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice questions
- Question 1Which characteristic distinguishes a markup language from other languages?
- Question 2A program calculates the average miles per gallon given miles traveled and gas consumed H…
- Question 5Which characteristic specifically describes an object-oriented language?
- Question 7Which operation should be used to check if the difference of two values is greater than 1?
- Question 9A program allows the user to play a game. At the end of each game, the program asks the u…
- Question 10Which phase of an agile application would create a function that calculates shipping cost…
