Societe Generale Global Solution Centre
Reliance Life Sciences Interview Questions and Answers
You are given a 2-D array 'MATRIX' of dimensions N x M, of integers. You need to return the spiral path of the matrix.
Example Of Spiral Path:
Input Format:
The first line contains an integer 'T' ...read more
Given two 1-dimensional arrays containing strings of lowercase alphabets, print the elements that are common in both the arrays i.e. the strings that are present in both ...read more
You are given a decimal number as input. You need to convert this number into its equivalent in the octal number system. The octal number system is the number system with a base value...read more
Given an M x N sized 2D array 'MATRIX', return the (i * i + j * j) value for elements in which the sum of cube of digits of the element is equal to the element itself. Here, 'i' is the row number ...read more
Q5. What is the difference between SQL and NoSQL? Why MongoDB and not MySQL .
SQL is a relational database while NoSQL is non-relational. MongoDB is preferred for scalability and flexibility.
SQL is table-based while NoSQL is document-based
SQL is structured while NoSQL is unstructured
SQL is vertically scalable while NoSQL is horizontally scalable
MongoDB is preferred for its ability to handle large amounts of unstructured data and its flexibility in schema design
MySQL is preferred for its strong ACID compliance and well-established community support
Q6. What is a linked list ? How does it works in Java ?
A linked list is a linear data structure where each element is a separate object with a pointer to the next element.
In Java, a linked list is implemented using the LinkedList class in the java.util package.
LinkedList class provides methods like add(), remove(), get(), etc. to manipulate the list.
Each element in the list is represented by a node object which contains the data and a reference to the next node.
Linked lists are useful when the size of the list is not known before...read more
Q7. Explain what is a deadlock ?how to avoid it ? What different algorithm are there.
A deadlock is a situation where two or more processes are unable to proceed due to a circular dependency.
Deadlock occurs when two or more processes are waiting for each other to release resources.
To avoid deadlock, use techniques like resource allocation graph, banker's algorithm, and deadlock prevention.
Resource allocation graph is a visual representation of resource allocation and can help identify potential deadlocks.
Banker's algorithm is a resource allocation and deadlock...read more
Q8. What are ACID Properties ?
ACID Properties are a set of properties that ensure database transactions are processed reliably.
ACID stands for Atomicity, Consistency, Isolation, and Durability.
Atomicity ensures that a transaction is treated as a single, indivisible unit of work.
Consistency ensures that a transaction brings the database from one valid state to another.
Isolation ensures that concurrent transactions do not interfere with each other.
Durability ensures that once a transaction is committed, it ...read more
Q9. Coding question - swap 2 numbers without using 3rd variable
Swap 2 numbers without using a third variable
Use bitwise XOR operation to swap two numbers without using a third variable
Example: a = 5, b = 7. a = a XOR b, b = a XOR b, a = a XOR b
Ensure to handle edge cases like swapping same numbers or zero
Top HR Questions asked in Reliance Life Sciences
Interview Process at Reliance Life Sciences
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month