Quiz on Python Strings
FREE Online Courses: Elevate Your Skills, Zero Cost Attached - Enroll Now!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of the following operators are not allowed in Strings?
CorrectIncorrect -
Question 2 of 15
2. Question
- Which of the following is not allowed string creation in Python?
CorrectIncorrect -
Question 3 of 15
3. Question
What will be the output of the following code?
string=”Guess the output of this code”
print(string.split(‘t’))
CorrectIncorrect -
Question 4 of 15
4. Question
- Which of the following data types can consist of alphabets, numbers and symbols?
CorrectIncorrect -
Question 5 of 15
5. Question
Which of the following prints “Hello world\”
CorrectIncorrect -
Question 6 of 15
6. Question
- Which of the following is not an escape sequence allowed for strings?
CorrectIncorrect -
Question 7 of 15
7. Question
Find the output of the following code.
a=1234
a.isdigit()
CorrectIncorrect -
Question 8 of 15
8. Question
- Which of the following is a wrong way to print a string?
CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following is not a feature of a string?
CorrectIncorrect -
Question 10 of 15
10. Question
Find the output of the following code.
string=”Python”
print(string.endswith(”), end=” “)
print(string.startswith(‘ ‘))CorrectIncorrect -
Question 11 of 15
11. Question
Which of the following gives the output as False?
CorrectIncorrect -
Question 12 of 15
12. Question
- What will be the index of ‘o’ in ‘PythonGeeks’?
CorrectIncorrect -
Question 13 of 15
13. Question
Find the output of the following code.
str1=str(1234)
str2=’1234′
print(str1==str2,end=” “)
print(str1 is str2)CorrectIncorrect -
Question 14 of 15
14. Question
Which of the following gives the output as ‘EFG’ is str1=’abcdEFGhij’?
CorrectIncorrect -
Question 15 of 15
15. Question
Find the output of the following code.
print(‘wo’ in (string[3:8]*3))
CorrectIncorrect