100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU D278 Exam | Scripting and Programming Foundation Exam Study Guide | Latest 2025/2026 Guide

Rating
-
Sold
-
Pages
22
Grade
A+
Uploaded on
05-02-2025
Written in
2024/2025

WGU D278 Exam | Scripting and Programming Foundation Exam Study Guide | Latest 2025/2026 Guide WGU D278 Exam | Scripting and Programming Foundation Exam Study Guide | Latest 2025/2026 Guide WGU D278 Exam | Scripting and Programming Foundation Exam Study Guide | Latest 2025/2026 Guide

Show more Read less
Institution
WGU D278
Course
WGU D278










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU D278
Course
WGU D278

Document information

Uploaded on
February 5, 2025
Number of pages
22
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU D278 Exam | Scripting and
Programming Foundation Exam Study
Guide | Latest 2025/2026 Guide
What is an object?

- Correct Answer - Something that has its own identity and
characteristics, separate from other objects.



What three things describe an object in object-oriented programming
languages?

- Correct Answer - identity, attributes, and behavior



What is a class? How do you define a class in Python?

- Correct Answer - A class describes what an object will be, but it isn't
the object itself. A class is a blueprint, a detailed description, a definition
of an object. The syntax for creating a class in Python is:



class <ClassName> (<BaseClass>):

<Block>



Why would we create a class?

- Correct Answer - To create a blueprint upon which to build multiple
objects that share attributes and behaviors

,What is the difference in an object and a class?

- Correct Answer - An object is something that has its own identify and
characteristics, separate from other objects. A class describes that object
will be, but it isn't the object itself. For example, a house is an object and
the blueprints used to create it would be considered the class.



How do you use dot notation to access an attribute of a class?

- Correct Answer - You list the individual object's name that is an
instance of the class, a dot, and then the attribute name. For example
myClass.color would access the color associated with the object
myClass.



What is instantiation?

- Correct Answer - Creating instances of a class



What is abstraction?

- Correct Answer - Focus on the essential qualities of something rather
than one specific example. For example, if I say a table you have an
idea of what I mean even though I didn't say if it was wood/glass or
big/small. This is the essential idea behind creating classes.



What is encapsulation?

, - Correct Answer - Surrounding something, not just to keep the contents
together, but also to protect those contents. Restricts access to the inner
workings of a class or any objects based on that class; this is referred to
as information hiding or data hiding.



What is inheritance? How does inheritance apply to working with
classes?

- Correct Answer - A form of code reuse. We can create a new class,
but instead of writing it from scratch, we can base it on an existing class.
It would inherit some of the characteristics of the base class but could
also have its own unique properties and methods that are not shared
with the base class.



What is polymorphism? How does polymorphism apply to working with
classes? - Correct Answer - Means many forms. It lets us automatically
do the correct behavior even if what we're working with could take one of
many different forms. The + is a great example. If we're adding two
variables together with the plus sign, and these variables are integers, it
will numerically add them. But if they are two strings it will concatenate
them. With classes this allows us to work with objects created from
different classes.



What are the differences in a hashed search and a linear search? -
Correct Answer - A linear search goes through each entry one at a time
to see if the search word matches the word you are looking for. With a
large index and lots of queries this will be a very slow process. A hashed

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.
nursehailey Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
2299
Member since
5 year
Number of followers
1357
Documents
3434
Last sold
1 day ago

3.9

531 reviews

5
261
4
110
3
72
2
25
1
63

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

Frequently asked questions