Python Exam Questions (1-65) , PART 1 with 100% Correct Answers
Python Exam Questions (1-65) , PART 1 with 100% Correct Answers 1. Which of the following data types are supported in Python? - Correct Answer️️ -The following data type are *Supported*: 1 - Numbers 2 - String 3 - List 4 - Tuples 5 - Dictionary 2. Which of the following data types are *not* supported in Python? - Correct Answer️️ -Slice 3. What is the output of print(str) if str = 'Hello World!'? - Correct Answer️️ -Hello World! 4. What is the output of print(str[0]) if str = 'Hello World!'? - Correct Answer️️ -H 5. What is the output of print(str[2:5]) if str = 'Hello World!'? - Correct Answer️️ -llo 6. What is the output of print(str[2:]) if str = 'Hello World!'? - Correct Answer️️ -llo World! 7. What is the output of print(str * 2) if str = 'Hello World!'? - Correct Answer️️ -Hello World!Hello World!LearnSafe PDF 8. What is the output of print(list) if list=[ 'abcd', 786 , 2.23]? - Correct Answer️️ - ['abcd', 786 , 2.23] 9. What is the output of print(list[0]) if list =[ 'abcd', 786 , 2.23]? - Correct Answer️️ - abcd 10. What is the output of print(list[1:3]) if list=[ 'abcd', 786 , 2.23]? - Correct Answer️️ - [786, 2.23] 11. What is the output of print(list[2:]) if list=[ 'abcd',786, 2.23]? - Correct Answer️️ - [2.23] 12. What is the output of print (tinylist * 2) if tinylist = [123, 'john']? - Correct Answer️️ - [123, 'john',123, 'john'] 13. Which of the following is correct about tuples in Python? - Correct Answer️️ -*** 14. What is the output of print(myTuple) if myTuple = ('abcd',786,2.23)? - Correct Answer️️ -('abcd',786,2.23) 15. What is the output of print(myTuple[1:3]) if myTuple=('abcd',786,2.2
Geschreven voor
- Instelling
- Python Programming
- Vak
- Python Programming
Documentinformatie
- Geüpload op
- 17 juni 2024
- Aantal pagina's
- 6
- Geschreven in
- 2023/2024
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
python exam questions 1 65 part 1 with 100 co
Ook beschikbaar in voordeelbundel