D 335 / D335 PRE - ASSESSMENT & OBJECTIVE
ASSESSMENT (LATEST UPDATES STUDY
BUNDLE PACKAGE WITH SOLUTIONS) VALUES-BASED
LEADERSHIP | QUESTIONS AND ANSWERS | GRADE A
| 100% CORRECT (VERIFIED ANSWERS) - WGU
a computer program that executes code written in the Python
programming language .....ANSWER.....Python interpreter
a program that allows the user to execute one line of code at a
time .....ANSWER.....interactive interpreter
common word for the textual representation of a program (and
hence programming is also called coding .....ANSWER.....Code
a row of text .....ANSWER.....line
The interactive interpreter displays a prompt (">>>") that
indicates the interpreter is ready to accept code
.....ANSWER.....prompt
,Page 2 of 23
a program instruciton. A program mostly consists of a series of
statements, and each statement usually appears on its own line.
.....ANSWER.....statement
code that return a value when evaluated; for example, the code
wage * hours * weeks is an expression that computes a number
.....ANSWER.....Expressions
named references to values stored by an interpreter
.....ANSWER.....variables
creates new variable EX: salary = wage * hours * weeks
.....ANSWER.....assignment
a function that displays variables and expression values to
output. Each print command includes a new line.
.....ANSWER.....print()
used for comments and do not show up in outputs. for human
readers. .....ANSWER....."#" character
, Page 3 of 23
texted enclosed in quotes (letters, numbers, spaces, or symbols
like @ or #(=) .....ANSWER.....string literal
How do you keep the output of a subsequent print statement on
the same line separated by a single space .....ANSWER.....use
end=' '
any space , tab, or newline .....ANSWER.....whitespace
how does python read input. what's the. command?
.....ANSWER.....input()
will read text entered by the user and the variable is assigned
with the entered text
The input obtained by input() is any text that a user typed,
including numbers, letters, or special characters like # or @. Such
text in a computer program is called a string.