Intern
1500+ Intern Interview Questions and Answers

Asked in Accenture

Q. There is a housing society “The wasteful society”. You collect all the household garbage and sell it to 5 different businesses: a. Compost Manufacturer, b. Plastic Recycler, c. Paper Recycler, d. Metal Recycler...
read moreDetermining the price to pay to a housing society for their garbage collection and sale to 5 different vendors while making a 20% profit.
Calculate the cost of collecting and transporting the garbage
Research the market prices for each type of waste material
Determine the profit margin required
Calculate the selling price to each vendor based on market prices and profit margin
Determine the price to pay to the society members based on the cost and profit margin
Consider negotiating...read more

Asked in Tech Mahindra

Q. Which programming language are you comfortable with?
I am comfortable with multiple programming languages including Java, Python, and JavaScript.
Proficient in Java for backend development
Experienced in Python for data analysis and machine learning
Skilled in JavaScript for frontend development
Familiar with SQL for database management
Comfortable with C++ for competitive programming
Intern Interview Questions and Answers for Freshers

Asked in Accenture

Q. A marketing strategy case: A perfume seller in Jaipur has unique perfumes not found elsewhere. Only tourists have shown interest. How would you increase the business?
Create a digital marketing campaign targeting tourists and potential customers outside Jaipur.
Create a website and social media pages to showcase the unique perfumes and their ingredients.
Partner with local hotels and travel agencies to promote the perfumes to tourists.
Offer discounts or promotions for customers who refer their friends and family.
Create a loyalty program to incentivize repeat customers.
Consider expanding the product line to include other unique scents.
Collect...read more

Asked in Deloitte

Q. Case : I am a US based company and I sell 3 products A, B, C (I don’t rem exact name) and I am having losses. I assume the reason for facing losses can be either economic downturn, new competitors, or internal...
read moreThe exact reason for facing losses cannot be determined without further analysis.
Further analysis is needed to identify the root cause of the losses.
Economic downturn, new competitors, and internal problems are all potential factors.
Examples of internal problems could include poor management, inefficient processes, or high overhead costs.

Asked in Josh Technology Group

Q. Huffman Coding Challenge
Given an array ARR
of integers containing 'N' elements where each element denotes the frequency of a character in a message composed of 'N' alphabets of an alien language, your task is ...read more
Implement a function to generate Huffman codes for characters based on their frequencies in an alien language message.
Use a priority queue to build the Huffman tree efficiently.
Assign '0' and '1' to left and right branches of the tree respectively to generate unique binary codes.
Ensure that each code distinctly identifies its corresponding character and minimizes the total number of bits used for the message.

Asked in Wipro

Q. Count Subsequences Problem Statement
Given an integer array ARR
of size N
, your task is to find the total number of subsequences in which all elements are equal.
Explanation:
A subsequence of an array is derive...read more
The task is to count the number of subsequences in an array where all elements are equal.
Iterate through the array and count the frequency of each element.
For each element, calculate the number of subsequences using the formula (2^frequency - 1).
Multiply the counts for each element to get the total number of subsequences.
Print the result modulo 10^9 + 7.
Intern Jobs




Asked in PayPal

Q. Maximum Difference Problem Statement
Given an array ARR
of N
elements, your task is to find the maximum difference between any two elements in ARR
.
If the maximum difference is even, print EVEN; if it is odd, p...read more
Find the maximum difference between any two elements in an array and determine if it is even or odd.
Iterate through the array to find the maximum and minimum elements
Calculate the difference between the maximum and minimum elements
Check if the difference is even or odd and return the result

Asked in Wells Fargo

Q. Number of Mismatching Bits
Determine the number of bits that differ between the binary representations of two given integers "first" and "second".
Input:
The input starts with an integer ‘T’ representing the nu...read more
Calculate the number of mismatching bits between two given integers in their binary representation.
Convert the integers to binary representation using bitwise operations.
Count the number of differing bits by comparing the binary representations.
Return the count of mismatching bits for each test case.
Share interview questions and help millions of jobseekers 🌟

Asked in Standard Chartered

Q. Ways To Make Coin Change
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make the c...read more
The task is to find the total number of ways to make change for a specified value using given denominations.
Create a dynamic programming table to store the number of ways to make change for each value up to the target value.
Iterate through each denomination and update the table accordingly based on the current denomination.
The final answer will be the value in the table at the target value.
Consider edge cases such as when the target value is 0 or when there are no denominatio...read more

Asked in McKinsey & Company

Q. You own an e-commerce website that sells jewelry, fashion products, and apparel, mainly for women. You have spent a significant amount on marketing the site but are still experiencing losses. Develop a strategy...
read moreSuggested innovative ideas to increase revenues for an e-commerce website selling jewellery, fashion products and apparel majorly for women.
Introduce a loyalty program to retain customers and encourage repeat purchases
Collaborate with social media influencers to promote the products and increase brand awareness
Offer personalized styling services to customers to enhance their shopping experience
Expand the product range to include men's fashion and accessories
Implement a referr...read more

Asked in UBS

Q. BST Node Deletion Problem
Given a binary search tree (BST) and a key value K
, your task is to delete the node with value K
. It is guaranteed that a node with value K
exists in the BST.
Explanation:
A binary sea...read more
Implement a function to delete a node with a given value from a binary search tree (BST).
Traverse the BST to find the node with the value K to be deleted.
Handle different cases like node with no children, one child, or two children.
Update the pointers of the parent node and child nodes accordingly.
Return the root of the modified BST after deletion.

Asked in Amazon

Q. Unique Element In Sorted Array
Nobita wants to impress Shizuka by correctly guessing her lucky number. Shizuka provides a sorted list where every number appears twice, except for her lucky number, which appears...read more
Find the unique element in a sorted array where all other elements appear twice.
Iterate through the array and XOR all elements to find the unique element.
Use a hash set to keep track of elements and find the unique one.
Sort the array and check adjacent elements to find the unique one.

Asked in BCG

Q. The client is a motorcycle manufacturer from India, wanting to sell motorcycles in Nigeria. The motorcycle market of Nigeria is dominated by 3-4 Chinese manufacturers who sell motorcycles at INR25k. Your bikes...
read moreTo sell motorcycles in Nigeria, focus on quality, branding, and local partnerships to compete with cheaper alternatives.
Highlight superior quality and durability of the motorcycles compared to Chinese competitors.
Develop a strong brand presence through targeted marketing campaigns emphasizing safety and reliability.
Establish partnerships with local dealers to enhance distribution and customer service.
Offer financing options or installment plans to make the higher price more a...read more

Asked in Auctus Advisors

Q. Company A manufactures beer bottles and has only 1 customer B. A sells 5 million bottles per year. B might raise the demand to 10 million bottles in case IPL takes place this year. A has to decide today if it h...
read moreCompany A has to decide whether to produce 1 crore beer bottles for customer B in case of increased demand due to IPL.
Consider the cost of producing extra bottles versus the cost of buying from a third party.
Evaluate the risk of buying a new machine that may be defective.
Assess the probability of increased demand from customer B due to IPL.
Analyze the potential impact on profits and market share.
Consider the long-term implications of the decision on the company's growth and s...read more

Asked in Amazon

Q. Given a sorted array of integers, find the frequency of 2 in the array in log(n) time.
Find frequency of 2 in sorted array of integers in log(n) time.
Use binary search to find first and last occurrence of 2 in array.
Calculate frequency by subtracting last index from first index and adding 1.
Time complexity is O(log(n)).

Asked in Amazon

Q. Check If Linked List Is Palindrome
Given a singly linked list of integers, determine if the linked list is a palindrome.
Explanation:
A linked list is considered a palindrome if it reads the same forwards and b...read more
Check if a given singly linked list of integers is a palindrome or not.
Traverse the linked list to find the middle element using slow and fast pointers.
Reverse the second half of the linked list.
Compare the first half with the reversed second half to determine if it's a palindrome.

Asked in Josh Technology Group

Q. Find Nodes at Distance K in a Binary Tree
Your task is to find all nodes that are exactly a distance K from a given node in an arbitrary binary tree. The distance is defined as the number of edges between nodes...read more
Find all nodes at distance K from a given node in a binary tree.
Perform a depth-first search starting from the target node to find nodes at distance K.
Use a recursive function to traverse the tree and keep track of the distance from the target node.
Maintain a set to store visited nodes and avoid revisiting them.
Return the list of nodes found at distance K from the target node.
Example: For the given input tree, target node 5, and K = 2, the output should be [7, 4, 0, 8].
Asked in XimKart

Q. What is your current location?
I am currently located in Varanasi, Lanka, Uttar Pradesh.
I am residing in the historic city of Varanasi, also known as Kashi.
Lanka is a locality within Varanasi, situated on the banks of the river Ganges.
Uttar Pradesh is a state in northern India, known for its rich cultural heritage.

Asked in Intuit

Q. Inorder Successor in a Binary Tree
Given an arbitrary binary tree and a specific node within that tree, determine the inorder successor of this node.
Explanation:
The inorder successor of a node in a binary tre...read more
Given a binary tree and a specific node, find its inorder successor in the tree.
Perform an inorder traversal of the binary tree to find the successor node.
If the given node has a right child, the successor is the leftmost node in the right subtree.
If the given node does not have a right child, backtrack to find the ancestor whose left child is the given node.

Asked in Josh Technology Group

Q. Remove BST Keys Outside Given Range
Given a Binary Search Tree (BST) and a specified range [min, max], your task is to remove all keys from the BST that fall outside this range. The BST should remain valid afte...read more
Remove keys outside given range from a Binary Search Tree while keeping it valid.
Traverse the BST in inorder and remove nodes outside the specified range
Recursively check left and right subtrees for nodes to remove
Update pointers to maintain the validity of the BST
Return the inorder traversal of the adjusted BST

Asked in Signify

Q. What is your strong point in terms of technical knowledge?Like C,Java. What is Pointer?What are the looping statements?What is array? Some logic of the programs were asked.And Most of the questions were asked b...
read moreMy strong point in technical knowledge is programming languages like C, Java, and Python. I have experience with pointers, looping statements, and arrays.
I have a strong understanding of pointers in C and how they are used to store memory addresses.
I have experience using pointers in Java to manipulate objects and data structures.
I have used pointers in Python to create efficient algorithms for data processing.
I am familiar with the concept of null pointers and how to handle ...read more

Asked in Cognizant

Q. Where do you rate your programming skills on a scale of 1 to 10?
I rate my programming skills at 8 out of 10.
I have experience in multiple programming languages such as Java, Python, and C++.
I have completed several projects including a web application and a mobile app.
I am constantly learning and improving my skills through online courses and personal projects.

Asked in Amazon

Q. Given an array of numbers, for each index of the array, find the integer with the maximum frequency to the right of that index.
Find the maximum frequency integer to the right of each index in an array of numbers.
Create a frequency map of the array.
Iterate through the array and for each index, find the maximum frequency integer to the right using the frequency map.
If there are no integers to the right, return -1.

Asked in BT Group

Q. How do you find out whether a system is compromised or vulnerable?
To determine if a system is compromised or vulnerable, conduct regular vulnerability scans and penetration testing.
Perform regular vulnerability scans using tools like Nessus or OpenVAS
Conduct penetration testing to simulate attacks and identify vulnerabilities
Monitor system logs for suspicious activity
Stay up-to-date with security patches and updates
Use intrusion detection and prevention systems
Perform code reviews and security audits
Educate employees on security best practi...read more

Asked in UnitedHealth

Q. Bubble Sort Problem Statement
Sort the given unsorted array consisting of N non-negative integers in non-decreasing order using the Bubble Sort algorithm.
Input:
The first line contains an integer 'T' represent...read more
Bubble Sort algorithm to sort an array of non-negative integers in non-decreasing order.
Implement Bubble Sort algorithm to sort the array in place
Loop through the array and compare adjacent elements, swapping if necessary
Repeat the process until the array is sorted
Time complexity of O(n^2) in worst case scenario

Asked in Josh Technology Group

Q. N Queens Problem
Given an integer N
, find all possible placements of N
queens on an N x N
chessboard such that no two queens threaten each other.
Explanation:
A queen can attack another queen if they are in the...read more
The N Queens Problem involves finding all possible placements of N queens on an N x N chessboard where no two queens threaten each other.
Use backtracking algorithm to explore all possible configurations.
Keep track of rows, columns, and diagonals to ensure queens do not attack each other.
Generate valid configurations recursively and print them out.

Asked in Bajaj Capital

Q. What is the Debt Market?
Debt market refers to the financial market where investors buy and sell debt securities, such as bonds and loans.
Debt market is a part of the capital market where debt securities are traded.
It provides a platform for companies, governments, and individuals to borrow or lend money.
Debt securities include bonds, treasury bills, commercial papers, and mortgage-backed securities.
Investors in the debt market earn interest on their investments.
Debt market helps in raising capital f...read more

Asked in BCG

Q. A pharma company is in phase-1 trials of a first of it’s kind drug in the world that can cure baldness permanently. Should it go ahead and sell this formula and rights to a potential buyer and if yes, for what...
read moreYes, the pharma company should go ahead and sell the formula and rights to a potential buyer.
Selling the formula and rights can generate significant revenue for the company.
The potential buyer can further invest in research and development to bring the drug to market faster.
The company can focus on other drug development projects with the funds obtained from the sale.
The buyer may have the necessary resources and expertise to successfully market and distribute the drug global...read more

Asked in Texas Instruments

Q. Describe a scenario involving transient analysis with two capacitors connected in series and a switch closing at t>0, where the initial voltage across the capacitors is 3V. What is the total voltage?
Transient analysis of capacitors in series with a switch closing at t>0 and initial voltage of 3V.
Capacitors in series share the same charge but have different voltages across them.
The total voltage across capacitors in series is the sum of individual voltages.
If two capacitors, C1 and C2, are in series, V_total = V1 + V2.
For example, if C1 has 2V and C2 has 1V, then V_total = 2V + 1V = 3V.
When the switch closes at t=0, the capacitors will start charging based on the applied ...read more

Asked in Auctus Advisors

Q. I have a piece of land. Should I sell off the land or build a school on it. For this guesstimate, you need to ask a lot of questions and calculate the cost of establishing a school on the land and calculate the...
read moreCalculate cost of building a school on land vs selling the land by estimating cash flows in 10 years.
Calculate cost of land, construction, staffing, and maintenance for school
Estimate revenue from tuition fees and other sources for 10 years
Compare cash flows with future worth of selling price of land
Consider long-term benefits of building a school for community development
Evaluate risks and uncertainties in both options
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Intern Related Skills

Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

