Home / MCQ Bank / Computer
Computer Regular Expressions In Python Difficulty: Medium

The difference between the functions re.sub and re.subn is that re.sub returns a . . . . . . . . whereas re.subn returns a . . . . . . . .

Select the correct option to test your answer:

More Computer Questions

Which of these data member of HttpResponse class is used to store the response from an http server? On a class B network, how many subnets are available with a subnet mask of 248? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str = "HelloWorld!"; cout<<str.capacity(); cout<<str.size(); return 0; } What will be the output of the following C code? #include <stdio.h> int x = 0; void main() { int *ptr = &x; printf("%p\n", ptr); x++; printf("%p\n ", ptr); } What is the functionality of the following piece of code? Select the most appropriate. public void function(int data) { int flag = 0; if( head != null) { Node temp = head.getNext(); while((temp != head) && (!(temp.getItem() == data))) { temp = temp.getNext(); flag = 1; break; } } if(flag) System.out.println("success"); else System.out.println("fail"); }