
Bank of America


Bank of America Software Engineer Interview Questions and Answers for Freshers
Q1. Write a program that converts the alternate letters of a sentence into uppercase, whitespace excluded
Program to convert alternate letters of a sentence to uppercase, excluding whitespace
Iterate through each character of the sentence
Check if the character is a letter and if its index is odd
Convert the letter to uppercase if conditions are met
Q2. Write a program to print the top five students in a classroom, including edge cases
Program to print top five students in a classroom, handling edge cases
Create a list of students with their grades
Sort the list in descending order based on grades
Print the top five students, handling cases where there are less than five students or ties in grades
Q3. Explain your approach to solving balanced parenthesis program
I approach solving balanced parenthesis program by using a stack data structure.
Use a stack to keep track of opening parentheses
Iterate through the input string and push opening parentheses onto the stack
When a closing parenthesis is encountered, pop from the stack and check if it matches the closing parenthesis
If stack is empty at the end and all parentheses are matched, the string is balanced
Q4. Different ways to create a table in python
Different ways to create a table in Python include using pandas, sqlite3, and SQLAlchemy libraries.
Using pandas library to create a table from a dictionary or list of lists
Using sqlite3 library to create a table in a SQLite database
Using SQLAlchemy library to create a table in a SQL database
Q5. Program to check if the given string is palindrome
A program to check if a given string is a palindrome.
Create a function that takes a string as input.
Reverse the string and compare it with the original string.
If they are the same, then the string is a palindrome.
Example: 'racecar' is a palindrome.
Example: 'hello' is not a palindrome.
Q6. Program to return Fibonacci series
A program to return Fibonacci series using recursion or iteration
Use recursion to generate Fibonacci series
Use iteration to generate Fibonacci series
Handle edge cases like negative input or input of 0 or 1
Example: Fibonacci series up to 10 - 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
Q7. difference between sql and nosql
SQL is a relational database management system, while NoSQL is a non-relational database management system.
SQL databases are table-based, with a predefined schema, while NoSQL databases are document-based, key-value pairs, graph databases, or wide-column stores.
SQL databases are good for complex queries and transactions, while NoSQL databases are better for large amounts of data and scalability.
Examples of SQL databases include MySQL, Oracle, and PostgreSQL, while examples of...read more
Top HR Questions asked in Bank of America Software Engineer for Freshers
Interview Process at Bank of America Software Engineer for Freshers

Top Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

