Software Engineer Intern
100+ Software Engineer Intern Interview Questions and Answers for Freshers

Asked in LTIMindtree

Q. 1.In the java multiple inheritance possible 2.reverse string line word by word,
1. Java supports multiple inheritance. 2. Reverse a string word by word.
1. Java supports multiple inheritance through interfaces. A class can implement multiple interfaces.
2. Split the string into words using split() method. Reverse the array of words and join them using join() method.

Asked in Dell EMC

Q. - Programming concepts of Dynamic Programming.
Dynamic Programming is a programming concept that solves complex problems by breaking them down into smaller overlapping subproblems.
Dynamic Programming is based on the principle of optimal substructure and overlapping subproblems.
It uses memoization or tabulation techniques to store and reuse solutions to subproblems.
Dynamic Programming is often used to optimize time and space complexity in algorithms.
Examples of problems that can be solved using Dynamic Programming include ...read more
Asked in Raven Industries

Q. What is a project outside of Computer Science you have worked on?
I have worked on a project outside of Computer Science related to environmental conservation.
Developed a mobile application to track and monitor endangered species in local wildlife reserves.
Collaborated with a team of biologists and conservationists to gather data and design the app's features.
Implemented features like GPS tracking, photo recognition, and data visualization to aid in species identification and conservation efforts.
Asked in HT Solutions

Q. Given an array containing numbers from 1 to n-1, find the missing number.
Find the missing number from an array containing numbers from 1 to n-1.
Calculate the sum of all numbers from 1 to n-1 using the formula n*(n-1)/2.
Calculate the sum of all numbers in the array.
Subtract the sum of array from the sum of all numbers to get the missing number.

Asked in WisdmLabs

Q. Write code to find the next palindrome. For example, if the user inputs 1234, the immediate next palindrome will be 1331.
Code to find the next palindrome number after a given input.
Convert the input number to a string to easily manipulate individual digits.
Increment the input number by 1 and check if it is a palindrome.
If not a palindrome, continue incrementing until a palindrome is found.
Asked in Parabole

Q. How do you understand how a trained neural network works?
Understanding how a trained neural network works involves grasping the concept of layers, weights, biases, and activation functions.
Neural networks consist of layers of interconnected nodes that process input data.
Weights and biases are adjusted during training to minimize error and improve accuracy.
Activation functions introduce non-linearity to the network, allowing it to learn complex patterns.
Understanding backpropagation helps in grasping how neural networks learn from d...read more
Software Engineer Intern Jobs




Asked in Toast

Q. Given two sorted lists of integers and a target sum, check whether one number exists from each list such that their sum equals the target.
Check if there exists one number from each of two sorted lists that sums up to a given target value.
Two-Pointer Technique: Use two pointers, one starting at the beginning of the first list and the other at the end of the second list.
Iterate and Compare: If the sum of the values at the two pointers equals the target, return true. If the sum is less, move the first pointer right; if more, move the second pointer left.
Example: For lists [1, 2, 3] and [4, 5, 6] with target 7, the...read more

Asked in Philips Innovation Campus

Q. What is the difference between MongoDB and SQL?
MongoDB is a NoSQL database while SQL is a relational database management system.
MongoDB is schema-less, allowing for flexible data models.
SQL databases use structured query language for defining and manipulating data.
MongoDB is horizontally scalable, while SQL databases are vertically scalable.
SQL databases are better suited for complex queries and joins.
MongoDB is commonly used for big data and real-time applications.
SQL databases are ACID compliant, ensuring data integrity...read more
Share interview questions and help millions of jobseekers 🌟
Asked in Altitude

Q. Given an API, how would you fetch data and render it on the screen using React.js?
Fetch data from an API and render it using React.js components.
Use the Fetch API or Axios to make HTTP requests.
Utilize React's useEffect hook to fetch data on component mount.
Store fetched data in the component's state using useState.
Render the data conditionally, handling loading and error states.
Example: Display a list of users fetched from a public API.

Asked in Microsoft Corporation

Q. Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses and store it in a vector. Return the vector.
Generate all permutations of balanced parentheses and store them in a vector.
Use backtracking to generate all possible combinations of parentheses
Check for balanced parentheses using a stack
Store each valid combination in a vector
Return the vector of permutations

Asked in MAQ Software

Q. What are cubes. How are they different from Databases
Cubes are multidimensional data structures used for analysis and reporting. They differ from databases in their structure and purpose.
Cubes store data in a multidimensional format, allowing for efficient analysis and reporting.
They are designed to handle large volumes of data and provide fast query performance.
Cubes use dimensions, measures, and hierarchies to organize and analyze data.
Unlike databases, cubes are optimized for analytical processing rather than transactional p...read more

Asked in Fidelity Investments

Q. Write a star program in any programming language you know? How many for loops required for it?
A star program can be written using nested for loops in any programming language.
Use two nested for loops to print the rows and columns of the star pattern.
The number of rows and columns can be determined by the user input or a constant value.
The star pattern can be created using asterisks or any other character.
The number of for loops required depends on the complexity of the star pattern.
For a simple star pattern, only one for loop may be required.

Asked in Adobe

Q. Given two candles of random size, how long does it take to burn one candle completely?
The time to burn one candle completely depends on the size of the candles and the rate at which they burn.
The time to burn one candle completely is directly proportional to the size of the candle.
The rate at which a candle burns can vary based on factors like the material of the candle, the wick, and the environment.
For example, a larger candle may take longer to burn completely compared to a smaller candle, even if they are both made of the same material.

Asked in Cohesity

Q. How is Reliability ensured in Networks?
Reliability in networks is ensured through redundancy, fault tolerance, monitoring, and regular maintenance.
Redundancy: Having backup components or paths to prevent single points of failure.
Fault tolerance: Systems are designed to continue functioning even if a component fails.
Monitoring: Constantly checking network performance and addressing issues proactively.
Regular maintenance: Updating software, replacing hardware, and optimizing configurations to prevent failures.
Exampl...read more

Asked in Samsung Research

Q. Describe an algorithm to find the maximum value up to which an API call does not return an error, using a binary search approach.
Use binary search to find the maximum value where an API call does not return an error, optimizing the search space efficiently.
Define the search space: Start with a range, e.g., 0 to N, where N is a known upper limit for the API calls.
Implement binary search: Check the middle value of the current range. If the API call succeeds, move to the upper half; if it fails, move to the lower half.
Continue narrowing the range: Repeat the process until the range converges to the maximu...read more

Asked in Samsung Research

Q. Explain binary search and the process of deriving its time complexity.
Binary search is an efficient algorithm for finding an item in a sorted array by repeatedly dividing the search interval in half.
Sorted Array Requirement: Binary search only works on arrays that are sorted in ascending or descending order.
Divide and Conquer: The algorithm divides the array into halves, eliminating one half from consideration based on the comparison with the middle element.
Time Complexity: The time complexity of binary search is O(log n), where n is the number...read more

Asked in Atlassian

Q. Describe the Python class you created for the coding round, which handled content popularity on a fictional platform.
Create a Python class to manage and track content popularity on a fictional platform.
Define a class 'Content' with attributes like 'title', 'views', and 'likes'.
Implement methods to increment views and likes, e.g., 'increment_views()' and 'increment_likes()'.
Add a method 'popularity_score()' that calculates a score based on views and likes.
Consider using a dictionary to store multiple content items and their popularity metrics.
Example: content = Content('My Post'); content.in...read more

Asked in Odessa

Q. Real life example of stack and queue
Stack and queue are data structures used to store and retrieve data in a specific order.
Stack: undo/redo functionality in text editors, back button in web browsers
Queue: printing jobs in a printer, waiting list for a ride at an amusement park

Asked in Salesforce

Q. How would you partition a string into lowercase letters, uppercase letters, and numbers?
Partition a string into three categories: lowercase letters, uppercase letters, and numbers.
Use three separate lists to store lowercase letters, uppercase letters, and numbers.
Iterate through each character in the string and check its type using character methods.
Example: For the string 'Hello123', the output would be: ['e', 'l', 'l'], ['H'], ['1', '2', '3'].

Asked in cloudyBoss

Q. What are the advantages and disadvantages of multi vendor architecture?
Multi vendor architecture offers flexibility but also introduces complexity and potential vendor lock-in.
Advantages: flexibility to choose best-of-breed solutions, competition drives innovation, reduces dependence on a single vendor
Disadvantages: increased complexity, potential for integration issues, vendor lock-in risk, increased management overhead
Example: using multiple cloud providers for redundancy and cost optimization
Example: using multiple software vendors for differ...read more

Asked in NCR Corporation

Q. What is scrum methodology?
Scrum is an agile methodology used for software development and project management.
It involves iterative and incremental development.
A team works on a project in sprints, typically 2-4 weeks long.
The team has daily stand-up meetings to discuss progress and plan for the day.
The product owner prioritizes the backlog of work.
At the end of each sprint, a review and retrospective are held to evaluate progress and plan for the next sprint.

Asked in MAQ Software

Q. Write a SQL query to move a table from one schema to another.
A SQL query to move a table from one schema to another.
Use the ALTER TABLE statement to rename the table and move it to the new schema.
Specify the new schema name in the ALTER TABLE statement.
Ensure that the user executing the query has the necessary privileges to perform the operation.

Asked in Centrica

Q. What do you think makes our program unique?
The program offers hands-on experience with cutting-edge technologies and provides mentorship from industry experts.
Access to cutting-edge technologies
Mentorship from industry experts
Hands-on experience with real-world projects

Asked in Johnson Controls

Q. Tell me how you used Apache Spark in your internship
I used Apache Spark to process large datasets and perform complex data transformations during my internship.
Implemented Spark jobs to analyze customer behavior data and generate insights for marketing campaigns
Utilized Spark SQL for querying and aggregating data from multiple sources
Optimized Spark jobs by tuning configurations and partitioning data for better performance

Asked in TCS

Q. What is your favorite programming language?
My favorite programming language is Python due to its simplicity, readability, and versatility.
Python is known for its clean and readable syntax, making it easy to learn and use.
Python has a vast standard library and many third-party packages, allowing for rapid development.
Python is versatile and can be used for web development, data analysis, machine learning, and more.

Asked in Hexagon Capability Center

Q. Write a function to create a Linked List.
Function to create a Linked List
Create a Node class with value and next pointer
Create a LinkedList class with head pointer
Add nodes to the linked list using the LinkedList class
Handle edge cases like empty list and inserting at head

Asked in Infinite Computer Solutions

Q. What is the agile model?
Agile model is an iterative approach to software development that emphasizes flexibility and customer satisfaction.
Agile model involves continuous collaboration between cross-functional teams and customers
It prioritizes working software over comprehensive documentation
It allows for changes and adjustments to be made throughout the development process
Examples of agile methodologies include Scrum, Kanban, and Extreme Programming (XP)

Asked in Toast

Q. Explain the concept of a priority queue and how to implement enqueue and dequeue operations.
A priority queue is a data structure where each element has a priority, and elements are dequeued based on priority.
Elements are added with a priority level; higher priority elements are dequeued first.
Common implementations include binary heaps, Fibonacci heaps, and unsorted arrays.
Example: In a hospital, patients are prioritized based on the severity of their condition.
Operations: Enqueue adds an element with a priority, while Dequeue removes the highest priority element.

Asked in Barclays

Q. Explain different types of JOIN operations (e.g., INNER JOIN, LEFT JOIN).
JOINS are used in SQL to combine rows from two or more tables based on a related column between them.
Inner Join: Returns rows when there is at least one match in both tables.
LEFT Join: Returns all rows from the left table, and the matched rows from the right table.
RIGHT Join: Returns all rows from the right table, and the matched rows from the left table.
FULL Join: Returns rows when there is a match in one of the tables.
Self Join: Joining a table with itself.

Asked in HubSpot

Q. Given two sorted lists, merge them into a single sorted list up to length k.
Merge two sorted lists up to length k
Create a new list to store the merged result
Iterate through both lists up to length k, comparing elements and adding the smaller one to the new list
Handle cases where one list is shorter than k
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Software Engineer 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

