100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 - Ch 10 Questions and answers. $13.99   Add to cart

Exam (elaborations)

COSC 1436 - Ch 10 Questions and answers.

 1 view  0 purchase
  • Course
  • COSC 1436_Programming Fundamentals
  • Institution
  • COSC 1436_Programming Fundamentals

COSC 1436 - Ch 10 Questions and answers.

Preview 2 out of 5  pages

  • October 14, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436_Programming Fundamentals
  • COSC 1436_Programming Fundamentals
avatar-seller
GUARANTEEDSUCCESS
COSC 1436 - Ch 10 Questions and
answers
1. 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 - answer b. procedural


Procedural programming is a programming practice centered on the
procedures (functions) or actions that take place in a program


2. this is a feature of OOP that wraps data attributes and its relevant
methods in a bundle
a. polymorphism
b. inheritance
c. encapsulation
d. abstraction - answer encapsulation


Encapsulation refers to the combining of data and code into a single
object.


3. A(n) _______ is a component of a class that references data.
a. method
b. instance
c. data attribute
d. module - answer data attribute

, The data contained in an object is known as the object's data attributes.
An object's data attributes are simply variables that reference data


4. the key word used to implement a predefined module in a class is
called:
a. def
b. random
c. extend
d. import - answer import


5. By doing this you can hide a class's attribute from code outside the
class.
a. avoid using the self parameter to create the attribute
b. begin the attribute's name with two underscores
c. begin the name of the attribute with private _ _
d. begin the name of the attribute with the @ symbol - answer begin the
attribute's name with two underscores


data attribute becomes hidden when its name begins with
two underscores


self._ _model = model
self._ _mileage = mileage
self._ _price = price


6. A(n) method gets the value of a data attribute but does not change it.
a. retriever
b. constructor
c. mutator
d. accessor - answer accessor

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller GUARANTEEDSUCCESS. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.99
  • (0)
  Add to cart