i
HCLTech
Filter interviews by
I was interviewed in Dec 2024.
20 - MCQ test related C&C++ basic to advance
2 - coding questions -
1) create class which allows only one instance creation at a time if you try to create another before deleting existing object then class should throw exception..
2) find the distance between leftmost string and rightmost string(string's chars order doesn't matter) In a given long shuffled string.
Ex :-
Shuffled string = "xaxxcxbxxxcxxaxxbx"
target string= "abc"
Ans: 3
(Leftmost string is last index 6
Right most is 9 so 9-6=3)
Note:- other chars not necessarily 'x' it can be any
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Bit shift 1 by 4 positions from LSB results in 16
Use the left shift operator (<<) to shift the bits by 4 positions
1 << 4 = 16
Use a loop to copy characters from one string to another
Create two character arrays to store the strings
Use a loop to iterate through each character of the source string and copy it to the destination string
Add a null terminator at the end of the destination string to mark the end of the copied string
A function pointer is a variable that stores the address of a function. Its signature includes the return type and parameter types of the function.
Function pointers allow for dynamic function calls based on the stored address
Syntax: return_type (*pointer_name)(parameter_types)
Example: void (*funcPtr)(int) = &someFunction;
Polymorphism is the ability of a function 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 (function overloading) and runtime (virtual functions).
Example: A base class Animal with a virtual function 'makeSound'. Subclasses Dog and Cat override 'makeSound' to bark
Compile time polymorphism is achieved through function overloading and templates in C++.
Compile time polymorphism allows for different functions to be called based on the arguments provided at compile time.
Function overloading is a form of compile time polymorphism where multiple functions have the same name but different parameters.
Templates in C++ allow for generic programming and compile time polymorphism by creatin...
Overload + operator to add two complex numbers in C++.
Define a class for complex numbers with real and imaginary parts.
Overload the + operator as a member function of the class.
Return a new complex number with the sum of real and imaginary parts.
To delete a node from a linked list, update the pointers of the previous node to skip the node to be deleted.
Traverse the linked list to find the node to be deleted
Update the pointers of the previous node to skip the node to be deleted
Free the memory allocated to the node to be deleted
I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.
What people are saying about HCLTech
Reverse the order of strings in an array
Iterate through the array and swap the elements from start to end
Use two pointers, one at the beginning and one at the end, to swap elements
Example: Input array ['apple', 'banana', 'cherry'] becomes ['cherry', 'banana', 'apple'] after reversing
The design pattern used in my project is the Observer pattern.
Implemented to establish a one-to-many dependency between objects.
Allows multiple objects to listen and react to changes in a subject.
Promotes loose coupling between objects.
Example: Used to notify multiple UI components when a data model changes.
I applied via Naukri.com and was interviewed in Jul 2022. There was 1 interview round.
I applied via Company Website and was interviewed in Dec 2024. There were 5 interview rounds.
An aptitude test is an assessment to measure a candidate mental aptitude/mental ability
I am a passionate software developer with 5 years of experience in web development and a strong background in computer science.
5 years of experience in web development
Strong background in computer science
Passionate about software development
My strongest points include problem-solving skills, attention to detail, and ability to work well in a team.
Strong problem-solving skills - I enjoy tackling complex issues and finding creative solutions.
Attention to detail - I am meticulous in my work and strive for perfection in every task.
Team player - I collaborate effectively with colleagues, communicate openly, and contribute positively to group projects.
I regularly use Java, Python, and SQL in my work as a Software Developer.
Java
Python
SQL
A group discussion is a structured conversation in which participants share their ideas, perspectives, and solutions on a specific topic.
I am motivated to seek employment at Wipro because of their reputation for innovation and opportunities for growth.
Impressed by Wipro's track record of delivering cutting-edge solutions
Excited about the chance to work with a diverse and talented team
Eager to take advantage of Wipro's professional development programs
My long-term career goal is to become a lead software developer and eventually move into a management role.
Advance to a lead software developer position
Gain experience in managing a team of developers
Develop strong leadership and communication skills
Continue learning new technologies and staying updated with industry trends
Assignment details refer to the specifics of an assignment, including any documents and/or emails or subsequent correspondence between the company and the client.
I was interviewed in Dec 2024.
Any one tell in gd in 5 minutes in english
1. Numerical Reasoning
- Example: "If a car travels 60 km in 1 hour, how long will it take to travel 150 km at the same speed?"
2. **Verbal Reasoning**
- Example: "Which of the following words is most similar in meaning to 'elated'? (a) Sad (b) Happy (c) Angry (d) Tired"
3. **Logical Reasoning**
- Example: "If all cats are animals, and all animals are living beings, are all cats living beings? (True/False)"
4. **Data Interpretation**
- Example: "Given a graph showing sales data over the past 12 months, what was the highest monthly sales figure?"
5. **Pattern Recognition**
- Example: "What comes next in the series: 2, 4, 8, 16, __?"
6. **Mathematical Reasoning**
- Example: "If 3x + 4 = 19, what is the value of x?"
7. **Spatial Reasoning**
- Example: "Which shape is different from the others: Square, Circle, Triangle, Rectangle?"
8. **Time and Work Problems**
- Example: "If A can finish a task in 5 days and B can finish the same task in 10 days, how long will it take for both A and B to complete the task together?"
Tell me about yourself.
Why do you want to work here?
What are your strengths and weaknesses?
Why did you leave your previous job (or why are you looking for a new one)?
Where do you see yourself in 5 years?
Can you describe a time when you faced a challenge at work and how you handled it?
How do you prioritize your tasks?
What motivates you?
How do you handle working under pressure or tight deadlines?
What are your salary expectations?
How do you deal with conflict in the workplace?
Do you prefer working independently or as part of a team?
These questions help HR gauge how well you would fit into the company culture and how your experience aligns with the role. It's a good idea to prepare for them with specific examples from your past experie
The Aptitude test typically includes questions that assess your logical reasoning, problem-solving skills, and ability to think critically. It can cover a wide range of topics depending on the job you're applying for, but here are some common types of questions you might encounter:
Numerical Reasoning
Example: "If a car travels 60 km in 1 hour, how long will it take to travel 150 km at the same speed?"
Verbal Reasoning
Example: "Which of the following words is most similar in meaning to 'elated'? (a) Sad (b) Happy (c) Angry (d) Tired"
Logical Reasoning
Example: "If all cats are animals, and all animals are living beings, are all cats living beings? (True/False)"
Data Interpretation
Example: "Given a graph showing sales data over the past 12 months, what was the highest monthly sales figure?"
Pattern Recognition
Example: "What comes next in the series: 2, 4, 8, 16, __?"
Mathematical Reasoning
Example: "If 3x + 4 = 19, what is the value of x?"
Spatial Reasoning
Example: "Which shape is different from the others: Square, Circle, Triangle, Rectangle?"
Time and Work Problems
Example: "If A can finish a task in 5 days and B can finish the same task in 10 days, how long will it take for both A and B to complete the task together?"
To prepare, it's helpful to practice problems in these areas. Many online platforms offer free aptitude tests to help you improve your skills before the actual test.
Case study
In a case study interview, you'll be given a real-world business problem and asked to analyze the situation and come up with solutions or recommendations. The goal is to evaluate your problem-solving, analytical thinking, and decision-making abilities.
**Coding tests** are commonly used in technical interviews to evaluate your programming skills. These tests usually involve solving algorithmic problems, debugging code, or writing efficient code to handle certain tasks. Here are the general types of coding tests you might encounter:
### 1. **Algorithm and Data Structure Questions:**
These focus on your ability to use algorithms and data structures to solve problems efficiently.
- **Sorting and Searching**
Example: Implement a sorting algorithm like QuickSort or MergeSort, or write a binary search function.
- **Linked Lists**
Example: Reverse a linked list or detect a cycle in a linked list.
- **Trees and Graphs**
Example: Find the height of a binary tree, or perform a breadth-first search (BFS) or depth-first search (DFS) on a graph.
- **Dynamic Programming**
Example: Solve problems like the Fibonacci sequence, the knapsack problem, or longest common subsequence.
- **Recursion**
Example: Write a function that calculates factorials or solves the Towers of Hanoi problem.
### 2. **String Manipulation:**
These problems test your ability to handle and manipulate strings efficiently.
- Example: Write a function to check if a string is a palindrome, or find the longest substring without repeating characters.
### 3. **Mathematical Problems:**
These involve solving problems with mathematical concepts.
- Example: Check if a number is prime, or find the greatest common divisor (GCD) of two numbers.
### 4. **Array and Matrix Problems:**
These involve operations and algorithms on arrays or matrices.
- Example: Rotate a matrix, find the maximum sum subarray (Kadane’s algorithm), or merge two sorted arrays.
### 5. **Problem Solving with Constraints:**
In some cases, you may be given a problem where you need to optimize for time or space complexity.
- Example: Write an algorithm that finds the shortest path in a maze with obstacles, and ensure that it runs in O(n log n) time.
### 6. **Debugging:**
In some coding tests, you might be asked to debug a given piece of code that’s producing errors or incorrect output.
### 7. **Object-Oriented Design:**
These questions test your ability to design systems and classes using object-oriented principles.
- Example: Design a class to represent a library system, or implement a parking lot with multiple types of vehicles.
---
### Tips for Coding Tests:
1. **Understand the Problem:**
- Read the problem statement carefully before jumping into writing code.
- Clarify the input, output, and constraints with the interviewer (if needed).
2. **Plan Your Approach:**
- Before writing code, think about the algorithm you’ll use and the time/space complexity.
- Break down the problem into smaller steps and outline your solution.
3. **Write Clean, Efficient Code:**
- Focus on writing readable and efficient code.
- Optimize your solution to handle edge cases and large input sizes.
4. **Test Your Solution:**
- Test your code with sample inputs, including edge cases (empty input, large numbers, etc.).
5. **Communicate Your Thought Process:**
- As you write your code, explain your approach to the interviewer. This shows your problem-solving process.
### Example Coding Problem:
**Problem:**
Write a function to find the "Nth" Fibonacci number.
**Solution:**
```python
def fibonacci(n):
if n <= 1:
return n
a, b = 0, 1
for i in range(2, n+1):
a, b = b, a + b
return b
```
**Explanation:**
- The Fibonacci sequence starts with 0 and 1, and each subsequent number is the sum of the two preceding ones.
- We use an iterative approach to calculate the Fibonacci number at the nth position.
### Practice Platforms:
To prepare for coding tests, you can practice on the following platforms:
- **LeetCode**
- **HackerRank**
- **CodeSignal**
- **Codewars**
- **Exercism**
These platforms provide a wide variety of problems to improve your coding skills and familiarize yourself with common interview questions.
An **assignment** in the context of a job or academic setting is typically a task or project that you're asked to complete as part of your evaluation. The nature of the assignment will depend on the type of role or course you're involved with. Below are a few types of assignments you might encounter, along with how you can approach them:
### 1. **Technical Assignment (for a tech role)**
If you're applying for a technical position (like software engineering or data science), you might be given a coding or algorithm-based task. This could include:
- **Building a program or web app**: You might be asked to create a simple application, implement an algorithm, or design a feature based on the company’s needs.
- **Data Analysis**: Given a dataset, you may be required to clean, analyze, and extract insights from it using tools like Excel, SQL, Python, or R.
- **Problem-Solving Tasks**: Solve algorithmic problems or complete coding challenges (similar to those in a coding interview).
**Approach:**
- **Understand the requirements**: Read the assignment carefully, understand the scope, and ask any questions if something isn’t clear.
- **Plan your solution**: Break down the task into smaller steps. Plan your code, database queries, or analysis method.
- **Test thoroughly**: Ensure your code or solution works with a variety of inputs, including edge cases.
- **Document your work**: Include comments in your code, and provide a brief explanation of your approach and thought process.
---
### 2. **Business Assignment (for a business role)**
In a business-related position, the assignment could involve:
- **Case Studies**: You may be given a hypothetical business problem, like a company facing challenges in sales or operations. You'll need to analyze the issue, suggest solutions, and present them clearly.
- **Market Research**: Conduct research about an industry or competitors, analyze trends, and compile a report with insights and recommendations.
- **Business Strategy**: Devise a strategy to help a company grow, expand its market, or improve operations.
**Approach:**
- **Identify key issues**: Make sure to fully understand the business problem, and highlight any key challenges.
- **Gather data**: Use relevant data, facts, or market trends to support your arguments.
- **Develop a solution**: Propose actionable solutions with clear reasoning, potential risks, and benefits.
- **Present your findings**: Structure your report or presentation logically, and be ready to defend your solution.
---
### 3. **Design or Creative Assignment**
For roles in design (graphic design, UX/UI, etc.), the assignment may involve:
- **Creating visual designs**: You could be tasked with designing logos, web pages, or app interfaces.
- **Developing a brand concept**: Designing a complete branding package, such as a logo, color scheme, and typography.
- **Wireframing or Prototyping**: Designing a prototype for a mobile or web application.
**Approach:**
- **Understand the brand or problem**: Research the company or product and ensure your design aligns with its values, audience, and goals.
- **Sketch or wireframe first**: Create initial mock-ups or wireframes before jumping into the final design.
- **Seek feedback**: If possible, get feedback from others to improve your design.
- **Present your design**: Provide context on how your design decisions align with the brand or project goals.
---
### 4. **Writing Assignment**
In fields like marketing, journalism, or academia, writing assignments are common. These might include:
- **Content creation**: Write a blog post, article, or social media content.
- **Research paper or essay**: You may be asked to write a research paper, analysis, or essay on a particular topic.
- **Copywriting**: Write persuasive copy for advertisements, websites, or product descriptions.
**Approach:**
- **Research thoroughly**: Understand the topic you're writing about, and gather credible sources or data.
- **Create an outline**: Organize your thoughts logically before writing the full content.
- **Write and revise**: Draft the assignment, then revise it for clarity, conciseness, and flow.
- **Proofread**: Make sure your writing is free of grammar or spelling errors.
---
### General Tips for Completing an Assignment:
- **Time Management**: Plan your time carefully. Break down the assignment into smaller tasks and set deadlines for each task.
- **Quality over Quantity**: Focus on providing a well-thought-out solution rather than rushing to complete a lot of work.
- **Seek Feedback**: If you're unsure about your approach, don't hesitate to ask for feedback from colleagues, peers, or mentors.
- **Polish Your Presentation**: Whether it's a report, code, or design, make sure your final deliverable is polished and easy to understand.
---
Would you like more specific guidance on a particular type of assignment you're working on?
posted on 21 Dec 2024
I applied via Campus Placement
General aptitude, computer science fundamentals multiple-choice questions, and data structures and algorithms multiple-choice questions were asked.
Function to reverse a given string
Create an empty string to store the reversed string
Iterate through the input string in reverse order and append each character to the new string
Return the reversed string
Binary search function to find target value in sorted array
Define function that takes sorted array and target value as input
Initialize variables for start, end, and middle indices
Use while loop to iterate until start is less than or equal to end
Graduating with honors, winning a hackathon, volunteering in a developing country
Graduated with honors from university with a degree in Computer Science
Won first place in a hackathon competition by developing a unique and innovative software solution
Volunteered in a developing country to help build schools and provide education to underprivileged children
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
posted on 25 Jan 2025
Interview experience
based on 1 review
Rating in categories
Software Engineer
22.6k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.9k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
Senior Software Engineer
15.6k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.8k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14.1k
salaries
| ₹1.3 L/yr - ₹6.7 L/yr |
TCS
Wipro
Accenture
Cognizant