
Asked in Bottomline
Help Bob Out! - Validating IFSC Code
Bob has just turned 18 and opened a bank account. Being inexperienced with banking, Bob needs your help to validate whether an IFSC code provided by his bank is valid.
The validity of a given IFSC (Indian Financial System) Code is determined by the following rules:
- The code should be exactly 11 characters long.
- The first four characters must be uppercase alphabets.
- The fifth character should be '0'.
- The last six characters must be alphanumeric.
Input:
The first line contains an integer 'T', representing the number of test cases or queries to be evaluated.
Each of the following 'T' lines contains a string 'S', representing the IFSC Code to be validated.
Output:
For each test case, output 'True' if the IFSC code is valid, otherwise output 'False'.
Each result should be printed on a new line.
Example:
Input:
2
ABCD0123456
ABCD123456
Output:
True
False
Constraints:
- 1 <= T <= 10
- 1 <= |S| <= 100
Note:
Focus only on implementing the function. Printing is already managed.

AnswerBot
4mo
Validate IFSC code based on given rules and return True or False for each test case.
Check if the code is 11 characters long.
Verify the first four characters are uppercase alphabets.
Ensure the fifth ch...read more
Help your peers!
Add answer anonymously...
Interview Questions Asked to Software Developer at Other Companies
Top Skill-Based Questions for Bottomline Software Developer
Algorithms Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
Web Development Interview Questions and Answers
250 Questions
Java Interview Questions and Answers
250 Questions
SQL Interview Questions and Answers
250 Questions
Software Development Interview Questions and Answers
250 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

