100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

WGU D335 Intro to Python | OA | Objective Assessment | 15 Actual Questions and Answers Plus Rationales | 2026 Update | 100% Correct

Puntuación
-
Vendido
-
Páginas
31
Grado
A+
Subido en
29-01-2026
Escrito en
2025/2026

WGU D335 Intro to Python | OA | Objective Assessment | 15 Actual Questions and Answers Plus Rationales | 2026 Update | 100% Correct

Institución
WGU D335 Intro To Python
Grado
WGU D335 Intro to Python











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
WGU D335 Intro to Python
Grado
WGU D335 Intro to Python

Información del documento

Subido en
29 de enero de 2026
Número de páginas
31
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

WGU D335 Intro to Python | OA |
Objective Assessment | 15 Actual
Questions and Answers Plus Rationales |
2026 Update | 100% Correct
1. Which line correctly assigns an integer value to a variable?
A. x = "5"
B. x == 5
C. x = 5
D. int x = 5

Answer: C
Rationale: Python assigns values using a single equals sign and does not require type
declarations.



2. What is the data type of 3.14?
A. int
B. float
C. str
D. bool

Answer: B
Rationale: Decimal numbers are stored as floats.



3. Which function converts user input into an integer?
A. input()
B. str()
C. int()
D. float()

Answer: C
Rationale: input() returns a string, which must be cast to int.



4. What is the output of this code?

,x = 10
y = "10"
print(x + int(y))

A. 1010
B. 20
C. Error
D. "20"

Answer: B
Rationale: y is converted to an integer before addition.



5. Which is a Boolean value?
A. "True"
B. 1
C. True
D. "False"

Answer: C
Rationale: Boolean values are True or False without quotes.

5. Which is a Boolean value in Python?
A. "True"
B. 1
C. True
D. "False"

Answer: C
Rationale: Boolean values in Python are True and False without quotation marks.



6. What is the output of this code?

x = 10
y = "10"
print(x + int(y))

A. 1010
B. 20
C. Error
D. "20"

Answer: B
Rationale: The string "10" is converted to an integer, allowing numeric addition.

,7. Which function converts user input into an integer?
A. input()
B. str()
C. int()
D. float()

Answer: C
Rationale: input() returns a string, which must be converted using int().



8. What is the data type of the value returned by input()?
A. int
B. float
C. string
D. boolean

Answer: C
Rationale: All user input is returned as a string by default.



9. Which line of code correctly assigns an integer to a variable?
A. x == 5
B. x = "5"
C. x = 5
D. int x = 5

Answer: C
Rationale: Python uses = for assignment and does not require type declarations.



10. What happens when this code runs?

age = input("Enter age: ")
print(age + 1)

A. Prints the next age
B. Correct output
C. TypeError
D. SyntaxError

, Answer: C
Rationale: age is a string, and Python cannot add a string and an integer.



11. Which line correctly prints text and a variable together?
A. print("x")
B. print(x)
C. print("Value:", x)
D. print(Value x)

Answer: C
Rationale: Commas allow combining strings and variables in print().



12. What symbol is used for comments in Python?
A. //
B. #
C. /* */
D. --

Answer: B
Rationale: Python uses # to indicate comments.



13. What is the output of this code?

print("Hello", "World")

A. HelloWorld
B. Hello World
C. "Hello World"
D. Error

Answer: B
Rationale: A space is automatically inserted between comma-separated values.



14. Which function displays output to the screen?
A. input()
B. print()
C. output()
D. show()
$22.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

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.
SimoDocs Chamberlain College Nursing
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
188
Miembro desde
1 año
Número de seguidores
5
Documentos
2357
Última venta
2 días hace

4.1

9 reseñas

5
5
4
2
3
1
2
0
1
1

Recientemente visto por ti

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