1.  5 or less

2.  exactly 5

3.  5 or more

4.  exactly 4

4
Correct Answer :

exactly 5


Explanation :
No Explanation available for this question

1.  ‘^’, ‘$’

2.  ‘$’, ‘^’

3.  ‘$’, ‘’

4.  ‘?’, ‘^’

4
Correct Answer :

‘^’, ‘$’


Explanation :
No Explanation available for this question

1.  >>> p = re.compile("d")>>> p.search("door")

2.  >>> p = re.escape(‘hello’)

3.  >>> p = re.subn()

4.  >>> p = re.purge()

4
Correct Answer :

>>> p = re.subn()


Explanation :
No Explanation available for this question

1.  [‘Hello’, ‘hello’, ‘hello.’]

2.  [‘Hello, ‘hello’, ‘hello’]

3.  [‘Hello’, ‘hello’, ‘hello’, ‘.’]

4.  [‘Hello’, ‘hello’, ‘hello’, ”]

4
Correct Answer :

[‘Hello’, ‘hello’, ‘hello’, ”]


Explanation :
No Explanation available for this question

1.  [“hello”]

2.  [ ]

3.  hello

4.  hello world

4
Correct Answer :

[ ]


Explanation :
No Explanation available for this question

1.  >>> re.search(‘aaaa’, “alohaaaa”, 0)

2.  >>> re.match(‘aaaa’, “alohaaaa”, 0)

3.  >>> re.match(‘aaa’, “alohaaa”, 0)

4.  >>> re.search(‘aaa’, “alohaaa”, 0)

4
Correct Answer :

>>> re.search(‘aaaa’, “alohaaaa”, 0)


Explanation :
No Explanation available for this question

1.  re.sub()

2.  re.pos()

3.  re.purge()

4.  re.subn()

4
Correct Answer :

re.purge()


Explanation :
No Explanation available for this question

1.  8

2.  32

3.  64

4.  256

4
Correct Answer :

256


Explanation :
No Explanation available for this question

1.  re.A

2.  re.U

3.  re.I

4.  re.X

4
Correct Answer :

re.I


Explanation :
No Explanation available for this question

1.  [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

2.  re.compile(‘hello’, re.VERBOSE)

3.  Error

4.  Junk value

4
Correct Answer :

re.compile(‘hello’, re.VERBOSE)


Explanation :
No Explanation available for this question

Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python