ivy
20+ BankBazaar Interview Questions and Answers
Q1. 1. Javascript code to find the frequency of characters in a sentence. 2. Difference between dynamic and static intialization.
Javascript code to find frequency of characters in a sentence and difference between dynamic and static initialization.
To find frequency of characters in a sentence, create an object and iterate over each character in the sentence. Increment the count of each character in the object.
Dynamic initialization refers to initializing a variable at runtime, while static initialization refers to initializing a variable at compile time.
Example of dynamic initialization: int x = new in...read more
Q2. how do. you optimise a complex api what stratgies would you recommend
To optimize a complex API, consider reducing unnecessary data transfer, caching frequently accessed data, using efficient data structures, and implementing proper error handling.
Identify and remove unnecessary data transfer to reduce latency
Implement caching mechanisms for frequently accessed data to improve performance
Use efficient data structures and algorithms to optimize processing speed
Implement proper error handling to ensure robustness and reliability
Consider implement...read more
Q3. 1. Difference between .equals() and == function. 2. Fibonacci series 3. MultiThreading
Questions on Java basics - .equals() vs ==, Fibonacci series, and MultiThreading.
The .equals() function compares the values of two objects, while == compares their memory addresses.
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
MultiThreading is a technique where multiple threads of execution run concurrently within a single program.
Examples: 5 == 5 is true, but new String('hello') == new String('hello') is false.
Fibonacci ser...read more
Q4. To print second highest number in a integer list in java
To print second highest number in a list of integers in Java
Sort the list in descending order
Print the second element in the sorted list
Q5. 2nd largest number from array
Find the second largest number from an array of strings.
Convert the array of strings to an array of numbers.
Sort the array in descending order.
Return the second element of the sorted array.
Q6. What is the difference between == and === ?
The difference between == and === is that == checks for equality after type conversion, while === checks for equality without type conversion.
== is a loose equality comparison operator that performs type coercion before comparing two values.
=== is a strict equality comparison operator that does not perform type coercion before comparing two values.
Example: 5 == '5' will return true because the values are equal after type coercion, but 5 === '5' will return false because they ...read more
Q7. App life cycle with the explanation on App delegate method.
App life cycle involves various stages like launch, background, inactive, active, and termination. App delegate methods manage these stages.
App delegate methods are used to respond to important events in the app's life cycle, such as app launch, backgrounding, foregrounding, and termination.
Some of the key methods in the app delegate include application(_:didFinishLaunchingWithOptions:), applicationDidEnterBackground(_ :), applicationDidBecomeActive(_ :), and applicationWillT...read more
Q8. 1.what are oops?
OOPs (Object-Oriented Programming) is a programming paradigm that uses objects to represent and manipulate data.
OOPs is based on the concept of classes and objects.
It allows for encapsulation, inheritance, and polymorphism.
Objects have properties (attributes) and behaviors (methods).
Example: In a banking system, a class 'Account' can have objects representing individual bank accounts.
Q9. What are exception in java
Exceptions are events that occur during the execution of a program that disrupts the normal flow of instructions.
Exceptions are objects that are thrown at runtime when an abnormal condition occurs
They can be caught and handled using try-catch blocks
Java has a hierarchy of exception classes, with the base class being Throwable
Checked exceptions must be handled or declared in the method signature
Unchecked exceptions do not need to be handled or declared
Q10. add string until length is greater than 1
Concatenate strings in array until total length is greater than 1
Iterate through array and concatenate strings until length is greater than 1
Use a loop to keep adding strings until total length exceeds 1
Check total length after each concatenation to ensure it is greater than 1
Q11. Oops concepts , in practical example
Oops concepts are fundamental principles in object-oriented programming that help in organizing and designing code efficiently.
Encapsulation: Wrapping data and methods into a single unit (class). Example: Class Car with properties like make, model, and methods like start(), stop().
Inheritance: Reusing code from existing classes to create new classes. Example: Class SUV inheriting from class Car.
Polymorphism: Ability of objects to take on multiple forms. Example: Overloading a...read more
Q12. how to connect to db
To connect to a database, you need to use a database connection string with the appropriate credentials.
Use a database connection string with the necessary information such as server address, database name, username, and password.
Choose the appropriate database driver for the type of database you are connecting to (e.g. MySQL, PostgreSQL, MongoDB).
Establish a connection using a programming language-specific database library or framework (e.g. JDBC for Java, psycopg2 for Pytho...read more
Q13. String Reverse reserving white spaces.
Reverse a string while preserving white spaces
Iterate through the string from end to start
Keep track of white spaces and insert them in the reversed string
Example: 'hello world' -> 'dlrow olleh'
Q14. Comparator vs comparable
Comparator and Comparable are interfaces used for sorting objects in Java.
Comparable interface is used to define the natural ordering of objects.
Comparator interface is used to define custom ordering of objects.
Comparable interface has compareTo() method while Comparator interface has compare() method.
Comparable interface is implemented by the class whose objects need to be sorted while Comparator interface is implemented by a separate class.
Example: String class implements C...read more
Q15. URL Session using completions.
URL Session using completions is a way to handle network requests in iOS development.
URL Session is a class in iOS used for making network requests.
Completions are closures that are called when a network request completes.
Using completions allows for handling the response data or errors after a network request.
Example: URLSession.shared.dataTask(with: url) { (data, response, error) in }
Q16. view life cycle
View life cycle refers to the process of creating, updating, and destroying views in an Android application.
View life cycle includes methods like onCreate, onStart, onResume, onPause, onStop, and onDestroy.
These methods are called at different stages of a view's life cycle, allowing developers to perform actions like initializing UI components, saving instance state, and releasing resources.
For example, onCreate is called when a view is first created, onStart is called when t...read more
Q17. basic conepts of oops
Object-oriented programming concepts focus on classes, objects, inheritance, encapsulation, and polymorphism.
Classes: Blueprint for creating objects with attributes and methods.
Objects: Instances of classes that contain data and behavior.
Inheritance: Ability for a class to inherit attributes and methods from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability for objects of different classes to respond to th...read more
Q18. acid properties
ACID properties are a set of properties that guarantee reliable database transactions.
Atomicity: All operations in a transaction are completed successfully or none at all.
Consistency: Database remains in a consistent state before and after the transaction.
Isolation: Transactions are isolated from each other until they are completed.
Durability: Once a transaction is committed, changes are permanent and cannot be lost.
Example: Transfer of funds between two bank accounts must be...read more
Q19. Preferred location
I am open to opportunities in various locations, with a preference for cities with a strong tech industry.
Open to various locations
Preference for cities with strong tech industry
Q20. Sorting of arrav
Sorting an array of strings in alphabetical order.
Use a sorting algorithm like quicksort or mergesort.
Compare strings using built-in functions like strcmp in C++ or compareTo in Java.
Consider using a custom comparator function for sorting in languages like JavaScript.
Top HR Questions asked in BankBazaar
Interview Process at BankBazaar
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month