Optum
20+ DLF Interview Questions and Answers
You have been given a linked list of integers. Your task is to write a function that deletes a node from a given position, 'POS'.
Note :
Assume that the Indexing for the linked lis...read more
You are given a string ('STR') of length 'N'. Find the longest palindromic substring. If there is more than one palindromic substring with the maximum length, return the one with th...read more
You have been given two integer arrays/list(ARR1 and ARR2) of size N and M, respectively. You need to print their intersection; An intersection for this problem can be defined when both the ar...read more
You are given a certain format of books and their authors.
For example -
NameOfAuthor1 Book1 Book2
NameOfAuthor2 Book1
Your task is to print the given information in the following manner:
1. Nam...read more
We have to complete a total of ‘N’ works. Now, each work can be done on only one of the two special days given in 2 different arrays ‘day1’ and ‘day2’ respectively.
day1[i] denotes ...read more
Bubble Sort is one of the sorting algorithms that works by repeatedly swapping the adjacent elements of the array if they are not in sorted order.
You are given an unsorted array consisting of N non-...read more
You are given an array consisting of 'N' distinct positive integers and a number 'K'. Your task is to find the kth largest element in the array.
Example:
Consider the ar...read more
You are given an integer 'X' and your task is to find an integer 'Y' such that the bitwise XOR of the integers 'X' and 'Y' give the maximum possible value. Th...read more
You are given a graph with 'N' vertices numbered from '1' to 'N' and 'M' edges. You have to colour this graph in two different colours, say blue and red such that no two vertices connected by an...read more
How to measure 9 minutes using only a 4 minute and 7 minute hourglass.
Next, as I did python so these were questions were asked:
"Docstring, Lambda. Parse in python and Delete a file in python"
Q12. What is the difference between obj open and obj open by handle
obj open vs obj open by handle
obj open opens a file and returns a file object
obj open by handle opens a file using a file descriptor
obj open by handle is faster than obj open
obj open by handle is used when you already have a file descriptor
Q13. How to change the work object status of the multiple cases from pending to closed.
To change work object status of multiple cases from pending to closed.
Identify the cases that need to be closed
Update the status of each case to closed
Save the changes made to the cases
Use a loop to perform the above steps for multiple cases
Example: Use a query to identify all cases with pending status and update their status to closed
5th highest salary in a list of salaries.
Q15. What is the one thing you want to expereince?
I want to experience living in a different country and immersing myself in a new culture.
Traveling to a foreign country and learning about their customs and traditions
Trying new foods and experiencing different ways of life
Making friends with locals and exploring the local attractions
Q16. Difference between append to and append to map to
Append to adds an element to a list while append to map adds a key-value pair to a map.
Append to is used for lists while append to map is used for maps.
Append to adds an element to the end of the list while append to map adds a key-value pair to the map.
Append to map can also update the value of an existing key in the map.
Q17. Queue processor and job schedule difference
Queue processor manages tasks in a queue while job scheduler schedules tasks based on time or event triggers.
Queue processor manages tasks in a queue and processes them in a first-in, first-out (FIFO) order.
Job scheduler schedules tasks based on time or event triggers, and can prioritize tasks based on their importance.
Queue processor is typically used for real-time processing of tasks, while job scheduler is used for batch processing.
Examples of queue processors include Rabb...read more
Q18. Why blocked rules are carry forward
Blocked rules are carry forward to ensure consistency and prevent errors in future processing.
Blocked rules are rules that have been prevented from executing due to certain conditions not being met.
These rules are carried forward to ensure that they are not missed in future processing.
This helps to maintain consistency and prevent errors in the system.
For example, if a rule is blocked due to a missing data field, it will be carried forward until the missing field is filled in...read more
Q19. Difference between relational and non relational dbms
Relational DBMS stores data in tables with predefined relationships, while non-relational DBMS stores data in flexible, schema-less formats.
Relational DBMS uses structured query language (SQL) for querying data
Non-relational DBMS can store data in various formats like key-value pairs, document-based, graph databases
Relational DBMS ensures data integrity through normalization and constraints
Non-relational DBMS offers better scalability and flexibility for handling unstructured...read more
Q20. difference betweeen class,abstract class,interface in python
Class is a blueprint for creating objects, abstract class cannot be instantiated and can have abstract methods, interface is a contract for classes to implement certain methods.
Class is a blueprint for creating objects with attributes and methods.
Abstract class cannot be instantiated and can have abstract methods that must be implemented by subclasses.
Interface is a contract for classes to implement certain methods, but does not provide any implementation.
Q21. Use of superclass data transform check box
Superclass data transform checkbox is used to inherit data transform rules from a parent class.
When checked, the subclass will inherit the data transform rules from the superclass
This can save time and effort in creating duplicate data transform rules
Example: A superclass has a data transform rule to convert a date format, when the checkbox is checked in a subclass, it will also use the same rule
This checkbox is available in Pega platform for software development
Q22. What is the use of previliges
Privileges are permissions granted to users or processes to perform specific actions or access certain resources.
Privileges are used to control access to sensitive data or critical system resources.
They can be assigned to individual users or groups.
Examples include read, write, execute, and delete permissions.
Privileges can also be used to restrict access to certain functions or features within an application.
Without proper privileges, users may not be able to perform necessa...read more
Q23. what is binary search
Binary search is a search algorithm that finds the position of a target value within a sorted array.
Divide and conquer approach
Compares target value with middle element of array
If target value is smaller, search left half; if larger, search right half
Repeat process until target value is found or subarray is empty
Q24. What are closer in js
Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow for maintaining state in an asynchronous environment.
They are created whenever a function is defined within another function.
Closures can be used to create private variables and functions in JavaScript.
Q25. what is linked list
A linked list is a data structure consisting of nodes where each node contains a data field and a reference to the next node in the sequence.
Linked list elements are not stored in contiguous memory locations like arrays.
Each node in a linked list contains data and a reference to the next node.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to both the next and previous nodes).
Q26. find next max element
Find the next maximum element in an array of strings.
Iterate through the array and keep track of the current maximum element.
Compare each element with the current maximum and update if a larger element is found.
Return the next maximum element after the current maximum.
Q27. Write a code on debouncing
Debouncing is a technique used to limit the rate at which a function is called.
Use a timer to delay the execution of a function until a certain amount of time has passed without the function being called again.
Reset the timer each time the function is called to prevent it from being executed multiple times in quick succession.
Debouncing is commonly used in scenarios like handling button clicks to prevent multiple rapid clicks from triggering the function multiple times.
Q28. Longest Consecutive Sequence
Find the longest consecutive sequence in an array of integers.
Sort the array to make it easier to identify consecutive numbers.
Iterate through the array and keep track of the current consecutive sequence length.
Update the longest consecutive sequence length as you iterate through the array.
More about working at Optum
Interview Process at DLF
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month