Pentair Coding Questions And Answers

Most Asked Pentair Coding Questions 2023

On this page, you will find out details of the Pentair Recruitment Process which included Group Discussions and Technical Interviews. Go through this page to get other insights on the Job Profile, CTC Offered, Job Location, Steps involved in the recruitment process, etc of the company.

pentair-recruitment-process

About Pentair

Pentair, formally known as Pentair Water India Pvt Ltd. mainly focuses on Water Quality, Water Supply – Disposal, and Water Treatment services for Residential as well  Commercial or Industrial Applications.

In 1966, Pentair was founded, with a vision of being leading services and products providing company. With the passage of time, they started working in the Computer Science field, Electronics / Power Tools manufacturing, etc. In 2004, they exits the other industries including the tools business, and started focusing totally on Sustainable Water Supply and Solutions. 

About Pentair Recruitment Process 2023

The Pentair Recruitment Process consists of the following steps :

  1. Group Discussion
  2. Technical Interview
  3. HR Interview

For more details on these 3 above mentioned steps, go through the following sections.

  • Group Discussions

Pentair usually conducts Group Discussions as 1st Round as part of their Recruitment Process. They generally ask about some latest trends in Technical Fields, Social Issues, Current Affairs, etc. For more details check out the link given below:

  • Technical Interview

Here Recruiters test the candidate’s technical skills, including topics like Programming Skills, Problem-Solving Skills, and other Domain Based Questions. Click on the button given below to get more details:

  • HR Interview

This round is the Final Round of the Recruitment Process. Here, the HR test Personality, Strengths, Weaknesses, etc. For checking whether the candidate is suitable for Offered Role or not. Click on the button given below to get more details:

We have mentioned further details of the Pentair Recruitment Process in the following Tabular Form

Pentair IndiaRelated Information
Position :
  1. Associate Project Engineer – IoT
  2. Intern – IP
  3. Embedded Hardware Developer
  4. Embedded Software Developer
Course :
  • B.E / B.Tech or M.E / M.Tech- CSE, IT, ECE & EEE or M.C.A 
  • Eligible Batch – 2023
Eligibility Criteria / Academic Qualification Required :
  • Minimum 70 % or equivalent CGPA required in 10th / 12th/ Graduation.
  • No Current Backlogs.
Pentair CTC Breakdown :

₹ 9.36 L.P.A [ Basic Pay = ₹ 8.36 L.P.A + ₹ 1 L Variable ]

Selection Process :
  1. Group Discussion
  2. Technical Interview
  3. HR Interview
Joining Location :

Noida

Pentair Job Descriptions

Pentair Water India Pvt. Ltd. is offering 4 Job Profiles, we have discussed those Job Profiles further on this page for better understanding.

Associate Project Engineer - IoT

This Job Role requires :

  1. Educational Qualification: B.E. / B.Tech (Computer Science) / M.C.A / Masters in Computer Science.
  2. Hands on with C / Python/ C++ / Java programming.
  3. Knowledge of Node and Go, Data Structures, and Database.
  4. Ability to document the design before implementation using a flowchart, and state diagram.
  5. Ability to work on Windows and Linux machine.
  6. Strong analytical and numerical skills.

Intern IP - Electronics / IoT

This Job Role requires :

  1. Educational Qualification: M.E. / M.Tech. (Electronics & Communication, Electrical Engineering, or a related field).
  2. Conduct prior art searches and technology trends.
  3. Reach out and engage, with the engineering team for understanding inventions and requirements.
  4. Assists in various legal research projects.
  5. Strong Analytical skills.
  6. Good technical writing/documentation skills with excellent skills in English grammar and sentence construction.

Embedded Hardware Developer

This Job Role requires :

  1. Educational Qualification: B. Tech in Electronics/ Electrical & Electronics / Electronics and Communication/ Computer Engineering.
  2. Knowledge of C/C++.
  3. Hands on with EDA SW- Altium Designer, Orcad, P-spice, LT Spice, etc.
  4. Knowledge of STM32xx, PIC16/32xx, ESP32xx controller modules.
  5. Hands on exp. MS-office bundle.
  6. Skills of Arduino, R-PI, ESP32xx, based development kits.
  7. Knowledge of 8/16/32bit Microcontroller and Microprocessor Architectures.
  8. Good Knowledge of electronics components and selection criteria - Diode, Transistor, MOSFET, Op-Amp, Relay, Triac etc.

Embedded Software Developer

This Job Role requires :

  1. Educational Qualification: B.Tech in Computer Science / Electronics Engineering.
  2. Must Known C / C++ programming & MS-Office.
  3. Knowledge of scripting languages like shell/batch/python.
  4. Ability to work on Windows and Linux machine.
  5. Hands on with Linux and DOS commands.
  6. Knowledge of data structures for sorting and searching.
  7. Exposure to code quality, source code mgmt & bug tracking systems.
  8. Knowledge of Networking Concepts, Microcontroller peripherals, OS concepts & Architectures of Computer and Microcontroller.

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Sample Pentair Coding Questions with Solutions

Question 1 : HR issues

Problem statement -:

Shovon is an HR in a renowned company and he is assigning people to work. Now he is assigning people work in a fashion where if he assigns somework a work of cost 2, the next person will be strictly getting a job with cost equal or more than 2. Given that Shovon’s company has infinite work and a number of employees, how many distributions can be possible. The cost of jobs can go 0 to 9.

Function Description:

Complete the special_numbers function in the editor below. It has the following parameter(s):

Parameters:

NameTypeDescription
NIntegerThe number of depts.
arr[ ]Integer arrayThe number of  employees in each dept..

Return: The function must return an INTEGER denoting the sum of answers for all distinct distributions.

Constraints:

  • 1 <= n <= 100
  • 1 <= arr[i] <= 200

Sample Cases:

  • Sample Input 1
    2
    4
    1
  • Sample Output 1
    725
  • Description
    The ans if m = 1 is 10, which is all numbers from 0 to 9
    The ans for m = 2 is 55
    The answer for m = 3 is 220
    The answer for m = 4 is 715
    So fun(4) + fun(1) = 725

Question 2 : Counting Rock Sample

Problem Description

Question – : Juan Marquinho is a geologist and he needs to count rock samples in order to send it to a chemical laboratory. He has a problem: The laboratory only accepts rock samples by a range of its size in ppm (parts per million).

Juan Marquinho receives the rock samples one by one and he classifies the rock samples according to the range of the laboratory. This process is very hard because the number of rock samples may be in millions.

Juan Marquinho needs your help, your task is to develop a program to get the number of rocks in each of the ranges accepted by the laboratory.

Input Format: An positive integer S (the number of rock samples) separated by a blank space, and a positive integer R (the number of ranges of the laboratory); A list of the sizes of S samples (in ppm), as positive integers separated by space R lines where the ith line containing two positive integers, space separated, indicating the minimum size and maximum size respectively of the ith range.

Output Format: R lines where the ith line contains a single non-negative integer indicating the number of the samples which lie in the ith range.

Constraints:

  • 10 <= S <= 10000
  • 1 <= R <= 1000000
  • 1<=size of Sample <= 1000

Example 1

  • Input: 10 2
  • 345 604 321 433 704 470 808 718 517 811
  • 300 350
  • 400 700

Output: 2 4

Explanation:

There are 10 samples (S) and 2 ranges ( R ). The samples are 345, 604,811. The ranges are 300-350 and 400-700. There are 2 samples in the first range (345 and 321) and 4 samples in the second range (604, 433, 470, 517). Hence the two lines of the output are 2 and 4

Example 2

  • Input: 20 3
  • 921 107 270 631 926 543 589 520 595 93 873 424 759 537 458 614 725 842 575 195
  • 1 100
  • 50 600
  • 1 1000

Output: 1 12 20

Explanation:

There are 20 samples and 3 ranges. The samples are 921, 107 195. The ranges are 1-100, 50-600 and 1-1000. Note that the ranges are overlapping. The number of samples in each of the three ranges are 1, 12 and 20 respectively. Hence the three lines of the output are 1, 12 and 20.

Question 3: Stock Marketing

You are given a list of daily prices of a stock. You can buy a stock on one day and sell it later on another day after the day you bought the stock. You can perform the above operation only once. What is the maximum loss possible?

Example

Prices=[10,4,2,9]

The greatest loss is incurred when you buy at a price of 10 and sell at a price of 2.Return the difference:9.

Example

Price=[1,2,3,4]

The Price went up everyday.Return 0.

Sample Input for Custom Testing

STDIN                   Function

———–               ————–

  •    7   →     prices []  size n=7
  •    1 →       prices =[1,8,4,2,10,3,2]
  •    8
  •    4
  •    2
  •   10
  •    3
  •    2

Sample Output

  •   8

Explanation

Using zero-based index notation,the correct answer is a[4]-a[6]=10-2=8.There is a greater difference between 10 and 1 but that would imply selling before buying,and short selling is not allowed in this problem.

Question 4 

You just received another bill which you cannot pay because you lack the money.

Unfortunately, this is not the first time to happen, and now you decide to investigate the cause of your constant monetary shortness. The reason is quite obvious: the lion’s share of your money routinely disappears at the entrance of party localities.

You make up your mind to solve the problem where it arises, namely at the parties themselves. You introduce a limit for your party budget and try to have the most possible fun with regard to this limit.

You inquire beforehand about the entrance fee to each party and estimate how much fun you might have there. The list is readily compiled, but how do you actually pick the parties that give you the most fun and do not exceed your budget?

Write a program which finds this optimal set of parties that offer the most fun. Keep in mind that your budget need not necessarily be reached exactly. Achieve the highest possible fun level, and do not spend more money than is absolutely necessary.

Input

  • The first line of the input specifies your party budget and the number n of parties.
  • The following n lines contain two numbers each. The first number indicates the entrance fee of each party. Parties cost between 5 and 25 francs. The second number indicates the amount of fun of each party, given as an integer number ranging from 0 to 10.
  • The budget will not exceed 500 and there will be at most 100 parties. All numbers are separated by a single space.
  • There are many test cases. Input ends with 0 0.

Output

  • For each test case, your program must output the sum of the entrance fees and the sum of all fun values of an optimal solution. Both numbers must be separated by a single space.

Example

  • Sample input:
    50 10
    12 3
    5 8
    16 9
    16 6
    10 2
    21 9
    18 4
    12 4
    17 8
    18 9
    50 10
    13 8
    19 10
    16 8
    12 9
    10 2
    12 8
    13 5
    15 5
    11 7
    16 2
    0 0
  • Sample output:
    50 29
    48 32

Question 5 : Airport Authority

Problem Statement -:

In an airport, the Airport authority decides to charge a minimum amount to the passengers who are carrying luggage with them. They set a threshold weight value, say, T, if the luggage exceeds the weight threshold you should pay double the base amount. If it is less than or equal to threshold then you have to pay $1.  

Function Description:

Complete the weightMachine function in the editor below. It has the following parameter(s):

Parameters:

NameTypeDescription
NIntegernumber of luggage
TIntegerweight of each luggage
weights[ ]Integer arraythreshold weight

Returns: The function must return an INTEGER denoting the required amount to be paid.

Constraints:

  • 1 <= N <= 10^5
  • 1 <= weights[i] <= 10^5
  • 1 <= T <= 10^5

Input Format for Custom Testing:

  • The first line contains an integer, N, denoting the number of luggage. 
  • Each line i of the N subsequent lines (where 0 <= i <n) contains an integer describing the weight of ith luggage. 
  • The next line contains an integer, T, denoting the threshold weight of the boundary wall.

Sample Cases:

  • Sample Input 1
    4
    1
    2
    3
    4
    3
  • Sample Output 1
    5
  • Explanation:
    Here all weights are less than threshold weight except the luggage with weight 4 (at index 3) so all pays base fare and it pays double fare.

FAQs on Pentair Coding Questions with Solutions

Question 1: How many rounds are there in the Pentair recruitment process?

Total rounds in the Pentair Recruitment Process:-

  1. Group Discussion
  2. Technical Interview
  3. HR Interview
Question 2: Is Pentair exam difficult to crack?

Pentair exam is difficult as they do not have mass hiring they will only select candidates who are performing exceptionally well in the exams.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription