The _______
a. modular
b. procedural
c. functional
d. object-oriented
Procedural Programming:
- Procedural programming language relies on creating functions or procedures.
- It is derived from structural programming, which is also known as imperative programming.
Hence, the correct answer is option “B”.
Explanation of Solution
Procedural Programming:
- The procedural programming usually depends upon procedures or routines or subroutines.
- This programming is centered on procedures or the actions that take place in the program.
- Procedures separate from data while operating on data items, which leads to trouble, and the code becomes more complex.
Example:
Examples for procedural language are as follows:
- C
- Pascal
- FORTRAN
- BASIC
Explanation for incorrect options:
Modular programming is a designing of software that decomposes an entire program into separate sub-programs.
Hence, option “A” is wrong.
Functional programming is designed to evaluate mathematical function that uses expressions instead of statements.
Hence, option “C” is wrong.
Object-oriented programming relies on creating objects that contain data attributes and methods. It combines the data and program into a single object.
Hence, option “D” is wrong.
Want to see more full solutions like this?
Chapter 10 Solutions
EBK STARTING OUT WITH PYTHON
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (6th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Software Engineering (10th Edition)
C How to Program (8th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
- A) Class: A class in C++ is the building block that leads to object-oriented programming. true or false B) Conversion operator: We can also write conversion operators that can be used to convert one type to another type. true or falsearrow_forwardPortfolio Instructions: You are working for a financial advisor who creates portfolios of financial securities for his clients. A portfolio is a conglomeration of various financial assets, such as stocks and bonds, that together create a balanced collection of investments. When the financial advisor makes a purchase of securities on behalf of a client, a single transaction can include multiple shares of stock or multiple bonds. It is your job to create an object-oriented application that will allow the financial advisor to maintain the portfolios for his/her clients. You will need to create several classes to maintain this information: Security, Stock, Bond, Portfolio, and Date. The characteristics of stocks and bonds in a portfolio are shown below: Stocks: Bonds: Purchase date (Date) Purchase date (Date) Purchase price (double)…arrow_forwardI need help with this PLEASE NO JAVA NO C++ ONLY PYTHON PLZ Create a class object with the following attributes and actions: Class Name Class number Classroom Semester Level Subject Actions: Store a class list Print the class list as follows: Class name Class Number Semester Level Subject Test your object: Ask the user for all the information and to enter at least 3 classes test using all the actions of the object print using the to string action Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.arrow_forward
- PLEASE CODE IN PYTHON PLEASE USE CLASS In bowling, a ball is rolled down a lane, also called an alley, at a set of ten pins. A game consists of a bowler bowling for ten frames, where each frame consists of two chances (throws) to knock over all ten pins. Bowling centers often use computers to electronically keep scores for bowlers. Use object-oriented development to create a Bowling application that simulates a simplified game of bowling. The Bowling application and its objects should: • Allow a bowler to bowl ten frames. Each frame consists of two throws, unless a strikeis thrown. • Award 20 points to the bowler when all ten pins are knocked over on the first throwof a frame. • Award 15 points to the bowler when all ten pins are knocked over within the twothrows of a frame. • Award one point for each pin knocked over in the two throws of a frame when allten pins are not knocked over. • If there is more than one bowler in a game, then the bowlers take turns until eachhas bowled ten…arrow_forwardIn C/C++, True or False: A variable's type helps define the range of values that can be held by that type. A variable's type helps define the operations that can be performed on that type. A parameter that has a default value must be the first parameter listed in the function's parameter list.arrow_forwardWrite definition for a class named circle with attributes center and radius, instantiate circle object that represents a circle with its center at (125, 90) and radius 65 .write function named point_in_circle that takes a circle and a point and returns true if the point lies in or on the boundary of the circle , in c++ languagearrow_forward
- structions: Write the following programs in C# using concepts learnt in this chapter and abmit the .cs file with the screenshot of your output for each question in the Lab Assignment 2 Submission page. 1. FRENCH TRANSLATOR Look at the following list of French words and their meanings: In French: gauche milieu droite middle In English: right left Create an application that translates the French words to English. The form should have three buttons, one for each French word. When the user clicks a button, the application should display the English translation in a Label control.arrow_forwardc# language Write a console application that uses at least 8 different methods of Math class. Provide a meaningful identifier of the variables or constants. Name the namespace as App and its class as Program.arrow_forwardC++ beginnerarrow_forward
- Describe scenarios where passing function objects as arguments can be beneficial.arrow_forwardWhat is the correct term for the situation when the compiler makes a decision about the specific behaviour that should be executed by an object? O Method Overriding Late Binding Polymorphism Encapsulation Method Overloading Inheritance Early Binding ENG CMS HHarrow_forwardIf an argument is given into a reference parameter, it will be treated as if it were a reference parameter.arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT