100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS ( END OF SECTION 2022/2023 TEST PREP)(COMPLETE QUESTIONS AND ANSWERS) $8.49   Add to cart

Exam (elaborations)

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS ( END OF SECTION 2022/2023 TEST PREP)(COMPLETE QUESTIONS AND ANSWERS)

 12 views  0 purchase
  • Course
  • Institution

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS ( END OF SECTION 2022/2023 TEST PREP)(COMPLETE QUESTIONS AND ANSWERS)

Preview 3 out of 22  pages

  • September 14, 2022
  • 22
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS
( END OF SECTION 2022/2023 TEST PREP)
What is Programming? (correct answers)"You write your source code and then a compiler goes through
the code and creates a separate file that contains the machine code. This separate file is an executable
file because the computer can directly execute it. All of the code is converted at once and the new
compiled file is no longer editable.



Found in Lynda.com Lesson 1: Programming Basics, "Compiled and Interpreted Languages"



What is an interpreted programming language?: (correct answers)An interpreted language does the
conversion from source code to machine code on-the-fly. There is no separate machine code file. The
computer executes each line when it is needed. This means that all of the code is saved in a format that
is editable programming language.



Found in Lynda.com Lesson 1: Programming Basics, "Compiled and Interpreted Languages"



What is the main difference in compiled and interpreted code? (correct answers)The main difference is
when the code is converted to machine language. A compiled language converts all of the code at one
time, before the code is run by the machine, and saves this into a new file. That new file is now machine
code, and is not editable. An interpreted language still needs to convert to machine language in order
for the computer to understand it, but it does this at the time that the code is executed. The original
programming language is preserved, so it is editable.



What is an object? (correct answers)Something that has its own identity and characteristics, separate
from other objects.



Found in Lynda Lesson 1: Core Concepts, "What is an Object"



What three things describe an object in object-oriented programming languages? (correct
answers)identity, attributes, and behavior

,Found in Lynda Lesson 1: Core Concepts, "What is an Object"



What is a class? (correct answers)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.



Found in Lynda Lesson 1: Core Concepts, "What is an Class"



Why would we create a class? (correct answers)To create a blueprint upon which to build multiple
objects that share attributes and behaviors



Found in Lynda Lesson 1: Core Concepts, "What is an Class"



What is the difference in an object and a class? (correct answers)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.



What is instantiation? (correct answers)Creating instances of a class



Found in Lynda Lesson 1: Core Concepts, ""What is an Class""; Codecademy Lesson 20, 2/11, "Create an
Instance of a Class"



What is abstraction? (correct answers)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.



Found in Lynda Lesson 1: Core Concepts, "What is Abstraction"

, What is encapsulation? (correct answers)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.



Found in Lynda Lesson 1: Core Concepts, "What is Encapsulation"



What is inheritance? How does inheritance apply to working with classes? (correct answers)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.



Found in Lynda Lesson 1: Core Concepts, "What is Inheritance"; Lynda.com Lesson 6: Inheritance and
Composition;



What is polymorphism? How does polymorphism apply to working with classes? (correct
answers)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.



Found in Lynda Lesson 1: Core Concepts, "What is Polymorphism"



How do you define a class in Python? (correct answers)The syntax for creating a class in Python is:



class <ClassName> (<BaseClass>):

<Block>



Found in Codecademy Lesson 20, 1/11, "Class Basics"

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 MENTALGIANT. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 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
$8.49
  • (0)
  Add to cart