TransUnion
40+ Zeelab Pharmacy Interview Questions and Answers
Q1. How to implement string1 is equal to string2 without using inbuilt function. Create your own method/ function
Create a custom method to check if two strings are equal without using inbuilt functions.
Iterate through each character of both strings and compare them one by one.
If the lengths of the strings are different, they are not equal.
Return true only if all characters match, otherwise return false.
Q2. Time complexity of binary search and linear search. Which is better in which scenario
Binary search has O(log n) time complexity, better for sorted arrays. Linear search has O(n) time complexity, better for small unsorted arrays.
Binary search has a time complexity of O(log n) as it divides the array in half at each step. It is better for sorted arrays.
Linear search has a time complexity of O(n) as it checks each element one by one. It is better for small unsorted arrays.
For example, if you have a large sorted array, binary search would be more efficient. But f...read more
Q3. Two cats are rotating in circular motion. What is the probability that they won't collide
The probability that two cats rotating in circular motion won't collide depends on their speed, direction, and the size of the circle.
The probability of collision decreases as the size of the circle increases.
If the cats are rotating in opposite directions, the probability of collision decreases.
The probability of collision also depends on the speed of rotation of the cats.
Q4. Write a code to find if the string is present or not. Given character array of strings. {(ABC), (BCA), (DCA)} etc.
Code to find if a string is present in an array of strings.
Iterate through the array of strings and compare each string with the target string.
Return true if the target string is found, false otherwise.
Use a loop and conditional statement to implement the search algorithm.
Q5. COVID Impact on banking domain and how banks tackle it
Banks faced challenges due to COVID-19, but adapted quickly with digital solutions.
Banks had to quickly adapt to remote work and digital solutions to maintain operations.
Loan defaults increased, leading to stricter lending policies and increased focus on risk management.
Digital banking and contactless payments saw a surge in usage, leading to increased investment in these areas.
Banks also played a crucial role in distributing government relief funds to individuals and busines...read more
Q6. Difference between synchronous and asynchronous in multi threading.
Synchronous means tasks are executed one after the other, while asynchronous allows tasks to run independently.
Synchronous execution waits for each task to finish before moving on to the next one.
Asynchronous execution allows tasks to start and finish independently of each other.
Synchronous threading can lead to blocking if one task takes a long time to complete.
Asynchronous threading can improve performance by allowing multiple tasks to run concurrently.
Example: Synchronous ...read more
Q7. Mutex when do u use and example
Mutex is used to prevent multiple threads from accessing shared resources simultaneously.
Use mutex when multiple threads need to access shared resources to avoid data corruption
Example: Using mutex to protect a critical section of code where shared data is being modified
Mutex can be used in multithreading applications to ensure data integrity and prevent race conditions
Q8. Difference between binary and linear search
Binary search divides the array in half to find the target, while linear search checks each element one by one.
Binary search is more efficient for sorted arrays, while linear search works for unsorted arrays.
Binary search has a time complexity of O(log n), while linear search has a time complexity of O(n).
Example: Binary search - finding a word in a dictionary. Linear search - finding a name in a phone book.
Q9. Read Excel and how you would do Data Driven Testing
To perform Data Driven Testing, Excel can be used to store test data and read it using automation tools.
Create an Excel sheet with test data
Use automation tools like Selenium to read data from Excel
Iterate through rows and columns to fetch data
Use fetched data to perform tests
Update Excel sheet with test results
Q10. What is static intializer?
A static initializer is a block of code that is used to initialize the static variables of a class.
Static initializers are executed only once when the class is loaded into memory.
They are useful for initializing static variables that require complex calculations or external resources.
Static initializers are defined using the 'static' keyword followed by a block of code enclosed in curly braces.
Q11. How to to compare two objects with same class (equals & Hashcode methods)
To compare two objects with the same class, override the equals and hashCode methods in the class.
Override the equals method to compare the fields of the objects for equality.
Override the hashCode method to generate a unique hash code based on the object's fields.
Ensure that the equals and hashCode methods are consistent with each other.
Example: public class Person { private String name; private int age; }
Q12. What is memcpy.
memcpy is a function in C programming used to copy a block of memory from one location to another.
memcpy stands for memory copy.
It is used to copy a specified number of bytes from one memory location to another.
It is commonly used in C programming to copy arrays or structures.
Example: memcpy(destination, source, num_bytes);
Q13. What tools you use for API testing
I use tools like Postman, SoapUI, and Rest-Assured for API testing.
Postman for manual testing and automation
SoapUI for functional and load testing
Rest-Assured for automated testing in Java
Swagger for API documentation and testing
JMeter for load testing
Newman for running Postman collections in CI/CD pipelines
Q14. Difference between C and C++
C is a procedural programming language while C++ is an object-oriented programming language.
C is a subset of C++
C does not support classes and objects, while C++ does
C++ supports function overloading and operator overloading, which C does not
C++ has a more complex syntax compared to C
Q15. Write a pojo class to display the Employee Details,Pojo vs Bean
A Pojo class is a simple Java class that contains only private fields, public getters and setters, and no-arg constructor.
Create private fields for employee details like name, id, salary, etc.
Generate public getters and setters for each field.
Include a no-arg constructor in the class.
Example: public class Employee { private String name; private int id; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getId() { return i...read more
Q16. Java vs Javascript , Meaning of Synchronization in Java , Multihreading in Js
Java is a backend language, Javascript is a frontend language. Synchronization in Java ensures only one thread can access a resource at a time. JavaScript is single-threaded but can handle asynchronous operations using callbacks, promises, and async/await.
Java is a backend language used for server-side development, while JavaScript is a frontend language used for client-side scripting.
Synchronization in Java is a technique that allows only one thread to access a shared resour...read more
Q17. OOPS concepts in C++
OOPS concepts in C++ include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Creating new classes from existing ones, inheriting their attributes and methods.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q18. What things a working day constitute of?
A working day for a software developer typically involves coding, debugging, attending meetings, collaborating with team members, and researching new technologies.
Coding: Writing and testing code to develop software applications.
Debugging: Identifying and fixing errors or bugs in the code.
Meetings: Participating in team meetings to discuss project progress and updates.
Collaboration: Working with team members to solve problems and achieve project goals.
Research: Staying update...read more
Q19. how to treat multicollinearity, imbalanced dataset
Multicollinearity can be treated by using techniques like feature selection, PCA, or regularization. Imbalanced datasets can be addressed by resampling techniques like oversampling or undersampling.
For multicollinearity, consider using techniques like feature selection to remove redundant variables, PCA to reduce dimensionality, or regularization like Lasso or Ridge regression.
For imbalanced datasets, try resampling techniques like oversampling (e.g. SMOTE) to increase minori...read more
Q20. What is Mock MVC ?
Mock MVC is a testing framework for Spring MVC applications.
It allows testing of controllers without deploying the application.
It provides a simulated environment for testing.
It can be used to test request mappings, request parameters, and response body.
MockMvc is the main entry point for testing with Mock MVC.
Q21. How is your teaching?
My teaching is engaging, interactive and tailored to meet the needs of each student.
I use a variety of teaching methods to keep students engaged and interested.
I encourage participation and discussion in the classroom.
I adapt my teaching style to suit the learning needs of individual students.
I provide regular feedback and support to help students achieve their goals.
For example, I use case studies, group work, and multimedia resources to enhance learning.
Q22. Explain Cucumber Framework
Cucumber is a testing framework that supports Behavior Driven Development (BDD) by allowing tests to be written in a natural language format.
Cucumber is a tool used for acceptance testing and collaboration between technical and non-technical team members.
It uses the Gherkin language to define test scenarios in a human-readable format.
Tests written in Cucumber are organized into feature files, which contain scenarios and steps.
Each step in a scenario is mapped to a step defini...read more
Q23. How to use multithreading in Java?
Multithreading in Java allows multiple threads to execute concurrently, improving performance and responsiveness.
Create a class that implements the Runnable interface or extends the Thread class
Override the run() method to define the code to be executed in the thread
Use the start() method to start the thread
Use synchronization to prevent race conditions and ensure thread safety
Use the join() method to wait for a thread to finish before continuing execution
Q24. Annotations used in Springboot project
Annotations are used in Springboot project for various purposes such as dependency injection, mapping requests, and handling exceptions.
Annotations are used to provide metadata to the Spring framework.
Some commonly used annotations in Springboot are @Autowired, @RestController, @RequestMapping, @ExceptionHandler, and @Service.
Annotations help in reducing the boilerplate code and make the code more readable and maintainable.
Annotations can be used to configure the Spring conta...read more
Q25. What are the testing tools to be used?
Some common testing tools include Selenium, JIRA, Postman, and TestRail.
Selenium - for automated testing of web applications
JIRA - for bug tracking and project management
Postman - for API testing
TestRail - for test case management and reporting
Q26. How do you remove duplicates in sql
Use the DISTINCT keyword in a SELECT statement to remove duplicates in SQL.
Use the DISTINCT keyword in a SELECT statement to retrieve unique rows
Use GROUP BY clause with aggregate functions like COUNT() to remove duplicates based on specific columns
Use ROW_NUMBER() function with PARTITION BY clause to remove duplicates and keep only one row
Q27. Steps to improve process quality
Improving process quality involves identifying areas for improvement, implementing changes, and monitoring results.
Conduct a thorough analysis of the current process to identify areas for improvement
Implement changes based on the analysis, such as streamlining steps or adding quality checks
Monitor the results of the changes to ensure they are effective and sustainable
Continuously review and improve the process to maintain high quality standards
Provide training and support to ...read more
Q28. JPA Repository inbuilt methods
JPA Repository provides inbuilt methods for common database operations in Spring applications.
JPA Repository provides methods like save(), findById(), findAll(), deleteById(), etc.
These methods help in performing CRUD operations on entities without writing custom queries.
For example, userRepository.save(user) saves a user entity to the database.
Q29. QAs 7 tools or name anyone
The 7 tools of Quality Assurance are Check Sheets, Control Charts, Histograms, Pareto Charts, Scatter Diagrams, Flow Charts, and Cause-and-Effect Diagrams.
Check Sheets - used to collect data in a structured manner
Control Charts - used to monitor and control a process over time
Histograms - used to display data distribution
Pareto Charts - used to identify the most frequent problems or causes
Scatter Diagrams - used to identify a relationship between two variables
Flow Charts - us...read more
Q30. Logistic regression in detail
Logistic regression is a statistical model used to predict the probability of a binary outcome based on one or more predictor variables.
Logistic regression is used when the dependent variable is binary (0/1, True/False, Yes/No, etc.)
It estimates the probability that a given observation belongs to a particular category.
The output of logistic regression is a probability score between 0 and 1.
It uses the logistic function (sigmoid function) to map the output to the range [0, 1]....read more
Q31. Explain the different joins in SQL
Different types of joins in SQL include inner join, outer join, left join, and right join.
Inner join: Returns rows when there is a match in both tables
Outer join: Returns all rows when there is a match in one of the tables
Left join: Returns all rows from the left table and the matched rows from the right table
Right join: Returns all rows from the right table and the matched rows from the left table
Q32. Array traversal problem
Traverse an array of strings
Use a loop to iterate through each element in the array
Access each element using its index
Perform any necessary operations on each element
Q33. Explain oops concept in java
OOPs is a programming paradigm that uses objects to represent real-world entities.
Encapsulation: Hiding the implementation details of an object from the outside world
Inheritance: A mechanism that allows a new class to be based on an existing class
Polymorphism: The ability of an object to take on many forms
Abstraction: The process of hiding complex implementation details and showing only the necessary information
Example: A car object can have properties like color, model, and ...read more
Q34. Why transunion? Higher studies?
TransUnion is a leading global information and insights company that provides credit information and risk management solutions.
TransUnion is a trusted and established company in the field of credit information and risk management
They offer innovative solutions and technologies that align with my interests and skills
The opportunity for growth and learning at TransUnion is appealing to me
Their commitment to data security and privacy is commendable
Q35. What is regression
Regression is a software testing technique used to ensure that new code changes do not negatively impact existing functionality.
Regression testing involves re-running previously executed test cases to verify that new code changes have not introduced any new bugs or issues.
It helps ensure that the software continues to function correctly after modifications.
Regression testing can be automated to save time and effort.
Examples of regression testing tools include Selenium, JUnit,...read more
Q36. Lambda function in python
Lambda function in Python is an anonymous function that can have any number of arguments, but can only have one expression.
Lambda functions are defined using the lambda keyword.
They are commonly used for small, one-time tasks.
They can take any number of arguments, but can only have one expression.
Example: lambda x: x*2 will return the double of x.
Q37. Many types of troubleshooting
Troubleshooting involves identifying, analyzing, and solving problems in various IT systems and technologies.
Identifying the root cause of the issue
Analyzing system logs and error messages
Testing different solutions to resolve the problem
Documenting the troubleshooting process and solution
Implementing preventive measures to avoid similar issues in the future
Q38. What joins you used
I have used various types of joins including inner join, left join, right join, and full outer join.
Used inner join to retrieve records that have matching values in both tables
Utilized left join to retrieve all records from the left table and matching records from the right table
Employed right join to retrieve all records from the right table and matching records from the left table
Utilized full outer join to retrieve all records when there is a match in either left or right ...read more
Q39. Kubernetes and it’s use cases
Kubernetes is a container orchestration platform used for automating deployment, scaling, and management of containerized applications.
Kubernetes helps in automating the deployment, scaling, and management of containerized applications.
It provides features like service discovery, load balancing, storage orchestration, and automated rollouts and rollbacks.
Use cases include microservices architecture, CI/CD pipelines, auto-scaling applications, and hybrid cloud deployments.
Q40. Write query for joins
Query for joins in SQL to combine data from multiple tables
Use JOIN keyword to combine data from two or more tables based on a related column
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.id
Q41. Current Project
Currently working on analyzing customer data for a retail company.
Analyzing customer purchase history
Identifying trends and patterns in customer behavior
Segmenting customers based on demographics and purchase preferences
Q42. R u team player
Yes, I am a team player who values collaboration and communication with my colleagues.
I believe in open communication and actively listen to my team members' ideas and feedback.
I am willing to help out my team members when needed and work towards common goals.
I am adaptable and can easily adjust to different team dynamics and work styles.
I have successfully collaborated with cross-functional teams on various projects in the past.
Top HR Questions asked in Zeelab Pharmacy
Interview Process at Zeelab Pharmacy
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month