KPIT Coding Questions and Answers

KPIT Coding Questions with Solutions

KPIT Coding Questions and Answers page will help you to get sample Coding Questions asked in the Online and Technical Assessments of the Company for hiring the freshers from 2023 and 2024 Batch.
Apart from that you will be getting details on Job Profile, Expected CTC, etc. offered by KPIT Technologies. 

kpit-coding-questions

About KPIT Technologies

KPIT Technologies is a company that provides consulting and engineering services to the automotive and transportation industries.
With expertise in embedded systems, artificial intelligence, and digital product engineering, KPIT offers innovative solutions for connected vehicles, autonomous driving, and sustainability. Their commitment to customer success and cutting-edge technology makes them a trusted partner in the automotive ecosystem.
This company is headquartered in Pune and has development centers in Europe, the USA, Japan, and China.

Steps of KPIT Hiring Process

Here we have mentioned everything regarding the KPIT Hiring Process for freshers:

  • Round 1: Online Assessment [ Aptitude + Technical ]
  • Round 2: Technical Interview – 1
  • Round 3: Technical Interview – 2
  • Round 4: HR Interview
Here we have mentioned some significant details of KPIT hiring process in the following tabular form:
KPIT Related Information
Position :
  • Software Engineer Intern
Course :
  • B.E / B.Tech -CS/IT/ECE/EN/ME/Instrumentation or MCA
  • Eligible Batch: 2023 – 2024
Eligibility Criteria / Academic Qualification Required :
  • Minimum Score of 55 % is required in 10th / 12th/ Graduation / Post Graduation.
  • No Current Backlogs
Cost to Company (CTC) ₹ 4 – 6 L.P.A
Selection Process :
  1. Online Assessment
  2. 2 Rounds of Technical Interviews
  3. HR Interview
Details of  KPIT Online Assessment and Technical Test :
RoundsTopicsTime
Online AssessmentAptitude + Domain-Specific Questions1 Hr Minutes
Technical Test 1Programming: C, C++, Java, SQL & DBMS.60 Minutes
Technical Test 2Advanced Coding: C, C++, Java, SQL & DBMS.90 Minutes

Prime Course Trailer

Related Banners

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

Sample KPIT Coding Questions with Solutions

Question 1: Mr. Robot’s Password

Mr. Robot is making a website, in which there is a tab to create a password. As with other websites, there are rules so that the password gets complex and none can predict the password for another. So he gave some rules like:

– At least one numeric digit

– At Least one Small/Lowercase Letter

– At Least one Capital/Uppercase Letter

– Must not have space 

– Must not have slash (/)

– At least 6 characters

If someone inputs an invalid password, the code prints: “Invalid password, try again”.

Otherwise, it prints: “password valid”.

Input Format:

A line with a given string as a password

Output Format:

If someone inputs an invalid password, the code prints: “Invalid password, try again”.

Otherwise, it prints: “password valid”, without the quotation marks.

Constraints:

Number of characters in the given string <=10^9

Sample input 1: 

abjnlL09

Sample output 1: 

password valid

Sample input 2: 

jjnaskpk

Sample output 2: 

Invalid password, try again

Question 2 : Copycat in exam

Rahul copies in the exam from his adjacent students. But he doesn’t want to be caught, so he changes words keeping the letter constant. That means he interchanges the positions of letters in words. You are the examiner and you have to find if he has copied a certain word from the one adjacent student who is giving the same exam, and give Rahul the markings he deserves.

Note that: Uppercase and lowercase are the  same.

Input Format:

First line with the adjacent student’s word

Second line with Rahul’s word

Output Format:

0 if not copied

1 if copied

Constraints:

1<=Length of string<=10^6

Sample Input:

CAR

ACR

Sample Output:

1

Question 3 : Last student’s ID

Problem Statement  :

There is an id code that is supposed to be given to all the aspirants of an exam. It is actually a substring of a given string. That means, the authority takes a string and then assigns all the unique substrings to all the students. Suppose there is a string “abcde”, so the ids of the students will be “a”,”b”,”c”,”d”,”e”,’ab”,”abc”,”abcd”,”abcde”,”bc”,”bcd”,”bcde”,”cd”,”cde”,”de”.

The students are standing in a line according to the lexicographic order of their given ids. You have to find out the id of the last student for the given input string from which the ids are generated.

Input Format:
Single line with the id generating string
Output format:
The last id as per lexicographical order

Constraints:
Number of characters in the string<=10^9

Sample Input:
abdc

Sample output:
dc

Explanation:
The last student will be with the id dc. The order will be
abdc
a
ab
abd
abdc
b
bd
bdc
c
d
dc

Question: 4

Problem Statement: You just received another bill that 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: Amusement park

Problem Statement – Akshay loves to go to WONDERLA , an amusement park. They are offering students who can code well with some discount. Our task is to reduce the cost of the ticket as low as possible.

The cost of tickets can be removed by removing the digits from the price given. They will give some k turns to remove the digits from the price of the ticket. Your task is to help Akshay in coding a program that can help him to reduce the cost of a ticket by removing the digits from its price and getting the maximum possible discount.

Note – You cannot make the cost of a ticket zero. For eg -: If the cost of a ticket is 100, and you have 2 turns to reduce the price, the final price will be 1 and not zero.

Constraints:

  • 1 <= number of tickets <= 10^5
  • 1 <= K < Number of digits in Price of ticket

Input Format for Custom Testing:

  • The first line contains a string,Tickets, denoting the given cost of each ticket.
  • The next line contains an integer, K, denoting the number of tickets that is to be removed.

Sample Cases:

  • Sample Input 1
    203
    2
  • Sample Output 1
    0

FAQs related to KPIT Coding Questions

Question 1: What is the KPIT test procedure?

KPIT Technologies usually conducts Online Assessments 0f 1 Hour 40 Minutes which include:

  • Section 1: Aptitude
  • Section 2: Technical Questions [Domain Specific ]
  • Section 3: Professional Communication-related questions.
Question 2: How many rounds of interview are there in KPIT?
  1. There are 2 Rounds of Technical assessments including Programming in C, C++, Java, SQL, and DBMS.
  2. At last HR Interview.
Question 3: What is the salary package of KPIT?

On Average KPIT Technologies’ salary for a Software Engineer in India ranges between  ₹ 4 – 6 Lakhs for less than 1 year of experience to 2 years.

Question 4: What KPIT company do?

KPIT Technologies is a company that works with the automotive and mobility industries to turn the concept of software-controlled vehicles into a reality.
It specializes in developing and integrating software, helping the automobile sector to get more advanced and intelligent.

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