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

Fundamentals of Python First Programs, Lambert - Complete test bank - exam questions - quizzes (updated 2022)

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

Description: - Test bank with practice exam questions and their answers - Compatible with different editions (newer and older) - Various difficulty levels from easy to extremely hard - The complete book is covered (All chapters) - Questions you can expect to see: Multiple choice questions, Problem solving, essays, Fill in the blanks, and True/False. - This test bank is a great tool to get ready for your next test *** If you have any questions or special request feel free to send a private message

Vista previa del contenido

1. Python programs require two or more modules.
a. True

b. False

ANSWER: False



2. The main python module contains the starting point of execution.
a. True

b. False

ANSWER: True



3. You can use the # symbol to create a multiline comment.
a. True

b. False

ANSWER: False



4. A docstring is another term for a Python variable that holds a string constant.
a. True

b. False

ANSWER: False



5. The keyword while means the same thing as While in Python.
a. True

b. False

ANSWER: False



6. In Python, _MyVar15 is a valid variable name.
a. True

, b. False

ANSWER: True



7. To make your program more secure, use obscure variable names such as xz14dEEa.
a. True

b. False

ANSWER: False



8. The keywords True and False are floating point values.
a. True

b. False

ANSWER: False



9. If you print the string "Hello, it is a very \nice day", there will be two lines of output.
a. True

b. False

ANSWER: True



10. Use the comparison operator != to check if one value is not equal to another value.
a. True

b. False

ANSWER: True



11. In Python, a variable containing the value 5 will evaluate as true if used with the and
logical operator.
a. True

b. False

ANSWER: True

,12. The input function returns a numeric value by default.
a. True

b. False

ANSWER: False



13. The print function outputs a newline by default before its arguments are printed.
a. True

b. False

ANSWER: False



14. Standard functions and Python's library functions check the types of their arguments
when the function is called.
a. True

b. False

ANSWER: True



15. It is good practice to import all names from a module using the * operator.
a. True

b. False

ANSWER: False



16. Indenting code that should be executed when an if statement evaluates as true makes
your program easier to read, but the indentation is not necessary.
a. True

b. False

ANSWER: False

, 17. The while statement uses the syntax while <Boolean expression>: and is the preferred
control statement to iterate over a definite range of sequences.
a. True

b. False

ANSWER: False



18. Strings are compared using ASCII ordering.
a. True

b. False

ANSWER: True



19. Strings are mutable objects, which means you can replace their contents.
a. True

b. False

ANSWER: False



20. You can use the slice operator to obtain a substring from a string.
a. True

b. False

ANSWER: True



21. A literal representation of a list is made using parentheses to enclose items separated
by commas.
a. True

b. False

ANSWER: False

Libro relacionado
 image
Editorial: 2018 ISBN: 9781337671019 Edición: Desconocido

Información del documento

Subido en
17 de marzo de 2022
Número de páginas
155
Escrito en
2021/2022
Tipo
Examen
Contiene
Preguntas y respuestas
$40.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.
TestBanks2022
4.0
(355)
Vendido
2200
Seguidores
1702
Artículos
2238
Última venta
16 horas 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