Question

You are designing a function that takes a list of integers and returns a new list containing only the even numbers. What is a good critical thinking step before writing the code?

A Decide on the exact variable names.
B Consider edge cases like an empty list or a list with no even numbers.
C Immediately write the most complex solution.
D Assume the input list will always be sorted.
E Focus only on the positive numbers.
Practice Next

Hey! Ask a query

🎓
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)