Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer Science 109 _ Introduction to Programming

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
25-09-2025
Written in
2025/2026

Computer Science 109 _ Introduction to Programming

Institution
Course

Content preview

Computer Science 109 : Introduction to
Programming



You are designing a program instance; Semi class
for vehicles. Some of the Explanation: A new semi is an instance of the Semi class. It
class names include Semi, is an object. This is the basis of object-oriented
Compact, and SUV. If we programming, the collection of classes and objects.
create a new semi, it is said
that the semi is a(n)_______of
a(n)
_____.
You have designed a Methods.
hierarchy of classes for Explanation: Methods are the functions or the actual tasks being
accounting software. All carried out.

parent/child class
relationships are set. What
will you need for the classes
to actually perform tasks?
A parent class called Polymorphism.
SoftDrink has a brew() Explanation: Polymorphism refers to being able to perform
method. RootBeer and Beer the same thing but differently. Root beer is brewed, but not
classes inherit from SoftDrink. in the same way as beer. Yet each can use the brew()
Each uses the brew() method method in different ways.
but in different ways. Which
aspect of object-oriented
design is this?
You are designing a program encapsulation
for payroll. The Tax class has Explanation: We need to hide the data or encapsulate it.
a method to calculate tax You can still call the calculateTax() method in the Tax class,
rates based on pay. You without having to know exactly how the tax is being
want to keep this method calculated, or even what the employee pay rate is. It's
and its variables invisible to good practice to keep things restricted/encapsulated.
other classes. They can Start with the tightest controls.
access the method but don't
get to see its details. This is
an example of _.

, An object-oriented design Inheritance.
consists of periodical and Explanation: Just as you inherited traits from your
publication data. The forebears, child classes (sub- classes) inherit methods and
hierarchy of classes, from fields from a parent class.
top to bottom is as follows:
Publication -> Book -> Novel.
If the Novel class gains all
methods and fields from the
Book class, this is an
example of which of the
concepts of Object Oriented
Design?
A___is a procedure associated method
with a Explanation: A method is a procedure associated with a
class that describes an action class and defines the behavior of the objects that are
an object is able to perform. created from the class.
objects.
Sally is continuing work on
Explanation: An object is a component of a program that
her Object- Oriented
knows how to perform certain actions and how to interact
Program and is writing code
with other elements of the program. Objects are the basic
for a car, truck, and bus.
units of object-oriented programming. The items that fall
These items under the class
under the class of vehicles (car, truck, and bus) are
called vehicle are referred to
referred to as objects.
as
______________________________
_.
Sally is writing some Object- class
Oriented Program code for a
vehicle that contains the
attributes manufacturer,
color, and price, along with
what she wants the vehicle to
be able to do which includes
start, drive, and park. To do
this, she needs to create a
____________for vehicles.
How do functions differ from Functions are independent of classes, and methods are defined within
methods? a class.
Inference.
Which of the following is NOT Explanation: Four core concepts of object-oriented
a core concept of object- programming are abstraction, encapsulation, inheritance
oriented programming? and polymorphism. Note that inference is NOT a core
concept.
The line of code that creates constructor.
an object from the class is Explanation: A constructor creates an object, or instance, of the class.
called a _____

Written for

Course

Document information

Uploaded on
September 25, 2025
Number of pages
14
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions