Starting Out with Python Plus MyLab Programming with Pearson eText -- Access Card Package (4th Edition)
bartleby

Videos

Textbook Question
Book Icon
Chapter 10, Problem 1MC

The _______ programming practice is centered on creating functions that are separate from the data that they work on.

a. modular

b. procedural

c. functional

d. object-oriented

Expert Solution & Answer
Check Mark
Program Description Answer

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?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
02:03
Students have asked these similar questions
(C PROGRAMMING ONLY) 4. Man's Best Friendby CodeChum Admin We all know what man's best friend is. A dog! ? Let's create one in our program using the pre-existing struct Dog provided. Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs a string value for its breed. Furthermore, you are provided with a displayDog() function which accepts a struct Dog as its parameter.Your task is to create a Dog, take in a string user input, and then set it as the Dog's breed.Finally, call the displayDog() function and pass that Dog you created.Input 1. The breed of the Dog Output Enter·the·breed·of·the·Dog:·Golden·RetrieverArf·arf!·I'm·a·Golden·Retriever
Please Help. Can You Give A Code For My Reference/Idea In Object Oriented Programming? Thank you in advance and God bless you. Create a simple program using C++ for a payroll that computes the weekly gross income of the employee. It should follow the operational conditions below: When the application has been executed, it will ask the user for the employee code. When the employee code has been entered, it will automatically look for the salary level of the employee from its record then display the name of the employee and salary rate level. Then it will ask the user to enter the time - in of the employee. Then it will ask the user to enter the time - out of the employee. Note: Will repeat four more times to complete the input from Monday to Friday. Note: Looping (use FOR LOOP for the girls and DO WHILE LOOP for the boys) After entering the time-in, time-out, the system will compute the total number of hours work through the following information: the total number of hours work and…
Instructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age, character value for its gender, and a struct Phone for its phone. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. Your task is to define a new struct called Phone. This Phone would need 3 properties: char type - which can either be 'I' for iPhone or 'A' for Android int ram - the number of RAM this phone has int storage - the number of storage this phone has Then, using this struct Phone you defined, create a Phone in the main() and ask the user for its type, ram, and storage. Next, create a struct Person and ask the user for its age and gender and then set its phone to the Phone you just created earlier. Finally, call the displayPerson() function and pass the Person. Input 1. The type of the Phone 2. The RAM of the Phone 3. The storage of the Phone 4. The age of the…

Chapter 10 Solutions

Starting Out with Python Plus MyLab Programming with Pearson eText -- Access Card Package (4th Edition)

Ch. 10.2 - Prob. 11CPCh. 10.3 - What is an instance attribute?Ch. 10.3 - Prob. 13CPCh. 10.3 - What is an accessor method? What is a mutator...Ch. 10.4 - Prob. 15CPCh. 10.4 - Prob. 16CPCh. 10.4 - When designing an object-oriented application, who...Ch. 10.4 - How do you identify the potential classes in a...Ch. 10.4 - What are a classs responsibilities?Ch. 10.4 - What two question should you ask to determine a...Ch. 10.4 - Will all of a class's action always be directly...Ch. 10 - The _______ programming practice is centered on...Ch. 10 - The ___________ programming practice is centered...Ch. 10 - A(n) _____ is a component of a class that...Ch. 10 - Prob. 4MCCh. 10 - By doing this, you can hide a classs attribute...Ch. 10 - Prob. 6MCCh. 10 - A(n) ________ method stores a value in a data...Ch. 10 - Prob. 8MCCh. 10 - If a class has a method named _ _str_ _ , which of...Ch. 10 - A set of standard diagrams for graphically...Ch. 10 - In one approach to identifying the classes in a...Ch. 10 - Prob. 12MCCh. 10 - The practice of procedural programming is centered...Ch. 10 - Object reusability has been a factor in the...Ch. 10 - It is a common practice in object-oriented...Ch. 10 - Prob. 4TFCh. 10 - Starting an attribute name with two underscores...Ch. 10 - You cannot directly call the _ _ str _ _ method.Ch. 10 - One way to find the classes needed for an...Ch. 10 - Prob. 1SACh. 10 - Why should an object's data attributes be hidden...Ch. 10 - What is the difference between a class and an...Ch. 10 - The following statement calls an object's method....Ch. 10 - Prob. 5SACh. 10 - In a Python class, how do you hide an attribute...Ch. 10 - Prob. 7SACh. 10 - Suppose my_car is the name of a variable that...Ch. 10 - Prob. 2AWCh. 10 - Look at the following description of a problem...Ch. 10 - Pet Class The Pet class Write a class named Pet,...Ch. 10 - Car Class Write a class named Car that has the...Ch. 10 - Personal Information Class Design a class that...Ch. 10 - Employee Class Write a class named Employee that...Ch. 10 - RetailItem Class Write a class named RetailItem...Ch. 10 - Patient Charges Write a class named Patient that...Ch. 10 - Employee Management System This exercise assumes...Ch. 10 - Cash Register This exercise assumes you have...Ch. 10 - Trivia Game In this programming exercise, you will...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Data Members; Author: CppNuts;https://www.youtube.com/watch?v=StlsYRNnWaE;License: Standard YouTube License, CC-BY