Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

WGU C173: Scripting and Programming Foundations |OA | Objective Assessment|Accurate|Verified

Beoordeling
-
Verkocht
-
Pagina's
10
Cijfer
A+
Geüpload op
25-03-2026
Geschreven in
2025/2026

WGU C173: Scripting and Programming Foundations |OA | Objective Assessment

Instelling
Vak

Voorbeeld van de inhoud

WGU C173: Scripting and Programming
Foundations |OA | Objective Assessment

- - ANS-subtract

* - ANS-multiply

/ - ANS-divide

% - ANS-Modulos, does division and returns the remainder

+ - ANS-concatenate or add

< - ANS-less than

<= - ANS-less than or equal to

= - ANS-assignment

== - ANS-comparisons equality

> - ANS-greater than

>= - ANS-greater than or equal to

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

How are buckets used in a hash table? What effect do they have on lookup speed? -
ANS-Entries in a hash table are mapped to a number, which is the position in the index
where you should look for the entry. A hash table has numbered bucket slots that hold
entries. The entries are organized in the buckets based on their assigned keyword
number. When you run a search using a hash table the keyword assigned will be used
to determine which bucket the entry should be located in and begin the search there.
Because the search knows where to begin looking it is much quicker to look up items.

How are compound mathematical expressions evaluated in Python? - ANS-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

How are elements in a list indexed? - ANS-List elements are assigned an index number
starting with 0.

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

How do you define outputs for a function? - ANS-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.

How do you prioritize case (best case, worst case, average case) when analyzing
algorithms? - ANS-You would look at them in this order: Worst case, average case, best
case. The worst case is the most important because this will give you a better
understanding of why the time scales as it does.

How do you select a sub-sequence of a list with Python? - ANS-You specify the index
position to begin the selection and the index position by which to stop the selection. For
example, the following code would print red and yellow because they are at position 0
and 1.The value of 2 tells us to stop the selection at position 2, but not to include it.

myColors = ["red","yellow","blue","orange","green"]
print myColors[0:2]

How do you update a list item with Python? - ANS-By specifying the element that you
want to update and then assigning a new value. For example, the following code would
change the second element in list, from yellow to purple.

myColors = ["red","yellow","blue","orange","green"]
myColors[1] = "purple"
print myColors

How do you use dot notation to access an attribute of a class? - ANS-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.

How does the AND operator evaluate two operands? - ANS-If <Expression1> has a
False value, the result is False and <Expression2> is not evaluated (so even if it would
produce an error it does not matter). If <Expression1> has a True value, the result of the
and is the value of <Expression2>.

How does the OR operator evaluate two operands? - ANS-If <Expression1> has a True
value, the result is True and <Expression2> is not evaluated (so even if it would
produce an error it does not matter). If <Expression1> has a False value, the result of
the or is the value of <Expression2>.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
25 maart 2026
Aantal pagina's
10
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

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.
CLOUND Exam
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
636
Lid sinds
2 jaar
Aantal volgers
389
Documenten
11663
Laatst verkocht
3 dagen geleden
PROF MM

HELLO WELCOME TO THIS PAGE WHERE YOU WILL FIND ALL EXAMS ,STUDY GUIDE ,CASE, TESTBANKS AND ANY OTHER STUDY MATERIALS,

4.0

123 beoordelingen

5
64
4
16
3
29
2
3
1
11

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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen