Add office photos
Internshala logo
Engaged Employer

Internshala

Verified
3.8
based on 234 Reviews

10+ Internshala Interview Questions and Answers

Updated 7 Feb 2025

Q1. Clone a Linked List with Random Pointers

Given a linked list where each node has two pointers: the first points to the next node in the list, and the second is a random pointer that can point to any node in the...read more

Ans.

Create a deep copy of a linked list with random pointers without using references of original nodes.

  • Iterate through the original linked list and create a new node for each node in the list.

  • Store the mapping of original nodes to new nodes in a hashmap to handle random pointers.

  • Update the random pointers of new nodes based on the mapping stored in the hashmap.

  • Return the head of the copied linked list.

Add your answer
right arrow

Q2. Loot Houses Problem Statement

A thief is planning to steal from several houses along a street. Each house has a certain amount of money stashed. However, the thief cannot loot two adjacent houses. Determine the...read more

Ans.

Determine the maximum amount of money a thief can steal from houses without looting two consecutive houses.

  • Create an array 'dp' to store the maximum money that can be stolen from each house without looting two consecutive houses.

  • Iterate through the houses and update 'dp' based on the maximum money that can be stolen from the current house.

  • Return the maximum value in 'dp' as the answer.

Add your answer
right arrow

Q3. What is the Execution Order in SQL Queries?

Ans.

SQL queries are executed in a specific order to ensure accurate results.

  • SQL queries are executed in the following order: FROM, WHERE, GROUP BY, HAVING, SELECT, ORDER BY.

  • The FROM clause specifies the tables involved in the query.

  • The WHERE clause filters the rows based on specified conditions.

  • The GROUP BY clause groups the rows based on specified columns.

  • The HAVING clause filters the grouped rows based on specified conditions.

  • The SELECT clause selects the columns to be displaye...read more

Add your answer
right arrow

Q4. Which machine learning models did use see and why?

Ans.

I have experience with various machine learning models such as linear regression, decision trees, random forests, and neural networks.

  • Linear regression is used for predicting continuous outcomes.

  • Decision trees are used for classification and regression tasks.

  • Random forests are an ensemble method that combines multiple decision trees for improved accuracy.

  • Neural networks are used for complex pattern recognition and prediction tasks.

Add your answer
right arrow
Discover Internshala interview dos and don'ts from real experiences
Q5. Can you design a website similar to Amazon?
Ans.

Yes, I can design a website similar to Amazon by focusing on user-friendly interface, robust search functionality, secure payment options, and personalized recommendations.

  • Focus on user-friendly interface with easy navigation

  • Implement robust search functionality with filters and sorting options

  • Provide secure payment options with encryption and fraud protection

  • Include personalized recommendations based on user behavior and preferences

Add your answer
right arrow

Q6. What is the difference between an activity and fragement in an Android application?

Ans.

Activity is a single screen with a user interface, while Fragment is a portion of the user interface in an activity.

  • Activity is a standalone component that can be launched by an application, while Fragment is a reusable component that can be added to an activity.

  • An activity can contain multiple fragments, but a fragment cannot contain multiple activities.

  • Fragments are used to create a flexible and dynamic UI, while activities are used to manage the lifecycle and navigation of...read more

Add your answer
right arrow
Are these interview questions helpful?

Q7. The office is located in Gurgaon, will you be able to travel and reach at 9:30 from Monday to Friday?

Ans.

Yes, I will be able to travel and reach the office in Gurgaon at 9:30 from Monday to Friday.

  • I am located in a nearby area and can easily commute to Gurgaon.

  • I have a reliable mode of transportation that allows me to reach the office on time.

  • I am flexible with my schedule and can adjust my timings accordingly.

  • I understand the importance of punctuality and will make sure to be at the office by 9:30.

  • I am committed to this internship opportunity and will prioritize my travel arran...read more

Add your answer
right arrow

Q8. Introduce Yourself,Write a code to find repeative characters in a String

Ans.

I am a software engineering student with a passion for coding. Here is a code to find repetitive characters in a string.

  • Iterate through the characters in the string and store their occurrences in a HashMap.

  • Check the HashMap for characters with occurrences greater than 1 to find repetitive characters.

  • Return the repetitive characters as an array of strings.

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. What is Left Join?

Ans.

Left Join is a type of join operation in SQL that returns all rows from the left table and the matched rows from the right table.

  • Left Join combines rows from two tables based on a related column between them.

  • It includes all rows from the left table, even if there are no matches in the right table.

  • If there are no matches, NULL values are included for columns from the right table.

  • Example: SELECT * FROM table1 LEFT JOIN table2 ON table1.id = table2.id;

Add your answer
right arrow

Q10. Write 2 Push Notifications for Placement Guarantee Courses for the Internshala App

Ans.

Get guaranteed placements with our Placement Guarantee Courses on Internshala App!

  • Enroll in our Placement Guarantee Courses and secure your dream job

  • Boost your chances of getting hired with our Placement Guarantee Courses

  • Join our Placement Guarantee Courses and land your dream internship

  • Guaranteed placements with our specialized Placement Guarantee Courses

Add your answer
right arrow

Q11. The 25 Horse Problem.

Ans.

The 25 Horse Problem is a logic puzzle that involves determining the fastest 3 horses out of 25 using minimal races.

  • Divide the 25 horses into groups of 5 and race them to determine the fastest horse in each group.

  • Then race the fastest horses from each group to determine the top 3 fastest horses overall.

  • This approach minimizes the number of races needed to find the top 3 horses.

Add your answer
right arrow

Q12. Components and flux or not What is library

Ans.

Components and Flux are important concepts in React for building scalable and maintainable applications. A library is a collection of pre-written code that can be reused in different projects.

  • Components are reusable building blocks in React that encapsulate functionality and can be composed to create complex UIs

  • Flux is a pattern for managing data flow in React applications, ensuring unidirectional data flow and predictable state changes

  • Libraries like React Router and Redux pr...read more

Add your answer
right arrow

Q13. SQL question difference between having and where

Ans.

HAVING is used with GROUP BY to filter groups, WHERE is used to filter rows

  • HAVING is used with GROUP BY to filter groups based on aggregate functions

  • WHERE is used to filter rows based on conditions

  • HAVING is applied after GROUP BY, WHERE is applied before GROUP BY

  • Example: SELECT department, AVG(salary) FROM employees GROUP BY department HAVING AVG(salary) > 50000;

  • Example: SELECT * FROM employees WHERE department = 'Sales';

Add your answer
right arrow

Q14. How does a linked list function

Ans.

A linked list is a data structure where each element points to the next element in the sequence.

  • Each element in a linked list, called a node, contains data and a reference to the next node in the sequence.

  • Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to both the next and previous nodes).

  • To traverse a linked list, you start at the head node and follow the references to the next nodes until you reach the end (where the ...read more

Add your answer
right arrow

Q15. What is pointers in c

Ans.

Pointers in C are variables that store memory addresses of other variables.

  • Pointers are used to access and manipulate memory directly.

  • They are denoted by an asterisk (*) before the variable name.

  • Example: int *ptr; // declares a pointer to an integer variable

Add your answer
right arrow

Q16. What is ur name

Ans.

My name is John Smith.

  • Full name is John Smith

  • Common name in English-speaking countries

  • Easy to remember and pronounce

Add your answer
right arrow

Q17. Tell me about arrays

Ans.

Arrays are a data structure that stores a collection of elements of the same data type in contiguous memory locations.

  • Arrays have a fixed size determined at the time of declaration.

  • Elements in an array are accessed using an index starting from 0.

  • Arrays can store primitive data types or objects.

  • Example: String[] names = {"Alice", "Bob", "Charlie"};

Add your answer
right arrow

Q18. What is str in c

Ans.

str in C is a data type used to represent strings as arrays of characters.

  • str in C is typically declared as an array of characters, terminated by a null character '\0'.

  • Functions like strcpy(), strcmp(), and strlen() are commonly used with str in C.

  • Example: char str[10] = "hello"; // Declaration of a string in C

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

Interview Process at Internshala

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

Top Interview Questions from Similar Companies

Reliance Industries  Logo
4.0
 â€˘ 637 Interview Questions
Tata Steel Logo
4.1
 â€˘ 546 Interview Questions
Bharti Airtel Logo
4.0
 â€˘ 376 Interview Questions
PolicyBazaar Logo
3.6
 â€˘ 184 Interview Questions
CBRE Logo
4.2
 â€˘ 165 Interview Questions
Ashok Leyland Logo
4.1
 â€˘ 140 Interview Questions
View all
Recently Viewed
INTERVIEWS
Internshala
No Interviews
INTERVIEWS
RMSI
No Interviews
SALARIES
Internshala
INTERVIEWS
Intercontinental Exchange
No Interviews
LIST OF COMPANIES
Internshala
Locations
INTERVIEWS
Internshala
No Interviews
INTERVIEWS
MSCI
No Interviews
INTERVIEWS
Tejas Networks
No Interviews
DESIGNATION
INTERVIEWS
HFCL Limited
No Interviews
Top Internshala Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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