Accenture
IBM Interview Questions and Answers
Q1. Write the sentence which you hear in AI tool.
The sentence you hear in an AI tool
AI tool: 'Hello, how can I assist you today?'
AI tool: 'Please provide your query for me to analyze.'
AI tool: 'I am here to help with any questions you may have.'
Q2. Difference between arraylist, set, hashmap and linkedhashmap
ArrayList is a resizable array, Set is a collection of unique elements, HashMap is a key-value pair collection, LinkedHashMap maintains insertion order.
ArrayList: dynamic array, allows duplicate elements, slower for insertion/deletion
Set: collection of unique elements, faster for checking element existence
HashMap: key-value pair collection, allows one null key, faster for key-based operations
LinkedHashMap: maintains insertion order, slower for key-based operations
Q3. Create a stock without using built-in library
Create a stock without using built-in library
Create a class Stock with attributes like name, price, quantity, etc.
Implement methods like buy, sell, updatePrice, etc. to manipulate the stock data
Use arrays or custom data structures to store and manage stock information
Q4. Reverse the linked list using recursion
Reverse a linked list using recursion
Create a recursive function to reverse the linked list
Pass the current node and its next node as parameters in the function
Update the next pointer of the current node to point to the previous node
Q5. Internal working of hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine its index in the array.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap allows null keys and values, but only one null key.
HashMap is not synchronized, so it is not thread-safe. Use Conc...read more
Q6. Tech stack used
Our tech stack includes Java, Spring Boot, Angular, and MySQL.
Java
Spring Boot
Angular
MySQL
More about working at Accenture
Interview Process at IBM
Reviews
Interviews
Salaries
Users/Month