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?Solution
Correct Answer: A (The \b word boundary ensures only whole words "apple" and "banana" are matched. re.findall returns all non-overlapping matches.)
What value should come in the place of (?) in the following number series?
178, ?, 692, 861, 982, 1063150 - 10 × ( 7 - 2)/4 × 8 = ?
...13, 41, 69, ?, 125, 153Â
580 557 528 497 ? 419
Find the missing character.
12, 14, 20, 32, ?, 82Â
31, 60, 118, 234, 466, ?
11, ? 220,  660, 1320,  1320Â
11          20          ?             64          112        192
...What will come in place of the question mark (?) in the following series?
22, 25, 30, 37, 48, ?