100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS LATEST STUDY GUIDE QUESTIONS AND CORRECT DETAILED ANSWERS $10.99   Add to cart

Exam (elaborations)

WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS LATEST STUDY GUIDE QUESTIONS AND CORRECT DETAILED ANSWERS

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

WGU D278 SCRIPTING AND PROGRAMMING FOUNDATIONS LATEST STUDY GUIDE QUESTIONS AND CORRECT DETAILED ANSWERS

Preview 4 out of 49  pages

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



WGU D278 SCRIPTING AND PROGRAMMING
FOUNDATIONS LATEST 2024-2025 STUDY GUIDE
QUESTIONS AND CORRECT DETAILED ANSWERS


What is an editor? - CORRECT ANSWER✔✔A program that allows you to write
code




Question: What is a compiler? - CORRECT ANSWER✔✔A program that produces
other programs. The compiler does all the work at once and then runs the new
program. We're translating the code we wrote to computer code all at once. This
is often when we produce an .exe (executable) file.




Question: What is an interpreter? - CORRECT ANSWER✔✔A program that runs
code one line at a time. Instead of converting all of the code at once it runs each
line as it's needed. It interprets that specific line from your code to computer
code.




Question: What is an operator and what does it do? - CORRECT ANSWER✔✔An
operator takes two operands (values) and does something with them. It is an
object capable of manipulating a value. If it is a comparison or logical operator it


1
SUCCESS!

,Page 2 of 49


would compare to see if they are similar or dissimilar. If it is a mathematical
operator it would perform mathematical calculations.




Question: What is an expression? - CORRECT ANSWER✔✔something that has a
value.




Question: What is the difference in a terminal and non-terminal expression? -
CORRECT ANSWER✔✔A terminal is a final value, while a non-terminal can be
reduced further.




Question: What is proper Python grammar for making an expression? - CORRECT
ANSWER✔✔Expression → Expression Operator Expression

The Expression non-terminal that appears on the left side can be replaced by an
Expression, followed by an Operator, followed by another Expression. For
example, 1 + 1 is an Expression Operator Expression.




Question: What is a variable? - CORRECT ANSWER✔✔a name that refers to a
value




2
SUCCESS!

,Page 3 of 49


Question: What are the three main types of data covered? How do you declare
each one? - CORRECT ANSWER✔✔string is a sequence of characters surrounded
by quotes, either single or double

example: myVar = "string data"




Question: Integer is a number - CORRECT ANSWER✔✔example: myVar = 33




Question: Boolean is a true or false value - CORRECT ANSWER✔✔example: myVar
= True




Question: What is grammar used for in programming? - CORRECT ANSWER✔✔In
a programming language like Python, the code must match the language grammar
exactly. When programming language grammar is not followed the interpreter will
return a Syntax Error message. This means that the structure of the code is
inconsistent with the rules of the programming language.




Question: How do you change the value of a variable with Python? - CORRECT
ANSWER✔✔Using the = character to assign a new value

x=6



3
SUCCESS!

, Page 4 of 49


x=9

print x # would print out 9




Question: How to do you join multiple variables together with string data in
Python? What is this called? - CORRECT ANSWER✔✔Using the + sign to
concatenate the values




Question: What does it mean to index a string? How do you do that with Python
code? - CORRECT ANSWER✔✔This is what we call selecting a sub-sequence of a
string. You do this in Python by specifying the character you want to access by its
index position. Index position begins at 0. For example, this code would print out
the letter J:

name = 'John'

print name[0]




Question: What does it mean to slice a string? How do you do that with Python
code? - CORRECT ANSWER✔✔Slicing is simply obtaining a subset of data from a
string. You may have also heard this called string extraction. You do this in Python
by specifying the index position where you want to begin and where you want to
end. Everything from the starting point up until the end point will be extracted.
For example, this code would print out "Jo":

4
SUCCESS!

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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