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
- State true or false This scheduling algorithm is not ideal for time sharing systems.
- Which of the following problems is a classic example solved using backtracking?
- In Operating Systems, what is the difference between a process and a thread?
- Which layer is not in OSI but in TCP/IP
- What is a 'semaphore' in Operating Systems?
- The "state-space tree" is a conceptual tool often associated with backtracking. What does it represent?
- A page has 2^12-byte size and a logical address is 32 bits. How many bits identify the page number?
- In threat modeling, what does STRIDE stand for (one of the categories)? Pick the item that is NOT part of STRIDE.
- Which keyword is used in Java to indicate that a class is inheriting from another class?
- What is the main goal of the Dining Philosophers Problem in computer science?
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)