Scripting and Programming Foundations WGU
EXAM Questions & Answers | 100% Verified
solutions |Questions with Correct Answers 2025
latest update!!
Save
Terms in this set (74)
Editor allows you to write code
Compiler Turns programming language into computer language
Same as compiler, but converts code one step at a
Interpreter
time instead of the entire program at once
An object that takes two operands and does
Operator
something with them
Expression Something that has value
Terminal vs non-terminal Terminal is a final value, non-terminal can be reduced
expression further
Proper Python expression Expression > expression operator expression
grammar
Variable A name that refers to a value
String Text surrounded by quotes
Integer A number
Boolean A true or false value
Programming grammar Language rules, returns a syntax error if not followed
https://quizlet.com/1075747295/scripting-and-programming-foundations-wgu-exam-questions-answers-100-verified-solutions-questions-with-correct-an… 1/6
, 9/13/25, 1:59 PM Scripting and Programming Foundations WGU EXAM Questions & Answers | 100% Verified solutions |Questions with Correct Answ…
Change variable value Using an = assigns a new value
Indexing a string Selecting a sub-sequence of a string
Slicing a string Obtaining a subset of data from a string
+ Concatenate or add
= Assignment
Multiply, when applied to string data it writes out the
*
string multiple times
- Subtract
/ Divide
% Does division and returns remainder
Takes an input
Procedure processes input
produces output
Same as procedure
Function
written once but can be called upon many times
Parameter An input to a procedure or function
Operand Same as an input or a parameter
Return Defines the output for a function
Executes as long as the test expression is true
While loop
while <test expression>
<block>
Controls what code is executed based on results of a
test expression
If else statement if <test expression>
<block>
else:
<block>
https://quizlet.com/1075747295/scripting-and-programming-foundations-wgu-exam-questions-answers-100-verified-solutions-questions-with-correct-an… 2/6