TCS
20+ Amazon Development Centre India Interview Questions and Answers
Q1. What is Oops ? What is class? What is Exception? How do we Handle Exception?
Oops stands for Object-Oriented Programming. Class is a blueprint for creating objects. Exception is an error that disrupts the normal flow of a program.
Oops stands for Object-Oriented Programming
Class is a blueprint for creating objects
Exception is an error that disrupts the normal flow of a program
Handling exceptions can be done using try-catch blocks
Example: try { // code that may throw exception } catch (Exception e) { // handle the exception }
Q2. What do you know about OOPS concepts
OOPS concepts refer to Object-Oriented Programming principles such as inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: Parent class 'Animal' and child class 'Dog'.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class 'Car' with private variables and public methods.
Polymorphism: Ability to present the same interface for different d...read more
Q3. 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.
Q4. React Life cycle with hooks and classes
React life cycle methods manage component behavior during creation, updating, and destruction.
Classes: componentDidMount, componentDidUpdate, componentWillUnmount
Hooks: useEffect, useState, useContext
Classes: Used for managing state and side effects in class components
Hooks: Introduced in React 16.8 for functional components
Example: useEffect hook replaces componentDidMount and componentDidUpdate in functional components
Q5. 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
Q6. 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
Q7. 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
Q8. 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
Q9. tell me about llm models
LLM models are a type of machine learning model that combines both labeled and unlabeled data for training.
LLM stands for Labeled Labeled Model
They are used in semi-supervised learning where only a small portion of the data is labeled
LLM models can improve performance by leveraging the unlabeled data to learn more about the underlying structure of the data
Q10. Redux flow with react
Redux is a predictable state container for JavaScript apps. It helps manage the state of your application in a single store.
Redux is commonly used with React to manage the state of components.
Actions are dispatched to update the state in the Redux store.
Reducers specify how the state should change in response to actions.
Selectors are used to extract specific pieces of state from the store.
Middleware can be used to add additional functionality to Redux, such as logging or asyn...read more
Q11. What are power apps
Power Apps are a suite of apps, services, connectors, and a data platform that provides a rapid application development environment for building custom business apps.
Power Apps allow users to create custom apps without the need for extensive coding knowledge.
They can be used to streamline business processes, automate tasks, and connect to various data sources.
Power Apps can be integrated with other Microsoft services like Power BI, SharePoint, and Dynamics 365.
Examples of Pow...read more
Q12. Explain objects and classes
Objects are instances of classes in object-oriented programming, representing real-world entities with properties and behaviors.
Objects are instances of classes, which act as blueprints for creating objects.
Classes define the properties and behaviors of objects.
Objects can have attributes (properties) and methods (behaviors).
Example: Class 'Car' defines properties like 'color' and 'model', and methods like 'drive' and 'stop'. An object 'myCar' can be created from this class.
Q13. 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
Q14. 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
Q15. Write a sorting program
A sorting program to sort an array of strings
Use a sorting algorithm like bubble sort, selection sort, or quicksort
Compare strings using strcmp() function in C or compareTo() method in Java
Handle edge cases like empty array or array with only one element
Q16. Different commands in sql
SQL commands are used to interact with databases to perform various operations like querying, updating, and deleting data.
SELECT: Retrieve data from a database
INSERT: Add new records to a table
UPDATE: Modify existing records in a table
DELETE: Remove records from a table
CREATE TABLE: Create a new table in the database
ALTER TABLE: Modify the structure of an existing table
DROP TABLE: Delete a table from the database
Q17. Explain cache memory
Cache memory is a small, high-speed memory unit located between the CPU and main memory, used to store frequently accessed data and instructions.
Cache memory is faster than main memory, allowing for quicker access to data.
It helps improve overall system performance by reducing the time needed to access data.
There are different levels of cache memory (L1, L2, L3) with varying sizes and speeds.
Examples of cache memory include CPU cache and web browser cache.
Q18. Explain Polymorphism
Polymorphism is the ability of a function or method to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Animal class with methods like eat() can be inherited by classes like Dog and Cat, which can override the eat() method to behave differently.
Q19. Syntax for c program
Syntax for a C program involves writing code using specific rules and conventions.
Include header files using #include directive
Declare main function as int main()
Use semicolons to end statements
Use curly braces to define code blocks
Declare variables before using them
Q20. Explain joins in sql
Joins in SQL are used to combine rows from two or more tables based on a related column between them.
Joins are used to retrieve data from multiple tables based on a related column
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column
More about working at TCS
Top HR Questions asked in Amazon Development Centre India
Interview Process at Amazon Development Centre India
Top Associate Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month