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

Python Part 1 Exam Questions (1-65) , with Complete Solutions

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

Python Part 1 Exam Questions (1-65) , with Complete Solutions 1. What is the output of print(list[2:]) if list=[ 'abcd',786, 2.23]? - ANSWERS-[2.23] 2. What is the output of print (tinylist * 2) if tinylist = [123, 'john']? - ANSWERS-[123, 'john',123, 'john'] 3. Which of the following is correct about tuples in Python? - ANSWERS-*** 4. What is the output of print(myTuple) if myTuple = ('abcd',786,2.23)? - ANSWERS-('abcd',786,2.23) 5. What is the output of print(myTuple[1:3]) if myTuple=('abcd',786,2.23)? - ANSWERS-(786, 2.23) 6. What is the output of print (myTuple[0]) if myTuple = ('abcd',786,2.23)? - ANSWERS-abcd 7. Which function obtains all the keys from a dictionary? - ANSWERS-keys() 8. Which function obtains all the values from a dictionary? - ANSWERS-values() 9. Which function converts a string to an int ? - ANSWERS-int("string") 10. Which function converts a string to a float ? - ANSWERS-float("string")

Vista previa del contenido

Python Part 1 Exam Questions (1-65) ,
with Complete Solutions6

1. What is the output of print(list[2:]) if list=[ 'abcd',786, 2.23]? - ANSWERS-[2.23]



2. What is the output of print (tinylist * 2) if tinylist = [123, 'john']? - ANSWERS-[123, 'john',123,
'john']



3. Which of the following is correct about tuples in Python? - ANSWERS-***



4. What is the output of print(myTuple) if myTuple = ('abcd',786,2.23)? - ANSWERS-
('abcd',786,2.23)



5. What is the output of print(myTuple[1:3]) if myTuple=('abcd',786,2.23)? - ANSWERS-(786,
2.23)



6. What is the output of print (myTuple[0]) if myTuple = ('abcd',786,2.23)? - ANSWERS-abcd



7. Which function obtains all the keys from a dictionary? - ANSWERS-keys()



8. Which function obtains all the values from a dictionary? - ANSWERS-values()



9. Which function converts a string to an int ? - ANSWERS-int("string")



10. Which function converts a string to a float ? - ANSWERS-float("string")

, 11. Which of the following data types are supported in Python? - ANSWERS-The following data
type are *Supported*:

1 - Numbers

2 - String

3 - List

4 - Tuples

5 - Dictionary



12. Which of the following data types are *not* supported in Python? - ANSWERS-Slice



13. What is the output of print(str) if str = 'Hello World!'? - ANSWERS-Hello World!



14. What is the output of print(str[0]) if str = 'Hello World!'? - ANSWERS-H



15. What is the output of print(str[2:5]) if str = 'Hello World!'? - ANSWERS-llo



16. What is the output of print(str[2:]) if str = 'Hello World!'? - ANSWERS-llo World!



17. What is the output of print(str * 2) if str = 'Hello World!'? - ANSWERS-Hello World!Hello
World!



18. What is the output of print(list) if list=[ 'abcd', 786 , 2.23]? - ANSWERS-['abcd', 786 , 2.23]



19. What is the output of print(list[0]) if list =[ 'abcd', 786 , 2.23]? - ANSWERS-abcd



20. What is the output of print(list[1:3]) if list=[ 'abcd', 786 , 2.23]? - ANSWERS-[786, 2.23]

Información del documento

Subido en
15 de noviembre de 2025
Número de páginas
6
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$10.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.
Bensuda
3.7
(168)
Vendido
921
Seguidores
445
Artículos
23192
Ú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