IBM
20+ Bharuwa Solutions Interview Questions and Answers
Q1. Given string/sentence need to be reversed and the vowels need to be replaced with numbers from 1-9.In the reversed string replaced numbers should appear in descending order from left to right .If there are more...
read moreReverse a string and replace vowels with numbers in descending order. Restart numbering if more than 9 vowels.
Reverse the given string using built-in functions or loops
Create a dictionary to map vowels to numbers from 1-9
Iterate through the reversed string and replace vowels with numbers from the dictionary
If there are more than 9 vowels, restart numbering from 1
Sort the replaced numbers in descending order from left to right
Q2. What is inheritance and what are their types? Explain them.
Inheritance is a mechanism in object-oriented programming where a new class is derived from an existing class.
It allows the new class to inherit the properties and methods of the existing class.
There are two types of inheritance: single and multiple.
Single inheritance is when a class inherits from only one parent class.
Multiple inheritance is when a class inherits from multiple parent classes.
For example, a class 'Car' can inherit from a parent class 'Vehicle' which has prope...read more
Q3. What are polymorphism, abstraction, and encapsulation?
Polymorphism, abstraction, and encapsulation are three fundamental concepts in object-oriented programming.
Polymorphism allows objects of different classes to be treated as if they are objects of the same class.
Abstraction is the process of hiding complex implementation details and showing only the necessary information to the user.
Encapsulation is the practice of keeping the internal workings of an object hidden from the outside world.
Examples of polymorphism include method ...read more
Q4. From Java 1. What is class and object? 2. Describe OOPS concept 3. Details from Exception Handling Some basic questions ask from DBMS
Questions related to Java and DBMS concepts
Class is a blueprint for creating objects, while object is an instance of a class
OOPS concepts include encapsulation, inheritance, polymorphism, and abstraction
Exception handling is a mechanism to handle runtime errors and prevent program crashes
DBMS questions may include SQL queries, normalization, and database design
Q5. What are the types of clouds?
There are three types of clouds: public, private, and hybrid.
Public clouds are owned and operated by third-party providers, and the infrastructure is shared among multiple organizations.
Private clouds are dedicated to a single organization and can be located on-premises or hosted by a third-party provider.
Hybrid clouds combine public and private clouds, allowing organizations to take advantage of the benefits of both.
Examples of public clouds include Amazon Web Services (AWS)...read more
Q6. Have you heard about the Hybrid cloud?
Yes, Hybrid cloud is a combination of public and private cloud infrastructure.
Hybrid cloud allows organizations to leverage the benefits of both public and private cloud infrastructure.
It provides flexibility, scalability, and cost-effectiveness.
For example, an organization can use a public cloud for non-sensitive data and a private cloud for sensitive data.
Hybrid cloud also allows for workload portability and disaster recovery options.
It requires proper planning and manageme...read more
Q7. Replace a sub-string in a string.
To replace a sub-string in a string, use the replace() method.
Use the replace() method with the old sub-string and new sub-string as arguments.
The replace() method only replaces the first occurrence of the sub-string by default.
To replace all occurrences, use a regular expression with the global flag.
Example: 'hello world'.replace('world', 'universe') returns 'hello universe'.
Example: 'hello world'.replace(/world/g, 'universe') returns 'hello universe'.
Q8. What is the keyword for function? What project I did in my college final year?
The keyword for function in programming is 'function'.
The keyword 'function' is used to define a function in programming languages like JavaScript.
Functions are blocks of code that perform a specific task and can be called multiple times within a program.
Q9. what is primary key and foreign key
Primary key uniquely identifies each record in a table, while foreign key establishes a link between two tables.
Primary key ensures data integrity by enforcing uniqueness of each record
Foreign key establishes a relationship between tables by referencing the primary key of another table
Primary key can be a single column or a combination of columns
Foreign key helps maintain referential integrity in a database
Q10. Projects done during engineering, Java and C
During my engineering, I worked on several projects using Java and C.
Developed a Java-based web application for a college project
Created a C program to simulate a traffic signal system
Implemented a Java program to analyze data from a weather station
Collaborated with a team to develop a C++ program for a hackathon
Worked on a Java-based project to automate a library management system
Q11. what is inheritance and polymorphism
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class. Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Inheritance allows a class to inherit attributes and methods from another class, promoting code reusability.
Polymorphism allows objects of different classes to be treated as objects of a common superclass, enabling flexibility and extensibility.
Example of i...read more
Q12. What is object oriented programming?
Object oriented programming is a programming paradigm based on the concept of objects, which can contain data and code to manipulate that data.
OOP focuses on creating objects that interact with each other to solve problems
Encapsulation, inheritance, and polymorphism are key principles of OOP
Examples of OOP languages include Java, C++, and Python
Q13. Prime number In SQL inner joins and operators
Prime numbers are numbers greater than 1 that are only divisible by 1 and themselves.
Prime numbers are essential in cryptography for generating secure keys.
In SQL, you can use a prime number as a condition in a WHERE clause to filter data.
Operators like % (modulo) can be used to check if a number is prime in SQL queries.
Q14. what is normalization?
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization involves breaking down data into smaller, more manageable tables.
It helps in reducing data redundancy by storing data in a structured way.
Normalization ensures data integrity by minimizing the chances of inconsistencies.
There are different levels of normalization such as First Normal Form (1NF), Second Normal Form (2NF), and Third Normal Form (3NF).
Q15. how do overcome normalization?
Normalization can be overcome by diversifying data sources, using different algorithms, and considering outliers.
Diversify data sources to prevent bias towards a specific type of data.
Use different algorithms to compare results and identify any discrepancies.
Consider outliers and determine if they should be included or removed from the analysis.
Q16. what are classes and objects
Classes are blueprints for creating objects in object-oriented programming. Objects are instances of classes with their own unique attributes and behaviors.
Classes define the properties and behaviors that objects of that class will have
Objects are instances of classes that contain data (attributes) and methods (behaviors)
Classes can inherit properties and behaviors from other classes through inheritance
Example: Class 'Car' may have properties like 'color' and 'model', and met...read more
Q17. What is DBMS and RDBMS?
DBMS stands for Database Management System, while RDBMS stands for Relational Database Management System.
DBMS is a software system that allows users to define, create, maintain and control access to the database.
RDBMS is a type of DBMS that stores data in a structured format using rows and columns.
RDBMS uses SQL (Structured Query Language) for accessing and managing the database.
Examples of RDBMS include MySQL, Oracle, SQL Server, and PostgreSQL.
Q18. difference between list and tuple
List is mutable, tuple is immutable in Python.
List can be modified after creation, tuple cannot
List uses square brackets [], tuple uses parentheses ()
List is used for collections of items that may change, tuple for fixed collections
Q19. Proficiency in English
Proficient in English with excellent communication skills.
Native English speaker with strong grammar and vocabulary.
Experience communicating complex technical concepts to non-technical stakeholders.
Ability to write clear and concise documentation.
Comfortable presenting to large groups and leading meetings.
Experience working in multicultural teams and adapting communication style accordingly.
Q20. Pros and cons of social media
Social media has pros and cons that impact individuals and society.
Pros: Connect with others, share information, build communities
Cons: Privacy concerns, cyberbullying, misinformation spread
Example: Pros - Social media platforms like Facebook and Twitter allow users to connect with friends and family, share updates and news, and join groups with similar interests.
Example: Cons - Social media can also lead to privacy issues, as personal information may be shared without consen...read more
Q21. Reverse word of a sentence
Reverse the words in a sentence
Split the sentence into words
Reverse the order of the words
Join the reversed words back into a sentence
Q22. Oops concept in java
Oops concept in Java
Object-oriented programming paradigm
Encapsulation, Inheritance, Polymorphism, Abstraction
Classes and Objects
Access Modifiers
Interfaces and Abstract Classes
Example: Car class with properties and methods
Q23. Merge Sort technique
Merge Sort is a divide and conquer algorithm that divides the input array into two halves, sorts them, and then merges them back together.
Divide the array into two halves
Recursively sort each half
Merge the sorted halves back together
More about working at IBM
Top HR Questions asked in Bharuwa Solutions
Interview Process at Bharuwa Solutions
Top Associate Systems Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month