Question
Consider the following Python code: import re text = "apple, banana, cherry. apple pie, banana split." pattern = r"\bapple\b|\bbanana\b" matches = re.findall(pattern, text) print(matches) What will be the output of this code?
More IT Operating System Questions
- Which command shows the last 20 lines and continues following appended lines?
- A Java method isLeaf(TreeNode node) is intended to check if a given node is a leaf in a binary tree. class TreeNode { int val; TreeNode left, ...
- To discard all pending data changes :
- Which of the following is NOT a characteristic of method overloading?
- Which of the following is a NoSQL database commonly used in Big Data?
- Which is connectionless and unreliable protocol
- In the classic bounded-buffer producer-consumer problem using a buffer of size N, to what value should the counting semaphore 'empty' (tracking free buffer...
- What is 'virtual memory' in the context of operating systems?
- What is the primary function of cache memory in a computer system?
- What is the purpose of the fork() system call in Unix-based operating systems?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)