Add office photos
TCS logo
Engaged Employer

TCS

Verified
3.7
based on 90.5k Reviews
Video summary
Filter interviews by

6000+ TCS Interview Questions and Answers

Updated 11 Mar 2025
Popular Designations

Q201. What is daemon thread? How it help in multithreading?

Ans.

Daemon thread is a low priority thread that runs in the background and provides services to other threads.

  • Daemon threads are used for tasks that don't require user interaction or input.

  • They are automatically terminated when all non-daemon threads have completed.

  • Examples include garbage collection, logging, and monitoring.

  • They can be created using setDaemon() method.

  • Daemon threads should not be used for tasks that require data consistency or integrity.

  • They can help in improvin...read more

View 1 answer
right arrow

Q202. What are OOPs, Cloud Computing, Cyber Security, SQL, DBMS, and one Coding Question

Ans.

OOPs is a programming paradigm, Cloud Computing is a model for delivering IT services, Cyber Security is the practice of protecting computer systems, SQL is a language used to manage relational databases, DBMS is a software system used to manage databases, and a coding question is a problem-solving exercise.

  • OOPs - Encapsulation, Inheritance, Polymorphism, Abstraction

  • Cloud Computing - Infrastructure as a Service (IaaS), Platform as a Service (PaaS), Software as a Service (SaaS...read more

View 1 answer
right arrow
TCS Interview Questions and Answers for Freshers
illustration image

Q203. (1).What does Tally accounting mean? Ans :Tally accounting is an ERP software that is used by small as well as large businesses for business functionalities like accounting,finance,inventory,payroll,etc.. (2).W...

read more
Ans.

Tally accounting is an ERP software used for business functionalities like accounting, finance, inventory, payroll, etc.

  • Tally accounting is an ERP software

  • Used by small and large businesses

  • Handles accounting, finance, inventory, payroll, etc.

  • Helps in managing financial transactions

  • Generates financial reports

  • Provides real-time data

  • Increases efficiency and accuracy

  • Premises in accounting refer to fixed assets shown in the balance sheet

Add your answer
right arrow

Q204. Why motor is rated in KW whereas Transformer and generator in KVA?

Ans.

Motors are rated in KW because they consume power, while transformers and generators are rated in KVA because they produce power.

  • Motors convert electrical energy into mechanical energy, so they consume power and are rated in KW.

  • Transformers and generators produce electrical energy, so they are rated in KVA based on their apparent power.

  • KVA takes into account both the real power (KW) and the reactive power (KVAR) produced by the transformer or generator.

  • For example, a 100 KVA ...read more

View 1 answer
right arrow
Discover TCS interview dos and don'ts from real experiences

Q205. How do you tackle if business doesn’t agree with your design?

Ans.

When business doesn't agree with my design, I approach the situation by understanding their concerns, presenting data and research to support my design decisions, and collaborating to find a solution that meets both user and business needs.

  • Listen to the business's concerns and understand their perspective

  • Present data and research that supports the design decisions

  • Explain the user-centered approach and the benefits it brings

  • Collaborate with the business to find a solution that...read more

View 1 answer
right arrow

Q206. What is the name of the authority in India ?

Ans.

The authority in India for pharmacovigilance is the Central Drugs Standard Control Organization (CDSCO).

  • The Central Drugs Standard Control Organization (CDSCO) is the national regulatory authority for pharmaceuticals and medical devices in India.

  • CDSCO is responsible for the approval of new drugs, clinical trials, and post-marketing surveillance of drugs.

  • It ensures the safety, efficacy, and quality of drugs and medical devices in the Indian market.

  • CDSCO works under the Ministr...read more

View 7 more answers
right arrow
Are these interview questions helpful?

Q207. What are the 4 p's pf marketing ?

Ans.

The 4 P's of marketing are Product, Price, Place, and Promotion.

  • Product: Refers to the goods or services offered by a company.

  • Price: The amount customers are willing to pay for the product.

  • Place: The location or channel through which the product is made available to customers.

  • Promotion: The marketing activities used to communicate and promote the product.

View 1 answer
right arrow

Q208. What is oops What is dbms Types of computer network Tell me about yourself Tell me about project What is constructor What is switch Real life example of inheritance, data abstraction

Ans.

Questions related to computer science and programming concepts.

  • OOPs stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects.

  • DBMS stands for Database Management System which is a software system used to manage and organize data.

  • Types of computer networks include LAN, WAN, MAN, PAN, and CAN.

  • Tell about yourself by highlighting your education, skills, and work experience.

  • Explain your project by discussing its purpose, methodology, an...read more

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q209. What is the role of Business Analyst in an organization?

Ans.

A Business Analyst plays a crucial role in an organization by analyzing business processes, identifying problems, and proposing solutions.

  • Analyzing and documenting business requirements

  • Identifying and evaluating business problems

  • Developing and implementing effective solutions

  • Collaborating with stakeholders to gather and prioritize requirements

  • Conducting feasibility studies and cost-benefit analysis

  • Creating and maintaining project documentation

  • Facilitating communication betwee...read more

View 2 more answers
right arrow

Q210. What is the difference between depreciation and amortization. What are capital gains?

Ans.

Depreciation is the decrease in value of tangible assets over time, while amortization is the decrease in value of intangible assets over time. Capital gains are profits made from selling assets at a higher price than their purchase price.

  • Depreciation applies to tangible assets like buildings, machinery, and vehicles, while amortization applies to intangible assets like patents, copyrights, and trademarks.

  • Depreciation and amortization are both methods of allocating the cost o...read more

Add your answer
right arrow

Q211. Do you Know JSP? What is JSP? Its Advantages?

Ans.

JSP is a Java-based technology used for creating dynamic web pages. It allows embedding Java code within HTML pages.

  • JSP stands for JavaServer Pages.

  • It is a technology used for developing web applications.

  • JSP allows embedding Java code within HTML pages.

  • It provides a simplified way to create dynamic web content.

  • JSP files are compiled into servlets and executed on the server.

  • Advantages of JSP include easy integration with Java code, reusable components, and separation of presen...read more

Add your answer
right arrow

Q212. What is the difference between runtime and compile time error.

Ans.

Runtime errors occur during program execution, while compile-time errors occur during compilation.

  • Compile-time errors are detected by the compiler and prevent the program from running.

  • Runtime errors occur when the program is running and can cause it to crash or behave unexpectedly.

  • Examples of compile-time errors include syntax errors and type errors.

  • Examples of runtime errors include null pointer exceptions and division by zero errors.

View 2 more answers
right arrow

Q213. Do you know about TCS bond agreement?

Ans.

TCS bond agreement is a contract signed by employees to work for a certain period of time with the company.

  • TCS bond agreement is a legal contract between TCS and its employees.

  • Employees sign the bond agreement to work for a certain period of time with the company.

  • The bond period can range from 1 to 2 years depending on the role and level of the employee.

  • If an employee wishes to leave the company before the bond period ends, they are required to pay a certain amount as compens...read more

Add your answer
right arrow

Q214. While creating a custom role which role should have the access to it

Ans.

The role with the highest level of access should create the custom role.

  • The role with the highest level of access should have the ability to manage roles and grant permissions.

  • This ensures that the custom role is created with the appropriate level of access and permissions.

  • For example, if the custom role is for a specific department, the department manager role should create it.

Add your answer
right arrow

Q215. What is the different between need and Demand ?

Ans.

Need is a necessity or desire for something, while demand is the willingness and ability to pay for it.

  • Need is a basic requirement for survival or to fulfill a goal, while demand is the desire for a product or service backed by purchasing power.

  • Need is a subjective feeling, while demand is an objective measure of the market.

  • Need can exist without demand, but demand cannot exist without need.

  • Example: People need food to survive, but not everyone has the demand for expensive go...read more

View 1 answer
right arrow

Q216. What is Exception and what is Exception Handling in java ?

Ans.

Exception is an event that occurs during the execution of a program and disrupts the normal flow of instructions.

  • Exception is a subclass of Throwable class.

  • Exception Handling is a mechanism to handle runtime errors and prevent program termination.

  • try-catch block is used to handle exceptions.

  • Multiple catch blocks can be used to handle different types of exceptions.

  • finally block is used to execute code after try-catch block.

  • Example: int a = 10/0; will throw ArithmeticException....read more

View 2 more answers
right arrow

Q217. How will you use cursor in COBOL program? What is the difference between cursor and SQL? When will you use JOINKEYS ?

Ans.

Using cursor in COBOL program, difference between cursor and SQL, and when to use JOINKEYS.

  • Cursor is used to fetch data from a database table in COBOL program.

  • SQL is a language used to interact with databases, while cursor is a mechanism to fetch data from a database table.

  • JOINKEYS is used to join two or more files based on a common key.

  • JOINKEYS is used when the files are too large to fit in memory.

  • JOINKEYS is used when the files are sorted in ascending or descending order.

Add your answer
right arrow

Q218. 4. How can we mimic lifecycle methods using useEffect in functional components?

Ans.

useEffect can mimic lifecycle methods by specifying dependencies and cleanup functions.

  • useEffect can be used to mimic componentDidMount by specifying an empty dependency array.

  • useEffect can be used to mimic componentDidUpdate by specifying a dependency array.

  • useEffect can be used to mimic componentWillUnmount by returning a cleanup function.

  • useEffect can be used to mimic shouldComponentUpdate by using memoization techniques.

  • useEffect can be used to mimic componentDidCatch by ...read more

Add your answer
right arrow

Q219. Explain oops concepts with an example

Ans.

Explanation of OOPs concepts with an example

  • OOPs stands for Object-Oriented Programming

  • Encapsulation - Binding data and functions that manipulate the data together

  • Inheritance - A class can inherit properties and methods from another class

  • Polymorphism - Ability of an object to take many forms

  • Abstraction - Hiding implementation details and showing only functionality

  • Example: A car is an object that has properties like color, model, and methods like start, stop, accelerate

  • Encapsu...read more

View 7 more answers
right arrow

Q220. What set in java and what is difference between hash set and map

Ans.

Set is a collection interface in Java. HashSet and HashMap are two different implementations of Set.

  • Set is an interface that extends Collection interface.

  • HashSet is an implementation of Set that uses a hash table to store elements.

  • HashMap is an implementation of Map that uses a hash table to store key-value pairs.

  • HashSet does not allow duplicate elements while HashMap allows duplicate values but not duplicate keys.

  • HashSet uses only one object to store elements while HashMap u...read more

Add your answer
right arrow

Q221. Write a program to swap two numbers without using third variable

Ans.

Program to swap two numbers without using third variable

  • Use the XOR operation to swap the numbers

  • Assign the first number to the second number using XOR

  • Assign the second number to the first number using XOR

View 4 more answers
right arrow

Q222. What is javascript and use of javascript?

Ans.

JavaScript is a programming language used to create interactive web pages and web applications.

  • JavaScript is a client-side scripting language

  • It can be used for form validation, creating animations, and manipulating HTML and CSS

  • JavaScript can also be used on the server-side with Node.js

  • Popular JavaScript frameworks include React, Angular, and Vue.js

View 2 more answers
right arrow

Q223. 3. How can we monitor the child pipeline in the master pipeline?

Ans.

You can monitor the child pipeline in the master pipeline by using Azure Monitor or Azure Data Factory monitoring tools.

  • Use Azure Monitor to track the performance and health of the child pipeline within the master pipeline.

  • Leverage Azure Data Factory monitoring tools to view detailed logs and metrics for the child pipeline execution.

  • Set up alerts and notifications to be informed of any issues or failures in the child pipeline.

View 1 answer
right arrow

Q224. Explain the automatic account determination?

Ans.

Automatic account determination is a process in SAP MM that determines the correct GL account for a transaction.

  • It is based on the combination of transaction/event key and account modifier.

  • The account modifier is determined based on the valuation class and account category assigned to the material.

  • Examples of automatic account determination include determining the correct GL account for goods receipt, invoice receipt, and goods issue transactions.

  • It helps ensure accurate fina...read more

View 4 more answers
right arrow

Q225. Write a program for creating a date selector from calendar?

Ans.

A program for creating a date selector from calendar.

  • Create a calendar UI with selectable dates

  • Implement logic to highlight selected date

  • Add functionality to navigate between months and years

  • Integrate with backend to fetch and display events on selected date

Add your answer
right arrow

Q226. What is financial statement version ??

Ans.

Financial statement version is a report that displays financial data in a specific format.

  • It is used to create customized financial statements based on company requirements.

  • It allows users to define the structure and layout of financial statements.

  • It can be used to display data from different accounting areas and periods.

  • Examples include balance sheets, income statements, and cash flow statements.

View 3 more answers
right arrow

Q227. What is difference between message type and basic type in EDI?

Ans.

Message type is used to define the structure of the message while basic type is used to define the syntax of the message in EDI.

  • Message type is used to identify the type of message being exchanged between two systems.

  • Basic type is used to define the syntax of the message, such as the format of the data being exchanged.

  • Message type is specific to the business process being executed, while basic type is specific to the EDI standard being used.

  • Examples of message types include O...read more

Add your answer
right arrow

Q228. What are the different types of Selenium components, and can you explain each one?

Ans.

Selenium components include Selenium IDE, Selenium WebDriver, Selenium Grid, and Selenium RC.

  • Selenium IDE: Record and playback tool for creating test scripts without programming.

  • Selenium WebDriver: Automation tool for writing test scripts in various programming languages.

  • Selenium Grid: Tool for running tests in parallel on multiple machines or browsers.

  • Selenium RC (Remote Control): Deprecated tool for running tests in multiple browsers.

Add your answer
right arrow

Q229. How would you handle a bug in a production environment in front of a client?

Ans.

I would calmly acknowledge the bug, communicate the issue and steps being taken to resolve it, and work quickly to fix it without causing panic.

  • Acknowledge the bug calmly and professionally

  • Communicate the issue and steps being taken to resolve it

  • Work quickly to fix the bug without causing panic

  • Provide updates to the client on the progress

Add your answer
right arrow

Q230. Do you know what stored procedures are?

Ans.

Stored procedures are pre-written SQL codes that can be saved and reused.

  • Stored procedures can improve database performance by reducing network traffic.

  • They can be used to enforce business rules and security measures.

  • They can be parameterized to accept input values and return output values.

  • Examples include procedures for inserting, updating, and deleting data.

  • They can also be used for complex operations such as data aggregation and reporting.

Add your answer
right arrow

Q231. Where interest on capital will be shown in the balance sheet

Ans.

Interest on capital is shown as an expense in the profit and loss statement, not in the balance sheet.

  • Interest on capital is a cost incurred by a business for using borrowed funds or the capital invested by the owners.

  • It is considered as an expense and is deducted from the revenue in the profit and loss statement.

  • The balance sheet shows the financial position of a company at a specific point in time and does not include interest on capital.

  • Examples of items shown in the balan...read more

View 4 more answers
right arrow

Q232. 2.what is the difference between TLS and SSL protocol.

Ans.

TLS is the successor of SSL protocol, providing more secure communication over the internet.

  • TLS is the newer version of SSL.

  • TLS uses stronger encryption algorithms.

  • TLS supports more secure cipher suites.

  • TLS provides better authentication and key exchange mechanisms.

  • TLS is backward compatible with SSL, but SSL is not forward compatible with TLS.

View 2 more answers
right arrow

Q233. What is middleware in nodejs? Explain with examples.

Ans.

Middleware in Node.js is a function that sits between the server and the client and performs various tasks.

  • Middleware functions can be used to handle requests, modify responses, and perform authentication and authorization.

  • Examples of middleware in Node.js include body-parser, cookie-parser, and express-session.

  • Middleware functions are executed in the order they are defined in the code.

  • Middleware can be used to handle errors and pass them to the error handling middleware.

Add your answer
right arrow

Q234. What are services and port number required to communicate desktop/ laptop with MECM /sccm deployment server?

Ans.

Services and port numbers required to communicate desktop/laptop with MECM/SCCM deployment server.

  • Services: SMS Agent Host, SMS Executive, SMS Site Component Manager

  • Port numbers: 80 (HTTP), 443 (HTTPS), 10123 (Client notification)

  • Firewall rules may need to be configured to allow communication

Add your answer
right arrow

Q235. What is linklist ? Write a code to insert a node at the beginning of list ?

Ans.

A linked list is a data structure that consists of a sequence of nodes, where each node contains a reference to the next node.

  • A linked list is a dynamic data structure that can grow or shrink as needed.

  • Each node in a linked list contains two parts: data and a reference to the next node.

  • To insert a node at the beginning of a linked list, we create a new node, set its data, and update the reference of the new node to point to the current head of the list.

Add your answer
right arrow

Q236. If social media is designed for good thing then why some people using worng

Ans.

Social media is a tool that can be used for both good and bad purposes, depending on the user's intentions.

  • Some people may use social media to spread hate speech, cyberbullying, or fake news.

  • Others may use it to promote positive messages, connect with like-minded individuals, or raise awareness for important causes.

  • Ultimately, it is up to the individual to decide how they want to use social media and what impact they want to have on others.

  • Social media platforms also have a r...read more

View 3 more answers
right arrow

Q237. Differences between C and Java? Explain me about exception handling? with program Run time exceptions? What is stack?operations and program

Ans.

Comparison between C and Java, explanation of exception handling and stack operations.

  • C is a procedural language while Java is object-oriented.

  • Java has automatic memory management while C requires manual memory management.

  • Exception handling in Java involves try-catch blocks while C uses error codes.

  • Runtime exceptions are unchecked exceptions that occur during program execution.

  • Stack is a data structure that follows the Last In First Out (LIFO) principle.

  • Stack operations inclu...read more

View 2 more answers
right arrow

Q238. What are the different types of transport requests in SAP basis?

Ans.

Different types of transport requests in SAP basis include workbench, customizing, and transport of copies.

  • Workbench request: Contains changes to repository objects like programs, screens, and menus.

  • Customizing request: Contains changes to customizing objects like tables, views, and data elements.

  • Transport of copies: Used for moving changes between systems for testing or production.

  • Transport of copies can be used to move changes from development to quality assurance or produc...read more

View 1 answer
right arrow

Q239. What is the difference between c and c++?

Ans.

C++ is an extension of C with object-oriented programming features.

  • C++ supports classes and objects while C does not.

  • C++ has better support for polymorphism and inheritance.

  • C++ has a standard template library (STL) while C does not.

  • C++ is more complex and has more features than C.

  • C++ is often used for developing large-scale software projects.

  • C is often used for system programming and embedded systems.

Add your answer
right arrow

Q240. What is Control Coupling and Data Coupling? Explain the difference between them

Ans.

Control coupling and data coupling are two types of coupling in software engineering.

  • Control coupling occurs when one module controls the flow of another module through parameters or flags.

  • Data coupling occurs when two modules share data through parameters or global variables.

  • Control coupling is considered more tightly coupled than data coupling.

  • Examples of control coupling include passing a flag to a function to determine its behavior, or using a return value to control the ...read more

Add your answer
right arrow

Q241. Explain Difference b/w Function and Stored Procedure?

Ans.

Functions return a value while stored procedures do not.

  • Functions are used to perform a specific task and return a value to the caller.

  • Stored procedures are used to execute a set of statements and do not return a value.

  • Functions can be used in SELECT, WHERE, and HAVING clauses.

  • Stored procedures can be used to modify data, but functions cannot.

  • Functions can be called from within a stored procedure.

Add your answer
right arrow

Q242. Explain in detail about how you configure your api w.r.t frontend.

Ans.

API configuration for frontend

  • Define API endpoints and methods

  • Ensure API responses are in the correct format for frontend

  • Implement authentication and authorization

  • Optimize API performance for frontend usage

  • Document API usage for frontend developers

Add your answer
right arrow

Q243. What is a Waterfall Model?

Ans.

Waterfall Model is a linear sequential approach to software development.

  • It follows a sequential process where each phase must be completed before moving to the next.

  • It is a rigid model and changes cannot be made once a phase is completed.

  • It is suitable for projects with well-defined requirements and a stable scope.

  • Examples of industries that use this model are construction and manufacturing.

  • Phases include requirements gathering, design, implementation, testing, deployment, an...read more

View 2 more answers
right arrow

Q244. What are the three infortant finacial statement

Ans.

The three important financial statements are the income statement, balance sheet, and cash flow statement.

  • The income statement shows a company's revenue and expenses over a period of time.

  • The balance sheet shows a company's assets, liabilities, and equity at a specific point in time.

  • The cash flow statement shows a company's inflows and outflows of cash over a period of time.

  • These statements are important for investors, creditors, and management to understand a company's finan...read more

View 3 more answers
right arrow

Q245. What are the methods of PR creation

Ans.

There are three methods of PR creation in SAP MM.

  • Manual creation through ME51N transaction

  • Automatic creation through MRP run

  • Creation through purchase requisition conversion

View 3 more answers
right arrow

Q246. Puzzle( There are 20 packets of cigarettes.The weight of each cigarette is 1 gram in every packet except 1 packet in which the weight of each cigarette is 1.1 gram. .You have a physical balance and just one cha...

read more
Add your answer
right arrow

Q247. what is mean by stress and strain and what are its units?

Ans.

Stress is the force applied to an object, while strain is the deformation caused by that force.

  • Stress is measured in units of force per unit area, such as pounds per square inch (psi) or newtons per square meter (N/m²).

  • Strain is a dimensionless quantity, typically expressed as a percentage or decimal, and is calculated as the change in length or shape divided by the original length or shape.

  • Stress and strain are related by a material's modulus of elasticity, which describes h...read more

Add your answer
right arrow

Q248. What is the current Sensex of India ?

Ans.

The current Sensex of India is constantly changing and can be checked on financial news websites.

  • Sensex is the stock market index of the Bombay Stock Exchange (BSE) in India.

  • It represents the performance of the top 30 companies listed on the BSE.

  • As of now, the Sensex is constantly fluctuating due to various economic factors.

  • One can check the current Sensex value on financial news websites like Moneycontrol, Economic Times, etc.

View 1 answer
right arrow

Q249. Maturity of Agile Software Development Projects Coached and the differences in various categories of Projects.

Ans.

The maturity of Agile software development projects varies across different categories.

  • Agile software development projects can be categorized based on factors such as team size, project complexity, and industry domain.

  • Projects in different categories may have varying levels of Agile maturity.

  • For example, a small team working on a simple project may have a higher Agile maturity compared to a large team working on a complex project.

  • The maturity of Agile projects can be assessed...read more

View 1 answer
right arrow

Q250. What is Page Object Model and page factory

Ans.

Page Object Model is a design pattern in test automation that represents web pages as objects, while Page Factory is a way to initialize elements in Page Object Model.

  • Page Object Model is a design pattern used in test automation to represent web pages as objects

  • It helps in creating reusable code and reduces code duplication

  • Page Factory is a concept in Selenium WebDriver that helps in initializing elements in Page Object Model

  • It uses @FindBy annotation to locate elements on a ...read more

Add your answer
right arrow

Q251. What do you understand by Deadlocks?

Ans.

Deadlocks occur when two or more processes are unable to proceed because each is waiting for the other to finish.

  • Deadlocks happen when two or more processes are blocked and unable to proceed

  • Each process is waiting for a resource that is being held by another process

  • Deadlocks can be prevented by using techniques like resource allocation graphs and banker's algorithm

  • Examples of deadlocks include the dining philosophers problem and the traffic deadlock problem

Add your answer
right arrow

Q252. What are types of File System in OS?

Ans.

Types of file systems in OS include FAT, NTFS, HFS+, ext2/3/4, and APFS.

  • FAT (File Allocation Table) is a simple file system used by older versions of Windows.

  • NTFS (New Technology File System) is a more advanced file system used by newer versions of Windows.

  • HFS+ (Hierarchical File System Plus) is used by Apple's macOS.

  • ext2/3/4 are file systems used by Linux.

  • APFS (Apple File System) is a newer file system used by Apple's macOS and iOS devices.

Add your answer
right arrow

Q253. What do you know about the cloud technologies. What exactly is cloud ?

Ans.

Cloud is a technology that allows users to access data and applications over the internet.

  • Cloud computing is a model for delivering on-demand computing resources over the internet.

  • It includes services like Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).

  • Cloud technology allows for scalability, flexibility, and cost savings compared to traditional on-premise solutions.

  • Examples of cloud providers include Amazon Web Services (AW...read more

Add your answer
right arrow

Q254. What is the difference between Router and firewall

Ans.

Routers connect networks while firewalls protect networks from unauthorized access.

  • Routers direct traffic between networks while firewalls filter traffic based on predefined rules.

  • Routers operate at layer 3 of the OSI model while firewalls operate at layer 4 or higher.

  • Examples of routers include Cisco routers, while examples of firewalls include Fortinet firewalls.

  • Routers can be used to segment networks while firewalls can be used to block malicious traffic.

  • Routers are essent...read more

Add your answer
right arrow

Q255. What are the objects generated after TMG is created

Ans.

Objects generated after TMG creation in SAP ABAP

  • After creating a TMG (Table Maintenance Generator), a function group is generated.

  • The function group contains function modules for maintenance screens, list displays, and authorization checks.

  • A maintenance view is also generated, which is used to maintain the table data.

  • A maintenance dialog is created, which is used to display the maintenance screens.

  • A maintenance object is generated, which is used to store the maintenance dialo...read more

View 1 answer
right arrow

Q256. How would you handle if client deviates from scope and wants to add something in the scope of wants you to work for something that is out of scope plus does not want to pay you

Ans.

I would communicate the impact of the changes on the project timeline and budget and negotiate a new agreement.

  • Discuss the impact of the changes on the project timeline and budget with the client

  • Explain that the changes are outside the scope of the original agreement

  • Negotiate a new agreement that includes the changes and additional compensation

  • Document the changes and new agreement in writing

Add your answer
right arrow

Q257. Which java concepts have you used in your selenium script

Ans.

I have used concepts like OOPs, Exception Handling, Collections, and Multithreading in my Selenium script.

  • Used OOPs concepts like inheritance and polymorphism to create reusable code

  • Implemented Exception Handling to handle unexpected errors and exceptions

  • Used Collections like ArrayList and HashMap to store and retrieve data

  • Implemented Multithreading to run tests in parallel for faster execution

  • Used WebDriver interface to interact with web elements and perform actions

Add your answer
right arrow

Q258. Diff composite and non composite key and then to create primary key without defining primary key what are other alternatives. Ana - Like. Unique, not null, candidate key.

Ans.

Composite key is made up of multiple columns while non-composite key is made up of a single column. Primary key can also be defined using unique, not null, or candidate key.

  • Composite key uses multiple columns to uniquely identify a row while non-composite key uses a single column

  • Primary key can be defined using unique, not null, or candidate key instead of explicitly defining it

  • Candidate key is a unique key that can be used as a primary key

Add your answer
right arrow

Q259. What is an ideal diode?. Draw its input output characteristic curve

Ans.

An ideal diode is a theoretical diode that exhibits zero voltage drop when forward biased and infinite resistance when reverse biased.

  • An ideal diode acts as a perfect conductor when forward biased.

  • It allows current to flow in one direction with zero voltage drop.

  • When reverse biased, it acts as an open circuit with infinite resistance.

  • The input-output characteristic curve of an ideal diode is a vertical line at zero voltage for forward bias and a horizontal line at zero curren...read more

View 1 answer
right arrow

Q260. how will you print any statement in python language?

Ans.

To print a statement in Python, use the print() function.

  • Use the print() function followed by the statement you want to print.

  • Enclose the statement in quotes if it is a string.

  • You can also print variables or expressions by separating them with commas.

  • To print multiple statements on the same line, use the end parameter.

View 1 answer
right arrow

Q261. Batch class and its functions, use of stateful interface in batch class

Ans.

Batch class is used to process large data sets in chunks. Stateful interface maintains state between batches.

  • Batch class implements Database.Batchable interface

  • It has three methods: start(), execute() and finish()

  • Stateful interface is used to maintain state between batches

  • Stateful variables can be declared outside of the execute() method

  • Example: Batch class to update all accounts with a specific field value

Add your answer
right arrow
Q262. What is the contribution of the TATA group towards the betterment of our nation?
Ans.

TATA group has made significant contributions to the nation through various industries and philanthropic initiatives.

  • TATA Steel is one of the largest steel producers in India, contributing to infrastructure development.

  • TATA Motors is a leading automobile manufacturer, driving innovation in the automotive sector.

  • TATA Consultancy Services (TCS) is a global IT services company, creating job opportunities and boosting the economy.

  • TATA Trusts have undertaken numerous social welfar...read more

Add your answer
right arrow

Q263. What do you know about Linked Lists?

Ans.

Linked Lists are a data structure used to store a collection of elements in a linear order.

  • Each element in a linked list is called a node and contains a value and a reference to the next node.

  • Linked lists can be singly linked (each node only has a reference to the next node) or doubly linked (each node has a reference to both the next and previous nodes).

  • Insertion and deletion operations are efficient in linked lists, but accessing elements by index is not.

  • Examples of applica...read more

Add your answer
right arrow

Q264. What is html java script

Ans.

HTML is a markup language used for creating web pages, while JavaScript is a programming language used for adding interactivity to web pages.

  • HTML is used for structuring content on web pages

  • JavaScript is used for adding interactivity and dynamic behavior to web pages

  • HTML is not a programming language, but JavaScript is

  • Example: <html><head><title>Example</title></head><body><script>document.getElementById('demo').innerHTML = 'Hello World!';</script><p id='demo'></p></body></ht...read more

View 31 more answers
right arrow

Q265. What is constructor? Without creating any object it will call or not?

Ans.

A constructor is a special method in a class that is automatically called when an object of that class is created.

  • A constructor typically initializes the object's properties or performs any necessary setup.

  • It is called automatically when an object is created using the 'new' keyword.

  • Constructors do not get called without creating an object.

View 2 more answers
right arrow

Q266. how communication happens between two pods in different namespaces?

Ans.

Communication between pods in different namespaces is possible through services or network policies.

  • Use services to allow communication between pods in different namespaces

  • Create network policies to control traffic flow between pods in different namespaces

  • Ensure proper DNS resolution for pods in different namespaces

View 1 answer
right arrow

Q267. What is difference between static and dynamic routing?

Ans.

Static routing uses manually configured routes while dynamic routing uses protocols to automatically update routes.

  • Static routing requires manual configuration of routes while dynamic routing uses protocols to automatically update routes.

  • Static routing is best suited for small networks with few changes while dynamic routing is better for larger networks with frequent changes.

  • Examples of static routing protocols include OSPF and BGP while examples of dynamic routing protocols ...read more

View 1 answer
right arrow

Q268. What is the type of motor used in ceiling fans?

Ans.

The type of motor used in ceiling fans is an induction motor.

  • Ceiling fans typically use single-phase induction motors.

  • These motors are designed to provide a constant speed and are efficient in converting electrical energy into mechanical energy.

  • The motor consists of a stator and a rotor, with the stator being the stationary part and the rotor being the rotating part.

  • The stator contains windings that create a rotating magnetic field when an alternating current is supplied.

  • The ...read more

View 3 more answers
right arrow

Q269. I will give you a can of milk from which you have to measure exactly 1 litre by using two measurands one of 5 litres and 2 litres?

Ans.

To measure exactly 1 litre of milk, use the 5-litre can to fill the 2-litre can twice, then pour the remaining milk from the 5-litre can into the 2-litre can.

  • Fill the 2-litre can from the 5-litre can.

  • Empty the 2-litre can into a separate container.

  • Repeat the above steps once more.

  • Pour the remaining milk from the 5-litre can into the 2-litre can.

  • Now you have exactly 1 litre of milk in the 2-litre can.

Add your answer
right arrow

Q270. What is python? Why we use it. Is it case sensitive?

Ans.

Python is a high-level, interpreted programming language used for web development, data analysis, and artificial intelligence.

  • Python is easy to learn and has a simple syntax.

  • It has a large standard library with many pre-built modules.

  • Python is used for web development with frameworks like Django and Flask.

  • It is also used for data analysis with libraries like NumPy and Pandas.

  • Python is case sensitive.

  • It is a popular language for artificial intelligence and machine learning.

  • Pyt...read more

Add your answer
right arrow

Q271. What are local variable and global variables? and their default values and program

Ans.

Local variables are declared within a specific function or block, while global variables are declared outside of any function or block.

  • Local variables have a limited scope and are only accessible within the function or block where they are declared.

  • Global variables can be accessed from anywhere in the program.

  • Local variables are created when a function is called and destroyed when the function ends.

  • Global variables are created when the program starts and exist until the progr...read more

Add your answer
right arrow

Q272. What is arraylist ? Advantage over generic arrays ?

Ans.

ArrayList is a dynamic array that can grow or shrink in size. It provides advantages like dynamic resizing and built-in methods.

  • ArrayList is a resizable array implementation of the List interface in Java.

  • It can store elements of any type, including objects and primitives.

  • Advantages over generic arrays include dynamic resizing, automatic memory management, and built-in methods like add(), remove(), etc.

  • Example: ArrayList names = new ArrayList();

  • names.add("John"); names.add("Ja...read more

Add your answer
right arrow

Q273. what is salesforce,governer limits,profiles,roles,visualforce,apex

Ans.

Salesforce is a cloud-based CRM platform. Governor limits are limits on resources. Profiles and roles control access. Visualforce and Apex are development tools.

  • Salesforce is a cloud-based CRM platform used for managing customer data and interactions.

  • Governor limits are limits on resources such as CPU time, database queries, and API calls.

  • Profiles and roles control access to data and functionality within Salesforce.

  • Visualforce is a development tool used for creating custom us...read more

Add your answer
right arrow

Q274. JavaScript 1. let vs var 2. shallow copy vs deep copy 3. timeout and more basics in JS Angular 1. Pipes 2. Dependency Injection 3. Routing

Ans.

A set of questions related to JavaScript and Angular for an Angular Developer interview.

  • let vs var: let is block-scoped while var is function-scoped

  • shallow copy vs deep copy: Shallow copy creates a new reference to the original object, while deep copy creates a new object with its own copy of all nested objects

  • timeout: Used to delay the execution of a function or code block for a specified amount of time

  • Pipes: Used for transforming data in Angular templates

  • Dependency Injectio...read more

Add your answer
right arrow

Q275. there are 3 switches outside a room and the room is locked. Room has got a bulb inside the room and you hav got only one chance to enter the room to see weder d bulb is on or not to find the correct switch as u...

read more
Ans.

You can turn on one switch, wait for a while, turn it off, then turn on another switch. The switch that is on is the correct one.

  • Turn on the first switch and leave it on for a few minutes

  • Turn off the first switch and turn on the second switch

  • Enter the room and check which switch corresponds to the bulb being on

Add your answer
right arrow

Q276. What is rest API and how we achieve it? When we are using spring boot then which annotation first we use during create controller? What is flow of create spring MVC projecf

Ans.

Explanation of REST API, Spring Boot controller annotation, and Spring MVC project flow.

  • REST API is a web service that uses HTTP requests to GET, POST, PUT, and DELETE data.

  • To achieve it, we need to define endpoints, HTTP methods, and data formats.

  • In Spring Boot, we use the @RestController annotation to create a controller.

  • The @RequestMapping annotation is used to map HTTP requests to methods.

  • The flow of creating a Spring MVC project involves defining a model, view, and contr...read more

Add your answer
right arrow

Q277. What are the different type of users in SAP?

Ans.

Different types of users in SAP include dialog users, system users, communication users, service users, and reference users.

  • Dialog users: Used by human users to log in and interact with the SAP system.

  • System users: Used by the system to perform background tasks and operations.

  • Communication users: Used for communication between different systems or components.

  • Service users: Used for specific services or applications within the SAP system.

  • Reference users: Used for reference pur...read more

View 3 more answers
right arrow

Q278. Why is your handwriting bad ? And what steps you take to improve it

Ans.

My handwriting is bad due to lack of practice and poor motor skills. I am taking steps to improve it.

  • I have started practicing writing regularly to improve my motor skills.

  • I am using handwriting improvement books and online resources to learn proper techniques.

  • I am also seeking feedback from others to identify areas of improvement.

  • I am using tools like grip aids and ergonomic pens to make writing more comfortable.

  • I am committed to improving my handwriting and am open to any s...read more

Add your answer
right arrow

Q279. Difference between Structure and Union in C programming language, What is OOPs and it’s features ?

Ans.

Structure and Union are data structures in C. OOPs is Object Oriented Programming paradigm with features like inheritance, polymorphism, encapsulation, and abstraction.

  • Structure is a collection of variables of different data types under a single name. Union is similar but all variables share the same memory location.

  • OOPs is a programming paradigm that focuses on objects and their interactions. It features inheritance, where a class can inherit properties and methods from anot...read more

View 1 answer
right arrow

Q280. Did you participate in any program offered by tcs like codevita etc..?

Ans.

Yes, I have participated in TCS CodeVita.

  • I participated in TCS CodeVita in 2020 and 2021.

  • I was able to solve several coding problems during the competition.

  • Participating in CodeVita helped me improve my coding skills and problem-solving abilities.

Add your answer
right arrow

Q281. How do you deal with Not participating business, not motivated stakeholders? What techniques can be used to 1. Onboard them 2. Get maximum information from them?

Ans.

To deal with unmotivated stakeholders, use techniques like active listening, identifying their needs, and providing incentives.

  • Identify their needs and concerns

  • Actively listen to their feedback

  • Provide incentives or rewards for participation

  • Communicate the benefits of their involvement

  • Offer training or support to increase their understanding

  • Involve them in decision-making processes

View 1 answer
right arrow

Q282. How C++ makes coding easy in comparison to C programming ?

Ans.

C++ provides object-oriented programming and better memory management than C.

  • C++ supports classes and objects which makes code modular and reusable.

  • C++ has better memory management with features like constructors and destructors.

  • C++ supports function overloading and operator overloading which makes code more readable.

  • C++ has a rich library of built-in functions and data types.

  • C++ supports exception handling which makes code more robust.

  • Example: In C, memory allocation and dea...read more

Add your answer
right arrow

Q283. Which are the difference Routing protocols

Ans.

Routing protocols are used to determine the best path for data to travel in a network.

  • Distance Vector protocols: RIP, IGRP, EIGRP

  • Link State protocols: OSPF, IS-IS

  • Hybrid protocols: BGP

  • Path Vector protocols: BGP

  • IGP vs EGP

Add your answer
right arrow

Q284. Can you learn coding, if it is needed?

Ans.

Yes, I am willing to learn coding if it is needed.

  • I have some basic knowledge of coding and am willing to improve my skills.

  • I am a quick learner and can adapt to new technologies easily.

  • I am open to taking courses or attending training sessions to improve my coding skills.

  • Learning coding will also help me better understand the systems I work with.

  • For example, I have experience with Python and SQL, and can learn other languages as needed.

Add your answer
right arrow

Q285. What is your opinion on having two daily scrum calls?

Ans.

Having two daily scrum calls can be beneficial in certain situations.

  • If the team is distributed across different time zones, having two calls can ensure everyone is able to attend at a reasonable time.

  • If the team is large, having two calls can help ensure everyone has a chance to speak and share their updates.

  • However, having two calls can also be time-consuming and may not be necessary for smaller teams or those in the same time zone.

  • Ultimately, the decision to have two daily...read more

View 2 more answers
right arrow

Q286. Suppose attribute C is primary key in table 1.it is also used as a key in table 2.what is that key called.and if we delete some values of C from table 1 can we get the values from table 2?

Add your answer
right arrow

Q287. how to use synchronization in java

Ans.

Synchronization in Java is used to control access to shared resources by multiple threads.

  • Synchronization can be achieved using synchronized keyword or locks.

  • It ensures that only one thread can access the shared resource at a time.

  • Synchronization can be applied to methods or blocks of code.

  • Example: synchronized void method() { //code }

  • Example: synchronized(obj) { //code }

View 2 more answers
right arrow

Q288. What are the properties of Constructor?

Ans.

Constructor is a special method used to initialize objects in a class.

  • Constructors have the same name as the class they belong to.

  • They are called automatically when an object is created.

  • They can take parameters to initialize the object's properties.

  • They do not have a return type.

  • Multiple constructors can be defined with different parameters.

  • Example: public class Car { public Car(String make, String model) { ... } }

Add your answer
right arrow

Q289. DataFrames and DatasetsHow do you create a DataFrame in PySpark?Explain the difference between a DataFrame and a Dataset in Spark.How can you perform joins in PySpark DataFrames? Give examples.What are some com...

read more
Ans.

Creating and working with DataFrames in PySpark

  • To create a DataFrame in PySpark, you can use the createDataFrame() method from the SparkSession object.

  • DataFrames are structured and immutable collections of data, while Datasets are distributed collections of data with additional features like type-safety.

  • To perform joins in PySpark DataFrames, you can use the join() method with the appropriate join type (inner, outer, left, right).

  • Common DataFrame operations include filtering,...read more

Add your answer
right arrow
Q290. How would you cut a cake into 3 pieces in 3 cuts?
Ans.

Cut the cake horizontally into two equal halves, then cut one of the halves vertically in the middle.

  • First, cut the cake horizontally into two equal halves.

  • Next, cut one of the halves vertically in the middle.

  • You will now have three equal pieces of cake.

  • Example: Cut the cake horizontally into two halves, then cut one half vertically in the middle.

Add your answer
right arrow

Q291. What is the difference between smoke testing and sanity testing?

Ans.

Smoke testing is a preliminary test to check if the software build is stable, while sanity testing is a subset of regression testing to verify specific functionality.

  • Smoke testing is done to ensure the critical functionalities of the software are working fine after a build, while sanity testing is done to verify specific changes or fixes.

  • Smoke testing is a shallow and wide approach to testing, covering all major areas of the software, while sanity testing is a focused and nar...read more

Add your answer
right arrow

Q292. What is the difference between retesting and regression testing?

Ans.

Retesting focuses on testing the same functionality again, while regression testing focuses on testing the impact of changes on existing functionalities.

  • Retesting is done to ensure that a specific bug or issue has been fixed properly.

  • Regression testing is done to ensure that new code changes have not adversely affected existing functionalities.

  • Retesting is usually performed by the same tester who found the bug, while regression testing can be performed by any tester.

  • Examples:...read more

Add your answer
right arrow

Q293. What tools are available in the market for automation testing?

Ans.

Some popular tools for automation testing include Selenium, Appium, JUnit, TestNG, and Cucumber.

  • Selenium: widely used for web application testing

  • Appium: for mobile application testing

  • JUnit: for unit testing in Java

  • TestNG: for testing in Java

  • Cucumber: for behavior-driven development testing

Add your answer
right arrow

Q294. Write a code to allocate the memory to object?

Ans.

Code to allocate memory to an object

  • Use the 'new' keyword in C++ to allocate memory to an object

  • Use 'malloc' function in C to allocate memory to an object

  • In Java, memory is automatically allocated to an object using 'new' keyword

  • In Python, memory is automatically allocated to an object when it is created

Add your answer
right arrow

Q295. Porter's model, role of advertisement, cash flow, balance sheet?

Ans.

Porter's model analyzes industry competition, advertisement influences market positioning, cash flow reflects financial health, balance sheet shows assets and liabilities.

  • Porter's model is a framework that helps analyze industry competition and develop competitive strategies.

  • Advertisement plays a crucial role in influencing market positioning and brand perception.

  • Cash flow is a measure of the money flowing in and out of a company, indicating its financial health and ability t...read more

View 2 more answers
right arrow
Q296. How do you create a form in React JS and monitor the value changes?
Ans.

To create a form in React JS and monitor value changes, you can use state to store form data and handle onChange events.

  • Use state to store form data

  • Handle onChange events to update state with new values

  • Use controlled components to ensure form data is synced with state

View 1 answer
right arrow

Q297. What is the master data of MM

Ans.

Master data of MM includes material, vendor, and customer data.

  • Material master data includes information about the materials that a company procures, produces, or sells.

  • Vendor master data includes information about the vendors that a company does business with.

  • Customer master data includes information about the customers that a company sells products or services to.

View 6 more answers
right arrow

Q298. What are profit and loss account

Ans.

Profit and loss account is a financial statement that shows a company's revenues, expenses, and net income or loss for a specific period.

  • It is also known as income statement or statement of operations.

  • It shows the company's financial performance over a specific period of time.

  • Revenues are the income generated by the company, while expenses are the costs incurred to generate that income.

  • Net income or loss is the difference between revenues and expenses.

  • It helps in evaluating t...read more

View 4 more answers
right arrow

Q299. What is the difference between list and tuple (in python)?

Ans.

List and tuple are both data structures in Python, but they have some differences.

  • Lists are mutable, while tuples are immutable.

  • Lists use square brackets [], while tuples use parentheses ().

  • Lists are typically used for collections of homogeneous items, while tuples are used for heterogeneous items.

  • Lists are usually used for sequences that will be modified, while tuples are used for sequences that will not be modified.

  • Lists have more built-in methods than tuples.

View 2 more answers
right arrow

Q300. what is controls in UI and how you design them in angular/react/vue?

Ans.

Controls in UI are interactive elements that allow users to input data or interact with the application.

  • Controls include buttons, input fields, checkboxes, dropdowns, sliders, etc.

  • In Angular, controls are designed using directives like ngModel, ngForm, ngIf, ngFor, etc.

  • In React, controls are created as components with state and props to manage user input.

  • In Vue, controls are defined in the template using v-model, v-bind, v-on directives.

Add your answer
right arrow
Previous
1
2
3
4
5
6
7
Next
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Top TCS Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter