• ¿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 66 páginas
Examen

WGU E010 Foundations of Programming (Python) | Comprehensive OA Practice Workbook | Questions, Coding Exercises, Answers & Explanations | 2026/2027 Updated

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

WGU E010 Foundations of Programming (Python) | Comprehensive OA Practice Workbook | Questions, Coding Exercises, Answers & Explanations | 2026/2027 Updated

Vista previa del contenido

,WGU E010 Foundations of Programming
(Python) Practice Workbook
Section 1: Python Basics, Variables & Data
Types (Questions 1–12)
1. What is the output of the following Python
expression?
Python
print(10 // 3)
• A. 3.3333

• B. 3

• C. 4

• D. 3.0


Correct Answer: B
Rationale: The floor division operator (//) divides two
numbers and rounds down to the nearest integer,
discarding any fractional remainder.
2. Which of the following variable names is
illegal and will raise a SyntaxError in Python?
• A. total_score
• B. 2nd_place
• C. _user_name
• D. itemCount
Correct Answer: B

,Rationale: Variable names in Python cannot start
with a digit (2nd_place). They must begin with a
letter or an underscore.
3. What data type is returned by the expression
type() in Python 3?
• A. <class 'int'>
• B. <class 'str'>
• C. <class 'float'>
• D. <class 'double'>
Correct Answer: C
Rationale: In Python 3, standard division (/) always
returns a floating-point number, even if both
operands are integers and divide evenly.
4. What is the output of the following string
operation?
Python
word = "Python"
print(word[1:4])
• A. Pyt

• B. yth

• C. ytho

• D. ytho


Correct Answer: B

, Rationale: String slicing [start:stop] includes the
start index (1 → 'y') up to, but not including, the stop
index (4 → 'o'). Thus, indices 1, 2, and 3 yield "yth".
5. Which operator is used to calculate the
remainder of division (modulo) in Python?
• A. /
• B. //
• C. %
• D. **
Correct Answer: C
Rationale: The modulo operator (%) computes the
remainder of a division operation (e.g., 7 % 3 = 1).
6. What is the result of evaluating the boolean
expression True and False or True?
• A. True
• B. False
• C. None
• D. TypeError
Correct Answer: A
Rationale: Operator precedence evaluates and
before or. True and False evaluates to False. Then
False or True evaluates to True.

Información del documento

Subido en
28 de octubre de 2026
Número de páginas
66
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$16.99

¿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.
Vendido
36
Seguidores
3
Artículos
3069
Última venta
1 semana 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