Add office photos
Engaged Employer

Bajaj Finserv Health

3.4
based on 197 Reviews
Filter interviews by

Wipro Interview Questions and Answers

Updated 9 Jan 2025

Q1. Ninja And The Fence Problem Statement

Ninja is given a task of painting a fence with ‘N’ posts using ‘K’ different colors. The task requires that not more than two adjacent posts have the same color. Your goal ...read more

Ans.

The task is to determine the number of ways to paint a fence with 'N' posts using 'K' different colors, with the constraint that not more than two adjacent posts have the same color.

  • Use dynamic programming to solve the problem efficiently.

  • Consider the cases where the last two posts have the same color and different colors separately.

  • Keep track of the number of ways to paint the fence at each post using a 2D array.

  • Apply modulo 10^9 + 7 to avoid overflow issues.

  • Return the final...read more

Add your answer

Q2. Reverse the String Problem Statement

You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

Example:

Input:
STR = "abcde"
Output:
"edcba"

Input...read more

Ans.

Reverse a given string containing alphabets, numbers, and special characters.

  • Iterate through the string from the end to the beginning and append each character to a new string.

  • Use built-in functions like reverse() or slicing to reverse the string.

  • Handle special characters and numbers while reversing the string.

  • Ensure to consider the constraints on the length of the string and number of test cases.

Add your answer

Q3. Delete a Node from Linked List Problem Statement

Given a linked list of integers, your task is to implement a function that deletes a node at a specified position, 'POS'.

If the specified position is greater th...read more

Ans.

Implement a function to delete a node at a specified position in a linked list.

  • Traverse the linked list to find the node at the specified position.

  • Update the pointers to skip over the node to be deleted.

  • Handle edge cases like deleting the head or tail of the linked list.

  • Return the modified linked list.

Add your answer

Q4. what is the angle between minute and hour hand at 1:15

Ans.

The angle between the minute and hour hand at 1:15 is 7.5 degrees.

  • At 1:15, the minute hand is at 3 and the hour hand is slightly past 1

  • Calculate the angles covered by each hand from 12 o'clock position

  • Subtract the smaller angle from the larger angle to get the angle between the hands

Add your answer
Discover Wipro interview dos and don'ts from real experiences

Q5. Count Pairs with Given Sum

Given an integer array/list arr and an integer 'Sum', determine the total number of unique pairs in the array whose elements sum up to the given 'Sum'.

Input:

The first line contains ...read more
Ans.

Count the total number of unique pairs in an array whose elements sum up to a given value.

  • Use a hashmap to store the frequency of each element in the array.

  • Iterate through the array and for each element, check if (Sum - current element) exists in the hashmap.

  • Increment the count of pairs if the complement exists in the hashmap.

  • Divide the count by 2 to avoid counting duplicates like (arr[i], arr[j]) and (arr[j], arr[i]) separately.

Add your answer

Q6. sell me pen? I want to replace the screen of my phone as it is broken, now try to convince me to buy a new phone in place of replacing the screen of my old phone

Ans.

Replacing the screen of your old phone may not be cost-effective in the long run. Buying a new phone can offer better features and performance.

  • Replacing the screen may not fix other potential issues with the phone

  • A new phone may offer better camera, battery life, and processing power

  • You can take advantage of new technology and features with a new phone

  • The cost of replacing the screen may be close to the cost of a new phone

  • A new phone may come with a warranty and better custom...read more

Add your answer

Q7. What is the event loop in javascript?

Ans.

The event loop in JavaScript is responsible for handling asynchronous operations by continuously checking the call stack and the callback queue.

  • The event loop continuously checks the call stack for any functions that need to be executed.

  • If the call stack is empty, the event loop checks the callback queue for any asynchronous tasks that have completed.

  • The event loop then pushes these tasks onto the call stack for execution.

  • Example: setTimeout() function in JavaScript uses the ...read more

Add your answer

Q8. What are closures in javascript?

Ans.

Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.

  • Closures allow functions to access variables from their outer scope

  • They are created when a function is defined within another function

  • Closures can be used to create private variables and functions

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Wipro

based on 20 interviews
Interview experience
4.3
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.8
 • 1.5k Interview Questions
4.0
 • 867 Interview Questions
3.9
 • 414 Interview Questions
3.8
 • 211 Interview Questions
4.4
 • 202 Interview Questions
3.6
 • 184 Interview Questions
View all
Top Bajaj Finserv Health Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter