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 FINAL OBJECTIVE ASSESSMENT 2022/2023 DETAILED QUESTIONS AND ANSWERS /GRADED A+

Beoordeling
5.0
(1)
Verkocht
4
Pagina's
28
Cijfer
A+
Geüpload op
13-09-2022
Geschreven in
2022/2023

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS FINAL OBJECTIVE ASSESSMENT 2022/2023 DETAILED QUESTIONS AND ANSWERS /GRADED A+

Instelling
Vak

Voorbeeld van de inhoud

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS FINAL
OBJECTIVE ASSESSMENT 2022/2023 DETAILED QUESTIONS AND
ANSWERS
What is an editor? (correct answers)A program that allows you to write code



What is a compiler? (correct answers)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 answers)runs a program's statements. 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 answers)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 answers)something that has a value.



What is the difference in a terminal and non-terminal expression? (correct answers)A terminal is a final
value, while a non-terminal can be reduced further.



What is proper Python grammar for making an expression? (correct answers)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 answers)Simply put its a container for storing a value. Used by programs
to refer to data. It is a named item, used to hold a value. A name that refers to a value. program can

,store that data in variables. Each variable has a name, a value, and a type. The value might change over
time, and that's why its "variable."



What are the three main types of data covered? How do you declare each one? (correct answers)string
is a sequence of characters surrounded by quotes, either single or double

example: myVar = "string data"



^^ Integers (correct answers)Is a whole number value. No decimals, whole numbers only example:
myVar = 33



^^ Boolean (correct answers)A true or false value. example: myVar = True



What is grammar used for in programming? (correct answers)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 answers)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
answers)Using the + sign to concatenate the values



What does it mean to index a string? How do you do that with Python code? (correct answers)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 answers)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 answers)concatenate or add



= (correct answers)assignment



* (correct answers)multiply



- (correct answers)subtract



/ (correct answers)divide



^^ % (correct answers)Division and returns the remainder, Modulos



What does the * operator do when applied to string data? (correct answers)It writes out the string data
multiple times. For example, print '!' * 12 would output !!!!!!!!!!!! (12 exclamation points).



What does a procedure do? (correct answers)takes in inputs, does some processing, and produces
outputs

Geschreven voor

Vak

Documentinformatie

Geüpload op
13 september 2022
Aantal pagina's
28
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$8.99
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


Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
3 jaar geleden

5.0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

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.
MENTALGIANT Western Governors University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
493
Lid sinds
4 jaar
Aantal volgers
385
Documenten
269
Laatst verkocht
5 dagen geleden
ALL UNIVERSITY FINAL EXAMs, OAs, PAs, NURSING EXAMS AND TESTBANKS NB: REVIEWING GETS CHEAPER PRICES

ALL UNIVERSITY FINAL EXAMs, OAs, PAs, NURSING EXAMS AND TESTBANKS/ STUDY GUIDES(Verified learners) Here, you will find everything you need in ALL UNIVERSITY FINAL EXAMs, OAs, PAs, NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

3.5

92 beoordelingen

5
38
4
10
3
19
2
10
1
15

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