Infosys
100+ Aster Sanad Hospital Interview Questions and Answers
Q101. How to configure firewall?
Configuring a firewall involves setting up rules to control incoming and outgoing network traffic.
Access the firewall settings through the control panel or security software.
Create rules to allow or block specific ports, IP addresses, or applications.
Regularly update firewall software to protect against new threats.
Test the firewall configuration to ensure it is working as intended.
Q102. Spring Data JPA in depth
Spring Data JPA is a framework that simplifies the implementation of JPA-based repositories.
Spring Data JPA provides a set of interfaces and classes to work with JPA entities and repositories.
It supports various query methods and pagination.
It also provides support for auditing, caching, and transactions.
Example: @Repository interface UserRepository extends JpaRepository
{}
Q103. What is @Qualifier annotation
The @Qualifier annotation is used in Spring framework to specify which bean should be autowired when multiple beans of the same type are present.
Used to resolve ambiguity when multiple beans of the same type are present
Can be used with @Autowired annotation to specify the bean to be injected
Helps in selecting the bean based on a specific qualifier value
Q104. Q2 Java program to sort the list.
Java program to sort a list of strings
Use Collections.sort() method to sort the list of strings
Create a list of strings and add elements to it
Call Collections.sort() method on the list to sort it
Q105. Difference between search and search all
Search is a specific query for a particular item, while search all is a broader search for all items.
Search is used to find a specific item or information within a limited scope.
Search all is used to find all items or information within a broader scope.
Search is more targeted and precise, while search all is more general and comprehensive.
For example, searching for a specific product on a website is a search, while searching for all products on the website is a search all.
Q106. Difference between Class and Struct?
Class is a reference type with inheritance and polymorphism, while struct is a value type with no inheritance and polymorphism.
Class is a reference type, stored on the heap, while struct is a value type, stored on the stack.
Class supports inheritance and polymorphism, while struct does not.
Class is passed by reference, while struct is passed by value.
Examples: Class - Person, Struct - Point
Q107. Internal working of HashMap?
HashMap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
HashMap uses an array of buckets to store key-value pairs
Each bucket contains a linked list of entries with the same hash code
When a key-value pair is added, its hash code is used to determine the bucket and added to the linked list
When a value is retrieved, its hash code is used to find the bucket and then the linked list is searched for the key
HashMap allows null keys and val...read more
Q108. What is boxing and unboxing
Boxing is the process of converting a value type to a reference type, while unboxing is the process of converting a reference type to a value type.
Boxing is done implicitly by the compiler when a value type is assigned to a reference type variable.
Unboxing requires an explicit cast from the reference type to the value type.
Boxing and unboxing can impact performance as they involve memory allocation and copying of data.
Example: int num = 10; object obj = num; // Boxing, conver...read more
Q109. What is garbage collection
Garbage collection is a process in programming where the system automatically reclaims memory occupied by objects that are no longer in use.
Garbage collection helps prevent memory leaks by automatically freeing up memory that is no longer needed.
It is commonly used in languages like Java, C#, and Python.
Garbage collection can be either automatic or manual, with automatic being the most common approach.
Examples of garbage collection algorithms include reference counting and ma...read more
Q110. What is mvc and razor
MVC stands for Model-View-Controller, a software architectural pattern. Razor is a markup syntax used in ASP.NET MVC.
MVC is a design pattern that separates an application into three main components: Model, View, and Controller
Razor is a markup syntax used in ASP.NET MVC to create dynamic web pages
MVC helps in organizing code and separating concerns, making it easier to maintain and test applications
Q111. What is software development
Software development is the process of creating, designing, testing, and maintaining software applications.
Involves writing code to create software applications
Includes designing the user interface and user experience
Testing the software for bugs and errors
Maintaining and updating the software as needed
Q112. What is a Vpc network?
A VPC network is a virtual private cloud that allows users to create and manage their own isolated network in the cloud.
VPC stands for Virtual Private Cloud
It allows users to create and manage their own isolated network in the cloud
Users can define their own IP address range, subnets, and route tables
VPC networks can be connected to on-premises networks using VPN or dedicated connections
Examples of cloud providers that offer VPC networks include AWS, Google Cloud, and Microso...read more
Q113. What is rxjs and map?
RxJS is a library for reactive programming using Observables. Map is an operator used to transform the items emitted by an Observable.
RxJS is a library for reactive programming in JavaScript.
It allows you to work with asynchronous data streams.
Map is an operator in RxJS used to transform the items emitted by an Observable.
Example: observable.pipe(map(data => data * 2)) will double each emitted value.
Q114. Explain What is DBMS?
DBMS stands for Database Management System. It is a software that manages databases, allowing users to store, retrieve, and manipulate data efficiently.
DBMS helps in creating, updating, and managing databases.
It provides a structured way to store and organize data.
DBMS ensures data integrity and security.
Examples of DBMS include MySQL, Oracle, and Microsoft SQL Server.
Q115. Regression Testing importance
Regression testing is important to ensure that new code changes do not negatively impact existing functionality.
Ensures that new code changes do not introduce bugs or issues in existing functionality
Helps maintain the overall quality and stability of the software
Saves time and resources by catching issues early in the development process
Can be automated to streamline the testing process
Examples: running regression tests after each code change, before a software release
Q116. What is job schedular
A job scheduler is a software application that is used to automate the scheduling of tasks or jobs in a computer system.
Job schedulers help in optimizing resource utilization by efficiently managing the execution of tasks.
They allow users to define dependencies between tasks and specify when and how often tasks should run.
Examples of job schedulers include Cron for Unix-based systems and Task Scheduler for Windows.
Job schedulers can be used for various purposes such as runnin...read more
Q117. What is service, fragment,
A service is a component that performs operations in the background without a user interface. A fragment is a modular section of an activity that has its own lifecycle and UI.
Service is used for long-running operations such as network calls or playing music in the background.
Fragments are reusable UI components that can be added or removed from an activity dynamically.
Services and fragments are both important components in Android development.
Q118. What is optional ?
Optional refers to something that is not required or mandatory.
Optional features in software can be added or removed based on user preferences.
Opting out of a subscription service is optional.
Attending a meeting is optional, not mandatory.
Choosing to include a cover letter with a job application is optional.
Q119. What is array push?
Array push is a method in JavaScript used to add one or more elements to the end of an array.
Array push is a built-in method in JavaScript.
It adds one or more elements to the end of an array and returns the new length of the array.
Example: let arr = ['apple', 'banana']; arr.push('orange'); // arr is now ['apple', 'banana', 'orange']
Q120. what is inheritence in c#
Inheritance in C# allows a class to inherit properties and behavior from another class.
Allows a class to reuse code from another class
Derived class inherits members from base class
Supports single and multiple inheritance through interfaces
Q121. What are routing protocols
Routing protocols are sets of rules that determine how data is transmitted between network devices.
Routing protocols are used in computer networks to determine the best path for data to travel from one device to another.
They help to ensure that data is transmitted efficiently and reliably.
Examples of routing protocols include OSPF, BGP, and RIP.
Q122. Explain angular performance improvements
Angular performance improvements involve optimizing code, reducing load times, and minimizing rendering cycles.
Use lazy loading to only load components when needed
Optimize change detection by using OnPush strategy
Minimize DOM manipulation by using ngZone
Implement server-side rendering for faster initial page load
Use AOT (Ahead-of-Time) compilation to reduce bundle size
Q123. What is mutating error
A mutating error occurs when a program attempts to modify a data structure while iterating over it.
Occurs when a program tries to modify a collection (e.g. array, list) while iterating through it
Can lead to unexpected behavior or errors in the program
Common in languages like Python, where modifying a list while iterating over it can cause a mutating error
Q124. What is closures ?
Closures are functions that have access to variables from their containing scope even after the parent function has finished executing.
Closures allow functions to maintain access to variables from their parent scope
They are created when a function is defined within another function
Closures are commonly used in event handlers and callbacks
Q125. Difference between goto and perform
Goto is an unconditional transfer of control while perform is a conditional transfer of control.
Goto is considered harmful as it can lead to spaghetti code.
Perform is used to execute a set of statements based on a condition.
Perform can be used with varying levels of granularity such as perform until, perform varying, etc.
Goto is rarely used in modern programming languages.
Example: perform until condition is met, goto line 10
Q126. Ways of upgrading ESXi patch
ESXi patch can be upgraded using vSphere Update Manager, ESXCLI command-line tool, or manually.
vSphere Update Manager can be used to upgrade ESXi patches
ESXCLI command-line tool can also be used to upgrade ESXi patches
Manual upgrade can be done by downloading the patch from VMware website and installing it using ESXi Shell or SSH
Q127. oops concepts explain
Oops concepts are the fundamental concepts of object-oriented programming.
Encapsulation - binding data and functions together
Inheritance - creating new classes from existing ones
Polymorphism - ability of objects to take on multiple forms
Abstraction - hiding implementation details from users
Q128. interface vs abstract
Interface and abstract are both used for abstraction in object-oriented programming.
Interfaces define a contract that a class must implement.
Abstract classes provide a base implementation that can be extended by subclasses.
Interfaces can be implemented by multiple classes, while a class can only extend one abstract class.
Interfaces can only have abstract methods, while abstract classes can have both abstract and concrete methods.
Q129. Different between spring and springboot
Spring is a framework for building Java applications, while Spring Boot is an extension that simplifies the setup and development process.
Spring is a comprehensive framework that provides various modules for building Java applications, such as Spring MVC for web applications and Spring Data for data access.
Spring Boot is an extension of the Spring framework that aims to simplify the setup and development process by providing defaults for configuration and dependencies.
Spring ...read more
Q130. What is a trigger
A trigger is an event or condition that initiates a response or action.
Triggers can be used in programming to automate actions based on certain events or conditions.
Examples of triggers include a button click, a change in data, or a specific time or date.
Triggers can also be used in marketing to initiate a response from a customer, such as sending an email after a purchase.
In psychology, triggers can refer to stimuli that cause a person to experience a strong emotional reacti...read more
Q131. explain about kersal server?
Kersal server is a type of server used for hosting websites and applications.
Kersal server is known for its reliability and performance.
It is often used by businesses to host their websites and applications.
Kersal server offers features like high uptime, security, and scalability.
Examples of Kersal server providers include AWS, Google Cloud, and Microsoft Azure.
Q132. Explain Agile technolgy
Agile technology is an iterative approach to software development that emphasizes flexibility and collaboration.
Agile methodology involves breaking down projects into smaller, more manageable tasks
Teams work in short sprints, typically 1-4 weeks, to complete these tasks
Agile emphasizes frequent communication and collaboration between team members and stakeholders
The goal is to deliver working software quickly and continuously improve based on feedback
Popular Agile frameworks ...read more
Q133. Exceptions in Java
Exceptions are errors that occur during program execution in Java.
Exceptions are objects that are thrown when an error occurs.
They can be caught and handled using try-catch blocks.
Unchecked exceptions like NullPointerException do not need to be declared in the method signature.
Checked exceptions like IOException must be declared in the method signature or handled in a try-catch block.
Custom exceptions can be created by extending the Exception class.
Q134. .net version comparison
Comparison of different versions of .NET framework.
Different versions of .NET framework include 1.0, 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.6, 4.7, 4.8
.NET 1.0 and 1.1 are no longer supported by Microsoft
.NET 2.0 introduced generics and improved security features
.NET 3.0 and 3.5 added Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), and Windows Workflow Foundation (WF)
.NET 4.0 introduced dynamic language runtime (DLR) and parallel programming support
.NE...read more
Q135. difference between boxing and unboxing
Boxing is the process of converting a value type to a reference type, while unboxing is the process of converting a reference type to a value type.
Boxing is implicit, while unboxing is explicit.
Boxing involves converting a value type to an object type, while unboxing involves extracting the value type from the object type.
Boxing creates a new reference type object on the heap, while unboxing retrieves the original value type from the reference type object.
Example: int num = 1...read more
Q136. what is hashmap
HashMap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
HashMap is part of the Java Collections framework.
It uses hashing to store and retrieve elements efficiently.
Each key in a HashMap must be unique.
Example: HashMap
map = new HashMap<>();
Q137. what is cp command
cp command is used in Unix and Linux operating systems to copy files and directories.
Used to copy files and directories from one location to another
Syntax: cp [options] source destination
Options include -r for recursive copying, -i for interactive mode, -v for verbose output
Example: cp file1.txt /path/to/directory/
Q138. what is mv command
mv command is used in Unix and Linux operating systems to move files or directories from one location to another.
Used to rename files or directories by moving them to a new location
Syntax: mv [options] source destination
Example: mv file1.txt /path/to/new/location/
Q139. Difference in POST and PUT
POST is used to create a new resource, while PUT is used to update an existing resource.
POST is used to create a new resource on the server.
PUT is used to update an existing resource on the server.
POST requests are not idempotent, while PUT requests are idempotent.
POST requests do not require the client to specify the URI of the new resource, while PUT requests do.
Example: POST /users creates a new user, PUT /users/123 updates user with ID 123.
Q140. DORA Process in DHCP
DORA process in DHCP stands for Discover, Offer, Request, Acknowledge. It is the process through which a client obtains an IP address from a DHCP server.
Discover: Client broadcasts a DHCPDISCOVER message to find available DHCP servers
Offer: DHCP servers respond with a DHCPOFFER message containing an available IP address
Request: Client selects an IP address and sends a DHCPREQUEST message to request it
Acknowledge: DHCP server sends a DHCPACK message to confirm the IP address a...read more
Q141. Explain the CI CD pipelines
CI/CD pipelines are automated processes that allow for continuous integration and delivery of software.
CI/CD stands for Continuous Integration/Continuous Delivery
CI involves merging code changes into a central repository and running automated tests
CD involves deploying the code changes to production
Pipelines can be customized to fit the needs of the development team
Examples of CI/CD tools include Jenkins, Travis CI, and CircleCI
Q142. Oops concepts with examples
Oops concepts are fundamental to object-oriented programming. They include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and methods from a parent class.
Encapsulation is the practice of hiding implementation details from the user.
Polymorphism allows objects to take on multiple forms or behaviors.
Abstraction is the process of simplifying complex systems by breaking them down into smaller, more manageable parts.
Exampl...read more
Q143. arraylist vs vector
ArrayList is non-synchronized and Vector is synchronized.
ArrayList is faster than Vector.
Vector is thread-safe while ArrayList is not.
Vector is a legacy class while ArrayList is not.
Vector doubles its size while ArrayList increases by 50%.
ArrayList is preferred over Vector in most cases.
Q144. Share screen and go programs
Screen sharing allows for remote collaboration and troubleshooting, while go programs are efficient and versatile.
Screen sharing enables real-time collaboration and remote support
Go programs are efficient and versatile, with a focus on concurrency and scalability
Examples of screen sharing tools include Zoom, Skype, and TeamViewer
Examples of popular Go programs include Docker, Kubernetes, and Prometheus
Q145. Life cycle method in react
The life cycle methods in React are special methods that allow you to perform actions at specific points in the component's life cycle.
componentDidMount() is called after the component has been rendered to the DOM
componentDidUpdate() is called after the component's updates are flushed to the DOM
componentWillUnmount() is called before the component is removed from the DOM
Q146. What is oops in java
Object-oriented programming concepts in Java
Oops stands for Object-Oriented Programming
It includes concepts like classes, objects, inheritance, polymorphism, encapsulation
Helps in organizing code, making it more modular and reusable
Example: creating a class 'Car' with properties like 'make', 'model' and methods like 'drive', 'stop'
Q147. explain Callback hell
Callback hell is a situation in asynchronous programming where multiple nested callbacks make the code difficult to read and maintain.
Occurs when multiple asynchronous operations are nested within each other
Can lead to deeply nested code structure which is hard to understand
Can be mitigated by using promises, async/await, or libraries like async.js
Q148. dataprovider in testng
Data providers in TestNG allow for parameterization of test methods by supplying data from external sources.
Data providers are methods annotated with @DataProvider that return a 2D array of objects to supply test method parameters
Data providers can be used to supply data from Excel sheets, CSV files, databases, etc.
Example: @DataProvider(name = "userData") public Object[][] userData() { return new Object[][] { { "John", 25 }, { "Jane", 30 } }; }
Q149. Expected CTC variable exists
Yes, expected CTC variable exists in the job offer.
Expected CTC variable is a common term used in job offers to indicate the expected salary package.
It typically includes both fixed and variable components.
Example: Expected CTC: INR 10-12 LPA (Fixed: 8 LPA, Variable: 2-4 LPA)
Q150. Partitioning in oracle
Partitioning in Oracle allows tables, indexes, and index-organized tables to be subdivided into smaller, more manageable pieces.
Partitioning improves query performance by allowing operations to be performed on individual partitions instead of the entire table.
Types of partitioning include range, list, hash, and composite partitioning.
Example: Creating a range partitioned table based on a date column to store data for each month separately.
Q151. Components used in spring boot
Spring Boot is a framework that uses various components to simplify the development of Java applications.
Spring Core: Provides dependency injection and inversion of control.
Spring MVC: Enables building web applications.
Spring Data: Simplifies database access and integration.
Spring Security: Handles authentication and authorization.
Spring Boot Actuator: Provides production-ready features for monitoring and managing applications.
Spring Boot Starter: Pre-configured dependencies ...read more
Q152. Types of classes
Types of classes include abstract classes, concrete classes, interface classes, and inner classes.
Abstract classes cannot be instantiated and may contain abstract methods.
Concrete classes can be instantiated and provide implementations for all methods.
Interface classes define a contract for classes to implement.
Inner classes are classes defined within another class.
Q153. Self join example
A self join is when a table is joined with itself to compare rows within the same table.
Self join is used to compare rows within the same table.
It is useful when you want to compare data in the same table.
You need to use table aliases to distinguish between the two instances of the same table.
Q154. Baics Of C#
C# is a modern, object-oriented programming language developed by Microsoft.
C# is used to develop Windows desktop applications, games, mobile apps, and web applications.
It is strongly typed and supports both value and reference types.
C# uses a syntax similar to Java and C++.
It includes features such as garbage collection, delegates, and lambda expressions.
C# is part of the .NET framework and can be used with other .NET languages like VB.NET and F#.
Q155. Generator in python.
Generators in Python are functions that allow you to iterate over a sequence of items without storing them in memory.
Generators are created using the 'yield' keyword instead of 'return'.
They are used to generate a series of values on the fly, one at a time.
Generators are memory efficient as they do not store all values in memory at once.
Example: def my_generator(): for i in range(5): yield i
Example: for num in my_generator(): print(num)
Q156. FSMO Roles in AD
FSMO roles in Active Directory are specialized roles that handle specific tasks within the domain.
There are 5 FSMO roles: Schema Master, Domain Naming Master, RID Master, PDC Emulator, and Infrastructure Master.
These roles are essential for the proper functioning of the Active Directory environment.
Each FSMO role can only exist once in a forest.
The Schema Master controls all updates and modifications to the schema.
The Domain Naming Master manages the addition or removal of do...read more
Q157. Explain Event Loop
Event Loop is a mechanism in programming that allows for asynchronous execution of code by continuously checking for and executing tasks in a queue.
Event Loop is a key component of JavaScript's runtime environment.
It allows for non-blocking I/O operations, making it possible to handle multiple tasks simultaneously.
Tasks are added to the event queue and executed in the order they were added.
Event Loop ensures that the main thread is not blocked, allowing for a smooth user expe...read more
Q158. Divisions of cobol
COBOL has four divisions: Identification Division, Environment Division, Data Division, and Procedure Division.
Identification Division: Contains program name, author, and other identifying information.
Environment Division: Specifies the hardware and software environment in which the program will run.
Data Division: Defines the data structures used in the program.
Procedure Division: Contains the actual program logic and instructions.
Example: IDENTIFICATION DIVISION. PROGRAM-ID....read more
Q159. Explain Oop concepts
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems.
Objects have attributes (data) and methods (functions) that operate on the data.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Example: In a car simulation program, a 'Car' object could have attributes like 'color' and 'speed', and m...read more
Q160. Explain life cycle
Life cycle refers to the series of stages through which a living organism passes from the beginning of its life until its death.
Life cycle includes birth, growth, reproduction, and death.
Different organisms have different life cycles - for example, insects undergo metamorphosis while humans do not.
Life cycles can vary in length - some organisms have short life cycles while others have long ones.
Q161. Explain mvvm pattern
MVVM is a design pattern that separates the UI, business logic, and data layers in an application.
Model represents the data and business logic
View displays the UI elements
ViewModel acts as a mediator between the Model and View, handling user interactions and updating the View
Top HR Questions asked in Aster Sanad Hospital
Interview Process at Aster Sanad Hospital
Top Technology Analyst Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month