Answer the following statements true (T) or false (F)
1) String method capitalize returns a new string where the first character of each word
in the string is the one and only uppercase character in the word.
2) String method find searches a string for a substring and raises a ValueError exception if the string does not contain a substring.
3) Method rindex returns the highest index at which the specified substring begins.
4) Most string methods modify the string in-place.
5) Any string can be treated as a regular expression.
1) F
2) F
3) T
4) F
5) T
You might also like to view...
Which of the statements a), b) and c) below about the Anaconda Python distribution is false?
a. It’s easy to install on Windows, macOS and Linux. b. It supports the latest versions of Python, the IPython interpreter and Jupyter Notebooks. c. It includes other software packages and libraries commonly used in Python programming and data science, allowing students to focus on learning Python, computer science and data science, rather than software installation issues. d. All of the above statements are true.
Write a recursive method that returns the value of N! (N factorial) using the definition given in this chapter. Explain why you would not normally use recursion to solve this problem.
What will be an ideal response?
The key elements of the Kanban system as applied to software development are:
What will be an ideal response?
?Susan is working on a Microsoft PowerPoint 2016 slide that contains a chart from Microsoft Excel 2016. The chart is changed on a daily basis. However, Susan notices that the chart in the slide has not updated. To update the link, Susan should:
A. ?use the proofing options from the options menu in Backstage view. B. ?link the file to the slide again to update the file. C. ?manually update the chart using the Links dialog box. D. ?embed the chart into the PowerPoint slide.