D522 QUESTIONS WITH CORRECT
ANSWERS 2026-2027 A+ GRADED
Title() - CORRECT ANSWER -capitalizes first letter of each word
Is lower() - CORRECT ANSWER -determines if the string consists of lowercase characters
count() - CORRECT ANSWER -totals number of times an argument is found within a predefined
value
myNumbers = [1, 4.8, 7, 9.2, 3, 0] - CORRECT ANSWER -creates a list
mylist[0] - CORRECT ANSWER -accesses first element from a list
mylist[-1] - CORRECT ANSWER -accesses last element from a list
mylist[1:3] - CORRECT ANSWER -slices list including second and third element
mylist[:3] - CORRECT ANSWER -slices list beginning with first element and including through the
third element. Index position 3 is not included in selection.
mylist[3:] - CORRECT ANSWER -slices list beginning with fourth element and include remainder
of the list
sorted(listname, reverse=True) - CORRECT ANSWER -returns copy of list ordered largest to
smallest
ANSWERS 2026-2027 A+ GRADED
Title() - CORRECT ANSWER -capitalizes first letter of each word
Is lower() - CORRECT ANSWER -determines if the string consists of lowercase characters
count() - CORRECT ANSWER -totals number of times an argument is found within a predefined
value
myNumbers = [1, 4.8, 7, 9.2, 3, 0] - CORRECT ANSWER -creates a list
mylist[0] - CORRECT ANSWER -accesses first element from a list
mylist[-1] - CORRECT ANSWER -accesses last element from a list
mylist[1:3] - CORRECT ANSWER -slices list including second and third element
mylist[:3] - CORRECT ANSWER -slices list beginning with first element and including through the
third element. Index position 3 is not included in selection.
mylist[3:] - CORRECT ANSWER -slices list beginning with fourth element and include remainder
of the list
sorted(listname, reverse=True) - CORRECT ANSWER -returns copy of list ordered largest to
smallest