0 of 15 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
The expression a{5} will match _____________ characters with the previous regular expression.
________ matches the start of the string.________ matches the end of the string.
What will be the output of the following Python code? re.split(‘\W+’, ‘Hello, hello, hello.’)
What will be the output of the following Python function? re.findall(“hello world”, “hello”, 1)
Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match=’aaaa’>.
Which of the following functions results in case insensitive matching?
Which module in Python supports regular expressions?
Which of the following creates a pattern object?
What does the function re.match do?
What does the function re.search do?
The difference between the functions re.sub and re.subn is that re.sub returns a _______________ whereas re.subn returns a __________________
Which of the following lines of code will not show a match?
What will be the output of the following Python code?
a=re.compile(‘0-9’)
a.findall(‘3 trees’)
a=re.compile(‘[0-9]+’)
a.findall(‘7 apples and 3 mangoes’)
What will be the output of the following Python code?
a=re.compile(‘[A-Za-z]+’)
a.findall(“It will rain today’)
