TCS
Thomson Press India Interview Questions and Answers
Q1. How many types of conductors are there
There are two main types of conductors: metallic conductors and electrolytic conductors.
Metallic conductors: materials like copper, aluminum, and gold that allow the flow of electricity with minimal resistance.
Electrolytic conductors: materials like electrolyte solutions that conduct electricity through the movement of ions.
Q2. Sort array and return the array
Sort array of strings and return the sorted array
Use built-in sort function in the programming language of choice
Ensure to specify the sorting order (ascending or descending)
Handle edge cases like empty array or array with single element
Q3. What is current react version
The current version of React is 17.0.2
Current version is 17.0.2
React follows semantic versioning
Always check official documentation for latest version
Q4. how to configure redux
Redux can be configured by creating a store, defining reducers, and connecting components.
Create a Redux store using createStore() function from Redux library
Define reducers to specify how the state should change in response to actions
Use combineReducers() to combine multiple reducers into a single reducer function
Connect components to the Redux store using connect() function from react-redux library
Q5. How to execute Java program
To execute a Java program, compile the source code using the javac command and then run the compiled code using the java command.
Open a command prompt or terminal
Navigate to the directory where the Java source code file is located
Compile the source code using the javac command: javac YourProgram.java
Run the compiled code using the java command: java YourProgram
Ensure that the Java Development Kit (JDK) is installed and the PATH environment variable is set correctly
Q6. Give the most repeated number
The most repeated number in an array
Iterate through the array and keep track of the frequency of each number
Find the number with the highest frequency
Return that number as the most repeated number
Q7. Explain abt oops concept
Object-oriented programming (OOP) is a programming paradigm that organizes code into objects with properties and behaviors.
OOP focuses on creating reusable code by using classes and objects.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Encapsulation hides the internal details of an object and provides a public interface.
Inheritance allows classes to inherit properties and behaviors from other classes.
Polymorphism enables objects to take on multiple fo...read more
More about working at TCS
Top HR Questions asked in Thomson Press India
Interview Process at Thomson Press India
Top Associate Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month