Which of the following data types in Python is primarily used to store an ordered collection of items?
What is the outcome if an index outside the valid range is specified when accessing a character in a string in Python?
Which of the following correctly demonstrates the use of negative indexing to access characters in a string?
Which of the following operations can be performed on strings in Python?
What is the primary operator used for concatenating strings in Python?
What happens to the original strings after a concatenation operation in Python?
What will be the output of the code snippet `str1 = 'Python'; result = str1 * 3; print(result)`?
Which of the following statements about the 'in' operator in Python is correct?
What does the 'not in' operator return when the substring is found within the main string?
What will the expression str1[::2] return if str1 is defined as "Hello World!"?
Which of the following statements accurately describes how a for loop traverses a string?
What is a key difference between using a while loop and a for loop for string traversal?
What built-in function in Python can be used to count the occurrences of a specific character in a string?
Which of the following statements correctly describes a palindrome?