PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
SALE
This blog is available for sale. More than 150 published articles. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Which of the following statements regarding the output of the function re.match is incorrect?
A. 'pq*' will match 'pq'
B. 'pq?' matches 'p'
C. 'p{4}, q' does not match 'pppq'
D. 'pq+' matches 'p'
Show Answer
Next Question
Correct Answer:
D
Explanation: All of the above statements are correct except that 'pq+' match 'p'. 'pq+' will match 'p' followed by any non-zero number of q's, but it will not match 'p'.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap