Add office photos
Bank of America logo
Employer?
Claim Account for FREE

Bank of America

4.2
based on 3.1k Reviews
Video summary
Filter interviews by
Software Engineer
Fresher
Clear (2)

Bank of America Software Engineer Interview Questions and Answers for Freshers

Updated 28 Nov 2024

Q1. Write a program that converts the alternate letters of a sentence into uppercase, whitespace excluded

Ans.

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

Add your answer
right arrow

Q2. Write a program to print the top five students in a classroom, including edge cases

Ans.

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

Add your answer
right arrow

Q3. Explain your approach to solving balanced parenthesis program

Ans.

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

Add your answer
right arrow

Q4. Different ways to create a table in python

Ans.

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

Add your answer
right arrow
Discover Bank of America interview dos and don'ts from real experiences

Q5. Program to check if the given string is palindrome

Ans.

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.

Add your answer
right arrow

Q6. Program to return Fibonacci series

Ans.

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

Add your answer
right arrow

Q7. difference between sql and nosql

Ans.

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

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Bank of America Software Engineer for Freshers

based on 2 interviews
Interview experience
4.0
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

Cybage Logo
3.8
 • 57 Interview Questions
Samsung Logo
3.9
 • 40 Interview Questions
Coforge Logo
3.3
 • 17 Interview Questions
View all
Recently Viewed
INTERVIEWS
Kalpataru Projects International
No Interviews
CAMPUS PLACEMENT
KIIT University, Bhuvaneshwar
INTERVIEWS
LTIMindtree
No Interviews
INTERVIEWS
Allied Blenders & Distillers
No Interviews
INTERVIEWS
Mphasis
No Interviews
INTERVIEWS
Kalpataru Projects International
No Interviews
INTERVIEWS
Kumar Organic Products
No Interviews
INTERVIEWS
Biocon Biologics
No Interviews
REVIEWS
RineX
No Reviews
SALARIES
Agumentik Software
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter