• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 34 páginas
Examen

Python WGU D335 – Questions With Accurate Solutions

Document preview thumbnail
Vista previa 4 fuera de 34 páginas

Python WGU D335 – Questions With Accurate Solutions

Vista previa del contenido

Python WGU D335 – Questions With Accurate
Solutions
A _____ _____ consists of instructions executing one at a time.
Correct Answer - computer program

Basic instruction types are: Correct Answer - Input: A program
gets data, perhaps from a file, keyboard, touchscreen, network, etc.
Process: A program performs computations on that data, such as
adding two values like x + y.
Output: A program puts that data somewhere, such as to a file,
screen, or network.

Programs use ____ to refer to data, like x, y, and are named
references to values stored by the interpreter. Correct Answer -
variables, due to a variable's value "varying" as a program assigns a
variable like x with new values.

creating a sequence of instructions to solve a problem is referred as
what kind of thinking? Correct Answer - computational
thinking

A sequence of instructions that solves a problem is called an ______
Correct Answer - algorithm

is a computer program that executes code written in the Python
programming language. Correct Answer - Python Interpreter

is a program that allows the user to execute one line of code at a
time. Correct Answer - interactive interpreter

is a common word for the textual representation of a program
Correct Answer - code

,is a row of text. Correct Answer - line

The interactive interpreter displays a ______ that indicates the
interpreter is ready to accept code. Correct Answer - prompt
(">>>")

is a program instruction. Correct Answer - statement

are code that return a value when evaluated ex wage * hours *
weeks Correct Answer - expressions

A new variable is created by performing an _______ using the ____
symbol Correct Answer - assignment, = EX salary = wage *
hours * weeks

The ______ function displays variables or expression values. Correct
Answer - print() EX print('Salary is:', salary)

_____ characters denote _______, which are optional but can be used to
explain portions of code to a human reader. Correct Answer -
# comments

Text enclosed in single or double quotes is known as a _________. Text
in _______ may have letters, numbers, spaces, or symbols like @ or #.
Correct Answer - string literal

Each use of print() starts on a ______. Correct Answer - new line
-print()

A programmer can add ______ inside of print() to keep the output of a
subsequent print statement on the same line separated by a single
space. Correct Answer - end=' '

,The value of a variable can be printed out via: ______ Correct
Answer - print(variable_name), without quotes around
variable_name

Output can be moved to the next line by printing _____ known as a
______. Correct Answer - \n newline character Ex: print('1\n2\
n3')

Any space, tab, or newline is called Correct Answer -
whitespace

function is used to read input from a user. causes the program to
wait until the user has entered text and pushed the return key. also
receives data as a string type, even numbers Correct Answer -
input()

is a sequence of characters, like the text "MARY", that can be stored
in a variable. can be any text Correct Answer - string

determines how a value can behave Correct Answer - type

function can be used to convert that string to the integer 123.
Correct Answer - int

Adding a ______ displays a prompt to the user before waiting for
input and is a useful shortcut to adding an additional print
statement line. Correct Answer - string inside the parentheses
of input()

violates a programming language's rules on how symbols can be
combined to create a program. Correct Answer - syntax error

, wherein a program's syntax is correct but the program attempts an
impossible operation, such as dividing by zero or multiplying strings
together Correct Answer - Runtime error

Abrupt and unintended termination of a program is often called a
_____ of the program. Correct Answer - crash

The lines of the program are not properly indented. Correct
Answer - IndentationError

An invalid value is used - can occur if giving letters to int(). Correct
Answer - ValueError

The program tries to use a variable that does not exist. If the name
cannot be found in any namespace, the interpreter generates a
Correct Answer - NameError

An operation uses incorrect types - can occur if adding an integer to
a string. Correct Answer - TypeError

the program would load correctly, but would not behave as intended
Correct Answer - logic error or bug

Code development is usually done with an Correct Answer -
IDE (Integrated Development Environment)

is the official Python IDE that is distributed with the installation of
Python Correct Answer - IDLE

is a plugin for the popular Eclipse program. Correct Answer -
PyDev

For learning purposes, web-based tools like ___ are useful Correct
Answer - CodePad or Repl

Información del documento

Subido en
5 de julio de 2025
Número de páginas
34
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$30.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
LeCrae
4.0
(448)
Vendido
2149
Seguidores
1409
Artículos
22712
Última venta
1 día hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes