100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

WGU C173 Scripting And Programming – Foundations: Accurate Solutions For Every Question

Beoordeling
-
Verkocht
-
Pagina's
16
Cijfer
A+
Geüpload op
04-07-2025
Geschreven in
2024/2025

WGU C173 Scripting And Programming – Foundations: Accurate Solutions For Every Question

Instelling
WGU C173
Vak
WGU C173










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
WGU C173
Vak
WGU C173

Documentinformatie

Geüpload op
4 juli 2025
Aantal pagina's
16
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

WGU C173 Scripting And Programming –
Foundations: Accurate Solutions For Every
Question
What is an editor? Correct Answer - A program that allows you
to write code

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.

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.

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 would compare to see if they are
similar or dissimilar. If it is a mathematical operator it would
perform mathematical calculations.

What is an expression? Correct Answer - something that has a
value.

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.

,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.

What is a variable? Correct Answer - a name that refers to a
value

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"

Integer is a number Correct Answer - example: myVar = 33

Boolean is a true or false value Correct Answer - example:
myVar = True

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.

How do you change the value of a variable with Python? Correct
Answer - Using the = character to assign a new value
x=6
x=9
print x # would print out 9

, 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

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]

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":
name = 'John'
print name[0:2]

+ Correct Answer - concatenate or add

= Correct Answer - assignment

* Correct Answer - multiply

- Correct Answer - subtract

/ Correct Answer - divide

% Correct Answer - Modulos, does division and returns the
remainder
€16,26
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
StudyHall Chamberlain School Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1293
Lid sinds
2 jaar
Aantal volgers
825
Documenten
16356
Laatst verkocht
1 week geleden
The Study Hall Shop ~ "Where learning meets success"

Dear Stuvia Community, As a passionate and dedicated learner, I believe that knowledge is most powerful when shared. With this mindset, I’m thrilled to introduce my Stuvia account, where I aim to provide valuable, high-quality study resources that empower students like you to excel in your academic journey. Whether you’re looking for detailed notes, comprehensive study guides, or insightful exam preparation materials, I am committed to making your study experience more efficient and effective. My goal is to simplify complex topics, break them down into digestible content, and offer fresh perspectives that will help you gain deeper understanding and achieve academic success. I firmly believe that learning should be engaging, accessible, and rewarding. That’s why I’ve worked hard to craft resources that are not only informative but also easy to follow and enjoyable. As a fellow student, I understand the challenges that come with studying, and I’m here to make that process a little bit easier for you. Let’s make learning a journey, not a chore. Explore my collection of notes, exams and study materials, and feel free to reach out if you need anything more. Together, we can achieve greatness! Thank you for considering my contributions to your academic success. Best Wishes! :)

Lees meer Lees minder
3,8

215 beoordelingen

5
99
4
40
3
37
2
9
1
30

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen