KPIT Technologies
TCS Interview Questions and Answers
Q1. Write a code to find if two words are anagrams
Code to check if two words are anagrams
Convert both words to lowercase
Remove all spaces and punctuation
Sort the characters in both words
Compare the sorted words
Q2. How does the CAN TP (Controller Area Network Transport Protocol) work?
CAN TP is a protocol used for transferring large data packets over Controller Area Network.
CAN TP breaks large data packets into smaller segments for transmission
It uses flow control mechanisms to ensure all segments are received and retransmits if necessary
CAN TP is commonly used in automotive and industrial applications
Q3. Prepare all UART, SPI, CAN, I2C timing digrams their frame format.
Explanation of UART, SPI, CAN, I2C timing diagrams and frame formats.
UART: asynchronous serial communication, start and stop bits, baud rate
SPI: synchronous serial communication, master-slave architecture, clock polarity and phase
CAN: differential serial communication, arbitration, error detection and correction
I2C: synchronous serial communication, master-slave architecture, addressing, clock stretching
Q4. Difference between final, finalize and finally
final, finalize and finally are three different things in Java
final is a keyword used to declare a constant value
finalize is a method called by garbage collector before destroying an object
finally is a block used in try-catch to execute code regardless of exception
Q5. palindrome of a string java 8 features
Palindrome of a string using Java 8 features
Use StringBuilder to reverse the string
Use String.join() to concatenate the reversed string with the original string
Use String.equalsIgnoreCase() to compare the concatenated string with the original string
Q6. how to handle workload
Handling workload requires prioritization, delegation, and time management.
Prioritize tasks based on urgency and importance
Delegate tasks to team members with appropriate skills and workload capacity
Manage time effectively by setting realistic deadlines and avoiding multitasking
Regularly review and adjust workload to ensure productivity and avoid burnout
Q7. Explain autosar layer
AUTOSAR (Automotive Open System Architecture) is a standardized software architecture for automotive systems.
AUTOSAR is a layered architecture consisting of four layers: Application Layer, Runtime Environment (RTE) Layer, Basic Software Layer, and Microcontroller Abstraction Layer (MCAL).
Each layer in AUTOSAR has specific responsibilities and interfaces with other layers to ensure modularity and reusability of software components.
For example, the Basic Software Layer provides...read more
Interview Process at TCS
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month