• ¿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 2 fuera de 7 páginas
Examen

BUS 104 PYTHON EXAM STUDY GUIDE: Weekly Quizzes well answered to pass(7)

Document preview thumbnail
Vista previa 2 fuera de 7 páginas

BUS 104 PYTHON EXAM STUDY GUIDE: Weekly Quizzes well answered to pass(7)

Vista previa del contenido

BUS 104 PYTHON EXAM STUDY GUIDE:
Weekly Quizzes well answered to
pass(7)

Which Python function can only provide output to the user? - correct answer ✔✔print()



In the following line of Python code, what is the argument to the input function?



user_status = input("How are you today?") - correct answer ✔✔"How are you today?"



Which of the following items is a string? - correct answer ✔✔"E1E10"



In Python, you cannot perform mathematical calculations with variables of type float. - correct answer
✔✔False



Which of the following would display the number 9 as output? - correct answer ✔✔print(round(9.2))



Which of the following Python operators finds the remainder in a division? - correct answer ✔✔%



In order to use certain math functions such as trunc(), one must: - correct answer ✔✔Import the
functions from the math library



What is the difference between simple interest and compound interest? - correct answer ✔✔Compound
interest earns interest on interest received in previous periods, while simple interest does not



What is displayed with the following code is run?



my_balance = 100

, my_balance += 2 * 3 + 1

print (my_balance) - correct answer ✔✔107



In the future value formula:



F = I(1 + r)t



the variable I represents: - correct answer ✔✔The initial investment



When doing math in Python, it is helpful to use parentheses to - correct answer ✔✔eliminate ambiguity



Which of the following statements would raise the value of variable my_num to the power of 2? - correct
answer ✔✔1) my_num = my_num * my_num

2) my_num *= my_num

3) my_num = my_num**2



What is displayed when the following code is run?



a_dog = "fido"

two_dogs = a_dog + 1

print (two_dogs) - correct answer ✔✔Nothing, the code contains an error



The following code is intended to add one to the user's current age and then display it. What is the error
in the code?



current_age = input("Please enter your current age:")

current_age = current_age + 1

print("Your age next year will be " + str(current_age)) - correct answer ✔✔You must convert current_age
to a number before adding 1 to it

Información del documento

Subido en
17 de octubre de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.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.
StuviaExamHub
3.7
(91)
Vendido
499
Seguidores
356
Artículos
26308
Ú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