100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACTUAL EXAM AND STUDY GUIDE QUESTION BANK LATEST COMPLETE 250 QUESTIONS AND CORRECT DETAILED SOLUTIONS JUST RELEASED $11.99   Add to cart

Exam (elaborations)

WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACTUAL EXAM AND STUDY GUIDE QUESTION BANK LATEST COMPLETE 250 QUESTIONS AND CORRECT DETAILED SOLUTIONS JUST RELEASED

 6 views  0 purchase
  • Course
  • WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACT
  • Institution
  • WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACT

WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACTUAL EXAM AND STUDY GUIDE QUESTION BANK LATEST COMPLETE 250 QUESTIONS AND CORRECT DETAILED SOLUTIONS JUST RELEASED

Preview 4 out of 48  pages

  • September 30, 2024
  • 48
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • wgu d278
  • WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACT
  • WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS ACT
avatar-seller
ressyshii
Page 1 of 48




WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS
ACTUAL EXAM AND STUDY GUIDE QUESTION BANK LATEST
2024-2025 COMPLETE 250 QUESTIONS AND CORRECT
DETAILED SOLUTIONS JUST RELEASED




Q: What does the * operator do when applied to string data? - CORRECT
ANSWER✔✔It writes out the string data multiple times. For example, print '!' * 12
would output !!!!!!!!!!!! (12 exclamation points).




Q: What does a procedure do? - CORRECT ANSWER✔✔takes in inputs, does some
processing, and produces outputs




Q: What is the difference in a procedure and a function? - CORRECT ANSWER✔✔A
procedure and a function in python are the same so there is no difference. They
both take inputs and may or may not return outputs.




Q: What is a parameter? - CORRECT ANSWER✔✔Input to a procedure or function

, Page 2 of 48


Q: What is the difference in an input, an operand, and a parameter? - CORRECT
ANSWER✔✔Nothing! They are all different names used to describe inputs to a
procedure.




Q: What are the advantages of using a function? - CORRECT ANSWER✔✔Functions
can be used multiple times. They provide a modular piece of code that only has to
be written once and then can be called upon multiple times within the program.




Q: When does a function execute? - CORRECT ANSWER✔✔When you explicitly ask
it to execute by calling the function and passing in any parameters. We refer to
this as invoking or calling the function.




Q: How do you define outputs for a function? - CORRECT ANSWER✔✔Using the
return keyword you can define what data will be returned or output when the
procedure or function runs. You can only access data from within a function if you
return that specific data to be used outside of the function.




Q: How is a while loop constructed in Python? What is its purpose? - CORRECT
ANSWER✔✔executes any number of times, continuing as long as the test
expression is True

, Page 3 of 48


while <TestExpression>:

<Block>




Q: How is an if else statement constructed in Python? What is its purpose? -
CORRECT ANSWER✔✔provides a way to control what code executes based on the
result of a test expression

if <TestExpression>:

<block>

else:

<block>




Q: How are compound mathematical expressions evaluated in Python? - CORRECT
ANSWER✔✔First perform calculations within parentheses.

Next work left to right and perform all multiplication and division.

Finally, work left to right and perform all addition and subtraction




Q: What is the function of parentheses, (), in programming expressions? -
CORRECT ANSWER✔✔When we are working with an expression, they group items
within that expressions. Items within parentheses are evaluated first. For example:

, Page 4 of 48


(5 + 3) * 8 = 64 because we do the addition first, then multiplication

5 + 3 * 8 = 29 because we do the multiplication first, then the addition.




We also use parentheses in procedures to define the inputs to that procedure,
which is a very different idea than when working within an expression..




Q: < - CORRECT ANSWER✔✔less than




Q: > - CORRECT ANSWER✔✔greater than




Q: <= - CORRECT ANSWER✔✔less than or equal to




Q: >= - CORRECT ANSWER✔✔greater than or equal to




Q: == - CORRECT ANSWER✔✔comparisons equality

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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