

MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
1. |
Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match= aaaa >. |
A. | >>> re.search( aaaa , alohaaaa , 0) |
B. | >>> re.match( aaaa , alohaaaa , 0) |
C. | >>> re.match( aaa , alohaaa , 0) |
D. | >>> re.search( aaa , alohaaa , 0) |
Answer» B. >>> re.match( aaaa , alohaaaa , 0) | |
2. |
________ matches the start of the string.
|
A. | ^ , $ |
B. | $ , ^ |
C. | $ , ? |
D. | ? , ^ |
Answer» B. $ , ^ | |
3. |
The character Dot (that is, . ) in the default mode, matches any character other than _____________ |
A. | caret |
B. | ampersand |
C. | percentage symbol |
D. | newline |
Answer» E. | |