TCS
20+ Interview Questions and Answers
Q1. @Transactional default behaviour, difference between Authentication and Authorization. Difference between Cookies and session what is preferred.
Explaining @Transactional, Authentication vs Authorization, and Cookies vs Session
By default, @Transactional rolls back on unchecked exceptions
Authentication is verifying the identity of a user, while Authorization is granting access to resources based on their role
Cookies are stored on the client-side, while sessions are stored on the server-side
Sessions are preferred for security reasons, as cookies can be easily manipulated
Examples of authentication mechanisms include user...read more
Q2. why we use event in c#? What is freezable object in WPF?
Events in C# are used to provide a way for objects to communicate with each other. Freezable objects in WPF allow for efficient memory usage and improved performance.
Events allow for loosely coupled communication between objects
They are used to notify subscribers when an action occurs
Freezable objects can be shared across multiple threads and can be modified without creating a new instance
They are used in WPF to improve performance and reduce memory usage
Examples of freezable...read more
Q3. Where we can use node js to take maximum advantages
Node.js can be used for building scalable network applications.
Real-time chat applications
Streaming applications
APIs and microservices
Single-page applications
Internet of Things (IoT) applications
Q4. Difference between equal and == Java Stream program for finding maximum salary of employees
Explaining the difference between equal and == in Java and providing a Java Stream program for finding maximum salary of employees.
Equal checks for object equality while == checks for reference equality
Equal compares the values of two objects while == compares their memory addresses
Java Stream program for finding maximum salary of employees: employees.stream().max(Comparator.comparing(Employee::getSalary)).get()
Q5. What is the difference between Viewbag, Viewdata and Tempdata?
Viewbag, Viewdata, and Tempdata are used to pass data from controller to view in ASP.NET MVC.
ViewBag is a dynamic property that allows you to pass data from controller to view.
ViewData is a dictionary object that is used to pass data from controller to view.
TempData is a dictionary object that is used to pass data from one controller action to another.
ViewBag is a property of the ControllerBase class, ViewData is a property of the Controller class, and TempData is a property ...read more
Q6. Map and Flat Map difference, Predicate in depth
Map applies a function to each element and returns a new stream, while flatMap applies a function that returns a stream and flattens the result.
Map transforms each element of a stream into another element using a function
FlatMap transforms each element of a stream into a stream of elements using a function and then flattens the result
Predicate is a functional interface that takes an argument and returns a boolean value based on a condition
Q7. What is event loop in node js
Event loop is a mechanism in Node.js that allows non-blocking I/O operations to be performed efficiently.
Event loop is responsible for handling all the asynchronous callbacks in Node.js
It continuously checks the event queue for any pending event and executes them one by one
It allows Node.js to handle multiple requests simultaneously without blocking the execution of other requests
Event loop is a single-threaded mechanism that uses callbacks to handle I/O operations
Example: Re...read more
Q8. What is data action in Genesys Cloud
Data actions in Genesys Cloud are used to manipulate data within the platform.
Data actions allow users to perform actions on data such as creating, updating, or deleting records.
They can be used in automation flows to streamline processes and improve efficiency.
Examples of data actions include creating a new contact record, updating a customer's information, or deleting a ticket entry.
Q9. What is data tables in Genesys cloud
Data tables in Genesys Cloud are used to store and manage structured data for reporting and analytics purposes.
Data tables allow users to create custom tables to store data in a structured format
Users can import data into data tables from external sources
Data tables can be used to create custom reports and dashboards based on the stored data
Q10. RPA Lifecycle and the documentation involved
RPA Lifecycle involves analysis, design, development, testing, deployment, and maintenance with documentation at each stage.
Analysis phase involves identifying processes suitable for automation
Design phase includes creating process flow diagrams and defining requirements
Development phase involves building automation scripts or bots
Testing phase ensures the automation works as expected
Deployment phase involves rolling out the automation to production
Maintenance phase includes ...read more
Q11. How callbacks works
Callbacks are functions passed as arguments to other functions and are executed when a certain event occurs.
Callbacks are commonly used in asynchronous programming to handle events or responses.
They allow for non-blocking code execution and can be used to pass data between functions.
An example of a callback is the event listener in JavaScript, where a function is executed when an event occurs.
Callbacks can also be used for error handling and to control the flow of code execut...read more
Q12. Why node js popular
Node.js is popular due to its event-driven, non-blocking I/O model, scalability, and ease of use.
Node.js allows for efficient handling of a large number of simultaneous connections
It is built on top of Google's V8 JavaScript engine, making it fast and efficient
Node.js has a large and active community, with many useful libraries and modules available
It can be used for both server-side and client-side development
Node.js is easy to learn and use, especially for developers alread...read more
Q13. difference between sql and nosql
SQL is a relational database management system, while NoSQL is a non-relational database management system.
SQL databases are table-based and have a predefined schema, while NoSQL databases are document-based, key-value pairs, graph databases, or wide-column stores.
SQL databases are good for complex queries and transactions, while NoSQL databases are better for hierarchical data storage and real-time web applications.
Examples of SQL databases include MySQL, Oracle, and Postgre...read more
Q14. How to do hast sort?
Quickly sort elements by repeatedly selecting the minimum element from unsorted portion and placing it at the beginning.
Initialize a pointer to the first element of the array.
Iterate through the array to find the minimum element.
Swap the minimum element with the element at the pointer position.
Move the pointer to the next position and repeat the process until the array is sorted.
Q15. Streaming in node js
Streaming in Node.js allows for real-time data processing and transmission.
Node.js provides the 'stream' module for efficient data streaming
Streams can be readable, writable, or duplex
Streams can be used for file I/O, network communication, and more
Examples include piping data between streams, creating custom streams, and using third-party modules like 'socket.io'
Q16. Buffer in node js
Buffer is a temporary storage area for data in Node.js
Buffers are instances of the Buffer class in Node.js
They are used to handle binary data
Buffers can be created in various ways, such as from a string or an array of integers
They have a fixed size and cannot be resized
Buffers can be converted to and from other data types, such as strings or arrays
Q17. Explain design patterns used
Design patterns are reusable solutions to common problems in software design.
Design patterns help in creating flexible, maintainable, and scalable software.
Some commonly used design patterns include Singleton, Factory, Observer, and Strategy.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many d...read more
Q18. Life cycle of RPA
RPA life cycle involves planning, development, testing, deployment, and maintenance of robotic process automation.
Planning phase involves identifying processes suitable for automation
Development phase includes designing and building the automation workflows
Testing phase ensures the automation functions correctly and meets requirements
Deployment phase involves implementing the automation into production environment
Maintenance phase includes monitoring, updating, and optimizing...read more
Q19. Example about Flows
Flows in programming refer to the sequence of steps or actions taken to achieve a specific task or goal.
Flows help in understanding the logic and order of operations in a program.
They can be represented using flowcharts or diagrams.
Examples include login flow, payment flow, and registration flow in a web application.
Q20. example about Flow
Flow is a tool that automates workflows between different apps and services.
Flow allows users to create automated workflows by connecting different apps and services.
Users can set up triggers and actions to automate tasks without manual intervention.
For example, a user can create a flow that automatically saves email attachments to a cloud storage service.
More about working at TCS
Top HR Questions asked in null
Interview Process at null
Top Technical Lead Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month