PYTHON QUIZ 4

1
Created on By Sirjana GhimireAcharya

PYTHON QUIZ 4

1 / 10

1. What is the output of the following code?

for x in range(0.5, 5.5, 0.5):
print(x)

2 / 10

2. What is the result of print(type([]) is list)

3 / 10

3. What is the data type of print(type(0xFF))

4 / 10

4. What is the data type of the following

aTuple = (1, 'Jhon', 1+3j)
print(type(aTuple[2:3]))

5 / 10

5. What is a correct syntax to return the first character in a string?

6 / 10

6. Which method can be used to remove any whitespace from both the beginning and the end of a string?

7 / 10

7. Which method can be used to return a string in upper case letters?

8 / 10

8. Which method can be used to replace parts of a string?

9 / 10

9. Which operator can be used to compare two values?

10 / 10

10. Which of these collections defines a LIST?

Your score is

The average score is 0%

0%