IQVIA
10+ Safar-e-Adab Interview Questions and Answers
Q1. Design a employee-Manager class. Write method to display employee organizational hierarchy like we see in Microsoft Teams Org tab
Design an employee-Manager class and write a method to display employee organizational hierarchy.
Create an Employee class with attributes like name, id, managerId, etc.
Create a Manager class that inherits from Employee class and has a list of employees under them.
Write a method to display the hierarchy using recursion.
Use a data structure like a dictionary to store the employees and their managers.
Consider edge cases like circular references and missing managers.
Q2. Get 7th highest salary without CTE
Get 7th highest salary without CTE
Use subquery to get distinct salaries
Order the salaries in descending order
Use LIMIT and OFFSET to get the 7th highest salary
Q3. Delegates, significance of it in C#
Delegates are a type-safe function pointers in C# used to encapsulate methods and pass them as arguments.
Delegates allow for event-driven programming
Delegates can be used to implement callbacks
Delegates can be chained together to create a multicast delegate
Delegates can be used to implement the observer pattern
Delegates can be used to implement the command pattern
Q4. diff types in string test types
Different types of string test types include equality, containment, length, case sensitivity, and pattern matching.
Equality test: comparing two strings to see if they are exactly the same
Containment test: checking if a string contains a specific substring
Length test: determining the length of a string
Case sensitivity test: checking if two strings are equal while considering case
Pattern matching test: using regular expressions to match a string pattern
Q5. What is JAVA in software
JAVA is a high-level programming language used for developing applications and software.
Object-oriented programming language
Platform-independent
Used for web development, mobile apps, enterprise software
Has a large standard library
Supports multithreading and networking
Q6. What is oracle in software
Oracle in software refers to Oracle Corporation, a multinational computer technology corporation known for its database management systems.
Oracle is a leading provider of relational database management systems (RDBMS).
It offers a wide range of products and services for data management, cloud applications, and more.
Oracle databases are widely used in enterprise applications for storing and managing data efficiently.
Examples of Oracle products include Oracle Database, Oracle Fu...read more
Q7. different arrays in string types
Arrays of string types are collections of strings stored in a single variable.
Arrays can be declared and initialized with string values like ['apple', 'banana', 'cherry'].
Access individual strings in the array using index like array[0] for 'apple'.
Perform operations like sorting or filtering on arrays of strings.
Q8. different strings in array texts
Comparing different strings in an array of texts.
Iterate through the array and compare each string with the others.
Use a nested loop to compare each pair of strings.
Consider using a hash map to store the frequency of each unique string for efficient comparison.
Q9. Different dS in software engineer
Different design patterns in software engineering
Creational patterns (e.g. Singleton, Factory)
Structural patterns (e.g. Adapter, Decorator)
Behavioral patterns (e.g. Observer, Strategy)
Q10. Code for printing algo
Code for printing algorithm in software development.
Use loops to iterate through the data to be printed.
Consider formatting options such as spacing and alignment.
Handle edge cases like empty input or invalid data.
Example: for (int i = 0; i < array.length; i++) { System.out.println(array[i]); }
Q11. Code for Hello World
Simple code to print 'Hello World'
Use a print statement to display 'Hello World'
In Python: print('Hello World')
In Java: System.out.println('Hello World')
Interview Process at Safar-e-Adab
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month