UnitedHealth
Randstad Interview Questions and Answers
Q1. What are architectural, structural, behavioural design patterns? Why we need them?
Architectural, structural, and behavioral design patterns are reusable solutions to common software design problems.
Architectural patterns define the overall structure of a software system
Structural patterns describe how objects and classes can be combined to form larger structures
Behavioral patterns focus on communication between objects and how they operate together
Design patterns help to improve software quality, maintainability, and scalability
Examples include MVC, Single...read more
Q2. What is Is Relationship and As Relationship in oops?
Is Relationship and As Relationship are two types of relationships in object-oriented programming.
Is Relationship is a type of relationship where one class is a subset of another class.
As Relationship is a type of relationship where one class is a type of another class.
Is Relationship is denoted by a solid line with a closed arrowhead pointing towards the superclass.
As Relationship is denoted by a dotted line with an open arrowhead pointing towards the superclass.
Example of I...read more
Q3. Explain override. Why we need virtual?
Override is used to provide a new implementation of a method in a subclass. Virtual is needed to allow the method to be overridden.
Override is used to change the behavior of a method in a subclass
Virtual is used to allow the method to be overridden in a subclass
Without virtual, a subclass cannot override a method from its parent class
Override is used to implement polymorphism in object-oriented programming
Q4. Write a program to sort the array and remove duplicates.
Program to sort and remove duplicates from an array.
Use built-in sort() method to sort the array in ascending order.
Loop through the sorted array and remove duplicates using filter() method.
Return the sorted and duplicate-free array.
Q5. What is multi threading
Multi threading is the ability of a program to perform multiple tasks concurrently.
It allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include web servers handling multiple requests simultaneously and video games rendering graphics while processing user input
Q6. What is extend keyword
The extend keyword is used to add properties and methods to an existing object.
Used in JavaScript to add properties and methods to an object
Can be used to inherit properties and methods from a parent object
Syntax: Object.assign(target, ...sources)
Example: const obj1 = {a: 1}; const obj2 = {b: 2}; const obj3 = {...obj1, ...obj2};
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month