Upload Button Icon Add office photos

Carwale

Compare button icon Compare button icon Compare

Filter interviews by

Carwale SDE (Software Development Engineer) Interview Questions and Answers

Updated 23 Dec 2016

27 Interview questions

A SDE (Software Development Engineer) was asked
Q. Implement a max() function that returns the maximum of all elements in the stack with optimized time and space complexity.
Ans. 

Implement max() function to find the maximum element in a stack with optimized time and space complexity.

  • Use an additional stack to keep track of the maximum element at each step.

  • When pushing an element onto the stack, compare it with the top element of the maximum stack and push the larger one.

  • When popping an element from the stack, also pop the top element from the maximum stack if they are equal.

  • The top element...

A SDE (Software Development Engineer) was asked
Q. What are stacks and their properties?
Ans. 

Stacks are a data structure that follows the Last-In-First-Out (LIFO) principle.

  • Stacks have two main operations: push (adds an element to the top) and pop (removes the top element).

  • Stacks can be implemented using arrays or linked lists.

  • Common applications of stacks include function call stack, undo/redo operations, and expression evaluation.

  • Example: A stack of books, where the last book placed is the first one to ...

SDE (Software Development Engineer) Interview Questions Asked at Other Companies

asked in Carwale
Q1. Given a string consisting of lowercase alphabets, write a functio ... read more
Q2. How would you design a text editor like notepad, focusing on the ... read more
asked in Carwale
Q3. Given a balance and 100 coins, where one coin is heavier than the ... read more
Q4. Given a binary search tree, print the path which has the sum equa ... read more
asked in Housing.com
Q5. Given a 1024x1024 map with flats at locations (x, y) and a visibi ... read more
A SDE (Software Development Engineer) was asked
Q. Calculate the sum of only the even numbers in the Fibonacci series.
Ans. 

The sum of even numbers in the Fibonacci series is calculated.

  • Generate the Fibonacci series up to a given limit

  • Iterate through the series and check if each number is even

  • If the number is even, add it to the sum

  • Return the sum of the even numbers

A SDE (Software Development Engineer) was asked
Q. Write a program to print the Fibonacci series up to 1000.
Ans. 

Print Fibonacci series less than or equal to 1000.

  • Start with two variables, a and b, initialized to 0 and 1 respectively.

  • Print a and update a to the value of b, and b to the sum of the previous a and b.

  • Repeat until a exceeds 1000.

A SDE (Software Development Engineer) was asked
Q. What is an abstract class?
Ans. 

An abstract class is a class that cannot be instantiated and is meant to be subclassed.

  • An abstract class can have both abstract and non-abstract methods.

  • It can provide a common interface for its subclasses.

  • Subclasses of an abstract class must implement all the abstract methods.

  • Abstract classes can have constructors.

  • An abstract class cannot be instantiated directly, but its subclasses can be.

A SDE (Software Development Engineer) was asked
Q. Given a binary tree, determine if it is a valid binary search tree (BST).
Ans. 

Check if given tree is BST or not

  • A binary tree is a BST if the value of each node is greater than all the values in its left subtree and less than all the values in its right subtree

  • Perform an in-order traversal of the tree and check if the values are in ascending order

  • Alternatively, for each node, check if its value is within the range defined by its left and right subtrees

A SDE (Software Development Engineer) was asked
Q. Given a singly linked list, delete all nodes which have a greater value on right side.
Ans. 

Delete nodes in linkedlist with greater value on right side

  • Traverse the linked list from right to left

  • Compare each node with the maximum value seen so far

  • If the current node has a greater value, delete it

  • Update the maximum value seen so far

Are these interview questions helpful?
A SDE (Software Development Engineer) was asked
Q. What is runtime polymorphism and compile time polymorphism? What are the differences between them?
Ans. 

Runtime polymorphism is when the method to be executed is determined at runtime, while compile-time polymorphism is determined at compile-time.

  • Runtime polymorphism is achieved through method overriding.

  • Compile-time polymorphism is achieved through method overloading.

  • Runtime polymorphism is also known as dynamic polymorphism.

  • Compile-time polymorphism is also known as static polymorphism.

  • Runtime polymorphism is asso...

A SDE (Software Development Engineer) was asked
Q. What is OOP? Describe its properties.
Ans. 

OOP is a programming paradigm that organizes code into objects with properties and behaviors.

  • OOP stands for Object-Oriented Programming.

  • It focuses on creating reusable code by organizing it into objects.

  • Objects have properties (attributes) and behaviors (methods).

  • Encapsulation, inheritance, and polymorphism are key principles of OOP.

  • Example: In Java, a class represents an object with its properties and methods.

A SDE (Software Development Engineer) was asked
Q. What are virtual functions?
Ans. 

Virtual functions are functions in a base class that can be overridden by derived classes to provide different implementations.

  • Virtual functions are declared in a base class and can be overridden in derived classes.

  • They allow polymorphism, where a pointer to a base class can invoke different derived class implementations.

  • Virtual functions are resolved at runtime based on the actual object type.

  • They are used to ach...

Carwale SDE (Software Development Engineer) Interview Experiences

4 interviews found

Interview Questionnaire 

8 Questions

  • Q1. Given a balance and 100 coins;out of which,one is heavier. Find minimum number of weighing required to find out heavier coin?
  • Q2. Questions on Graph like DFS and BFS traversal
  • Q3. Explain Prims and Kruskal’s algorithms
  • Ans. 

    Prims and Kruskal's algorithms are used to find the minimum spanning tree in a graph.

    • Prims algorithm starts with a single vertex and adds the minimum weight edge to the tree until all vertices are included.

    • Kruskal's algorithm starts with all vertices as separate trees and merges them by adding the minimum weight edge until all vertices are included.

    • Both algorithms have a time complexity of O(E log V) where E is the num...

  • Answered by AI
  • Q4. A graph was shown and asked to form Minimum Spanning Tree using above two algorithms. (Also asked if I can code it)
  • Q5. Delete nodes in a linked list which have greater value on right side
  • Ans. 

    Delete nodes in a linked list which have greater value on right side

    • Traverse the linked list and compare each node with its right side node

    • If the current node's value is less than its right side node, delete the current node

    • Repeat the process until the end of the linked list is reached

  • Answered by AI
  • Q6. Write code for reversing the linked list
  • Ans. 

    Code for reversing a linked list

    • Create a new empty linked list

    • Traverse the original linked list and insert each node at the beginning of the new list

    • Return the new list

  • Answered by AI
  • Q7. Difference between Methods and Constructors.(At least five)
  • Ans. 

    Methods are functions that perform a specific task, while constructors are special methods that initialize objects.

    • Constructors have the same name as the class they belong to.

    • Constructors are called automatically when an object is created.

    • Constructors can be overloaded with different parameters.

    • Methods can be called multiple times with different arguments.

    • Methods can have a return type, while constructors do not.

  • Answered by AI
  • Q8. Long discussion on Deadlock(necessary conditions), its prevention and avoidance etc, Bankers Algorithm

Interview Preparation Tips

Round: Test
Experience: Coding Platform : Hackerrank(C/C++/Java)
1) Check for balanced parenthesis in an expression.
2) Count all possible paths from top left to bottom right of a MxN matrix. (from each cell you can move only to right or down)
3) Given an array of size n and its elements, you have to include k elements such that the difference between the highest and lowest number in these k elements is minimum.
4) Find number of pair in a given array which is equal to given sum.
Duration: 120 minutes
Total Questions: 4

Round: Technical Interview
Experience: At the start of interview I was asked to Rate myself(out of 10) in Aptitude, Puzzle and then for C++.
For both I rated myself closer to 8.




Round: TECHNICAL AND HR
Experience: Icebreaker question- Tell me about yourself.
1. A question on tree Data structure.
2. I was asked about my Project work in college which was on Operating System. Detailed explanation why and how I picked this project. Who were the group members, how was the group formed, how much was the involvement of college faculty? What is its use in future? What was my role in the project?
The interviewer pointed out some flaw in algorithms used in project. Basically he asked me to think of Data Structures through which insertion can be done in O(1) as well as deletion and retrieval in O(1)…like the implementation of LRU cache algorithm.
The process took 40 minutes.
3. Discussion on second project which was on knn algorithm.
4. Asked me about tiny Url or Url shortener. Implement it.
Tips: The interviews were really thought provoking and the interviewers were helpful and friendly. It felt like solving problems as a team and not at all like a test. The interviewers were quite receptive to our questions and patient.

Skills: Object Oriented Programming (OOP) Basics, Puzzle Solving Capability, Operating System Basics, Algorithm, Data Structures
College Name: NIT Bhopal

Skills evaluated in this interview

Interview Questionnaire 

14 Questions

  • Q1. Make 24 using 8, 8, 3, 3 using + = / * ( ) .
  • Q2. Find all permutations of a given string. (Not in lexicographic order)
  • Ans. 

    Find all permutations of a given string.

    • Use recursion to swap each character with every other character in the string.

    • Repeat the process for each substring.

    • Add the permutation to an array.

  • Answered by AI
  • Q3. Given an array of size 98 and it has natural numbers from 1-100 but 2 numbers are missing. find them
  • Ans. 

    Given an array of size 98 with natural numbers from 1-100 but 2 numbers are missing, find them.

    • Calculate the sum of all numbers from 1-100 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 sum of missing numbers

    • Find the missing numbers by iterating through the array and checking which numbers are not present

  • Answered by AI
  • Q4. Fnd if a binary tree is bst or not
  • Ans. 

    Check if a binary tree is a binary search tree or not.

    • Traverse the tree in-order and check if the elements are in sorted order.

    • Check if the left child is less than the parent and the right child is greater than the parent.

    • Use recursion to check if all the subtrees are BSTs.

    • Maintain a range for each node and check if the node value is within that range.

  • Answered by AI
  • Q5. Detect and remove cycle in a linked list
  • Ans. 

    Detect and remove cycle in a linked list

    • Use two pointers, one slow and one fast, to detect a cycle

    • Once a cycle is detected, move one pointer to the head and iterate both pointers until they meet again

    • Set the next node of the last node in the cycle to null to remove the cycle

  • Answered by AI
  • Q6. A string is given consisting of lowercase alphabets. Write a function which returns yes if the string has all the lowercase letters appearing in it at least once. O(N) time and without using extra space
  • Q7. Convert a given number to its hexadecimal form
  • Ans. 

    Convert a number to its hexadecimal form

    • Use the built-in function to convert the number to hexadecimal

    • Alternatively, use the algorithm to convert the number to hexadecimal manually

    • Ensure to handle negative numbers appropriately

  • Answered by AI
  • Q8. Asked me how I rate myself in various subjects (CN , DBMS , OOPS ,OS). I told him that I am comfortable with OS and OOPS. Then he asked : Why multiple inheritance is not supported in JAVA. I told him tha...
  • Q9. Explain priority scheduling (preemptive , non-preemptive). Explain a case when a low priority process will preempt a high priority process
  • Ans. 

    Priority scheduling is a scheduling algorithm where processes are assigned priorities and executed based on their priority level.

    • Preemptive priority scheduling allows a higher priority process to interrupt a lower priority process that is currently running.

    • Non-preemptive priority scheduling allows a higher priority process to wait until the lower priority process finishes executing.

    • A low priority process can preempt a ...

  • Answered by AI
  • Q10. Brief discussion over one of my project
  • Q11. Explain singleton class and write code for it.
  • Ans. 

    Singleton class is a class that can only have one instance at a time.

    • Singleton pattern is used when we need to ensure that only one instance of a class is created and that instance can be accessed globally.

    • The constructor of a singleton class is always private to prevent direct instantiation.

    • A static method is used to access the singleton instance.

    • Example: public class Singleton { private static Singleton instance = ne...

  • Answered by AI
  • Q12. Develop tic-tac-toe game and write code using concepts of OOPS in CPP. (Initially told me to include artificial intelligence also but was later satisfied without it
  • Ans. 

    Develop tic-tac-toe game using OOPS concepts in CPP.

    • Create a class for the game board

    • Create a class for the players

    • Create a class for the game logic

    • Use inheritance and polymorphism for game objects

    • Implement functions for checking win/lose/draw conditions

  • Answered by AI
  • Q13. Normal HR questions
  • Q14. Long discussion over my projects

Interview Preparation Tips

Round: Test
Experience: Attempt at least 2 questions
Duration: 90 minutes
Total Questions: 4

Round: Technical Interview
Experience: The interviewer asked to write the full code for a couple of questions only.
Tips: Prepare puzzles.
Think loudly.
Ask for a hint if stuck.

Round: Technical Interview
Tips: Be honest with your interviewer. ;)

Skill Tips: Must be capable to solve puzzles as well as coding questions with good speed and accuracy.
Skills: Puzzle Solving Capability, Implementation of code using OOPS., Algorithm, Data Structures, Operating System Basics, Object Oriented Programming (OOP) Basics
College Name: NIT Bhopal
Motivation: Carwale currently has around 100-125 employees. So it's a good platform to learn new technology. The salary is also good.

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: Online coding session :
Q1). Check for balanced parenthesis in an expression.
Q2). Count all possible paths from top left to bottom right of a M x N matrix.
(From each cell you can move only to right or down).
Q3) Count number of pairs with given sum in an array.
Q4). Print (N-K) values corresponding to min of each K-sized chunk in a given array of size N.

Tips: Lead in this round can benefit you in next rounds, so give your best shot.
Duration: 120 minutes minutes
Total Questions: 4

Round: Technical Interview
Experience: This was about a 30 min session.
He asked me very easy concept based questions.

Q1). Explain your project briefly.
Q2). Explain multiple inheritance
Q3). Why JAVA doesn’t support multiple inheritance.
Q4). Convert a hexadecimal to binary number and vice versa.
Q5). What are balanced BSTs?
Q6). Explain all possible rotations possible in a balanced BST.
Q7). Write INSERT function for a balanced BST.

Tips: Correct explaination matters,time doesn't.Take your time.

Round: Technical Interview
Experience: This was Technical + HR round :

Q1). Detailed discussion on my intern project.
Asked the shortcomings of the project and approaches to resolve them.
Q2). Discussion on minor project (Threaded download accelerator)
Asked about what all different approaches I could have followed in the project and why didn’t I chose them.
Q3). Favorite subject – I replied OS.
Asked few basic questions-
What are threads? How are they different from process? Explain with example.
I don’t remember the other os questions he asked about.
Q4). Implement Twitter.
It wasn’t easy to make him understand the approach. He was kind of satisfied with my approach at the end.
Q5). Discussion on other projects.
.
HR questions followed.

Tips: Be yourself.Don't pretend.
All the best :)

Skill Tips: Have conceptual knowledge of subjects, don't just mug up things.
Interviewers are smart enough to make it out anyway.
Skills: Logical Thinking, Operating System Basics, Algorithm, Database Management, Data Structures, C++, C
College Name: NIT Bhopal
Motivation: Flat hierarchy.
No cabin culture.
Working at startup is always better because you get to learn a lot of things.
Decent salary.

I appeared for an interview in Jan 2016.

Interview Questionnaire 

16 Questions

  • Q1. Based on project. What is difference between REST and SOAP? And couple of other questions
  • Q2. Delete nodes in linkedlist which have a greater value on right side?
  • Ans. 

    Delete nodes in linkedlist with greater value on right side

    • Traverse the linked list from right to left

    • Compare each node with the maximum value seen so far

    • If the current node has a greater value, delete it

    • Update the maximum value seen so far

  • Answered by AI
  • Q3. Check if given tree is BST or not?
  • Ans. 

    Check if given tree is BST or not

    • A binary tree is a BST if the value of each node is greater than all the values in its left subtree and less than all the values in its right subtree

    • Perform an in-order traversal of the tree and check if the values are in ascending order

    • Alternatively, for each node, check if its value is within the range defined by its left and right subtrees

  • Answered by AI
  • Q4. One adhoc question on strings?
  • Ans. 

    Adhoc string questions often test manipulation, searching, or pattern recognition skills in programming.

    • String reversal: Reverse a string using slicing. Example: 'hello' -> 'olleh'.

    • Palindrome check: Determine if a string reads the same forwards and backwards. Example: 'racecar' is a palindrome.

    • Substring search: Find if one string is a substring of another. Example: 'cat' in 'concatenation' returns True.

    • Character fre...

  • Answered by AI
  • Q5. One adhoc question from the online test itself? Ask me how i approached this problem and ask me to write code and explain?
  • Q6. What is OOP? Describe its properties?
  • Ans. 

    OOP is a programming paradigm that organizes code into objects with properties and behaviors.

    • OOP stands for Object-Oriented Programming.

    • It focuses on creating reusable code by organizing it into objects.

    • Objects have properties (attributes) and behaviors (methods).

    • Encapsulation, inheritance, and polymorphism are key principles of OOP.

    • Example: In Java, a class represents an object with its properties and methods.

  • Answered by AI
  • Q7. What is runtime polymorphism and compile time polymorphism? Difference between them?
  • Ans. 

    Runtime polymorphism is when the method to be executed is determined at runtime, while compile-time polymorphism is determined at compile-time.

    • Runtime polymorphism is achieved through method overriding.

    • Compile-time polymorphism is achieved through method overloading.

    • Runtime polymorphism is also known as dynamic polymorphism.

    • Compile-time polymorphism is also known as static polymorphism.

    • Runtime polymorphism is associate...

  • Answered by AI
  • Q8. What are virtual functions?
  • Ans. 

    Virtual functions are functions in a base class that can be overridden by derived classes to provide different implementations.

    • Virtual functions are declared in a base class and can be overridden in derived classes.

    • They allow polymorphism, where a pointer to a base class can invoke different derived class implementations.

    • Virtual functions are resolved at runtime based on the actual object type.

    • They are used to achieve ...

  • Answered by AI
  • Q9. What is abstract class?
  • Ans. 

    An abstract class is a class that cannot be instantiated and is meant to be subclassed.

    • An abstract class can have both abstract and non-abstract methods.

    • It can provide a common interface for its subclasses.

    • Subclasses of an abstract class must implement all the abstract methods.

    • Abstract classes can have constructors.

    • An abstract class cannot be instantiated directly, but its subclasses can be.

  • Answered by AI
  • Q10. What is inheritance? What are diffence types of inheritance?
  • Ans. 

    Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.

    • Inheritance allows code reuse and promotes code organization.

    • There are different types of inheritance: single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance, and hybrid inheritance.

    • Single inheritance involves a class inheriting from a single base class.

    • Multipl...

  • Answered by AI
  • Q11. Ask me about my coding experience how i started since i was from non IT Branch?
  • Q12. Print fibonaaci series less than equal to 1000?
  • Ans. 

    Print Fibonacci series less than or equal to 1000.

    • Start with two variables, a and b, initialized to 0 and 1 respectively.

    • Print a and update a to the value of b, and b to the sum of the previous a and b.

    • Repeat until a exceeds 1000.

  • Answered by AI
  • Q13. In the above question calculate sum of only even numbers of fibonaaci series?
  • Ans. 

    The sum of even numbers in the Fibonacci series is calculated.

    • Generate the Fibonacci series up to a given limit

    • Iterate through the series and check if each number is even

    • If the number is even, add it to the sum

    • Return the sum of the even numbers

  • Answered by AI
  • Q14. Optimized the above solution less than O(n). For this you have to think out of the box
  • Ans. 

    Explore unconventional methods to achieve sub-linear time complexity for the given problem.

    • Use hashing to store previously computed results, allowing O(1) lookups.

    • Implement a divide-and-conquer strategy to reduce problem size recursively.

    • Consider using a probabilistic approach, like Bloom filters, for approximate results.

    • Utilize parallel processing to handle multiple data segments simultaneously.

  • Answered by AI
  • Q15. What are stacks and its properties?
  • Ans. 

    Stacks are a data structure that follows the Last-In-First-Out (LIFO) principle.

    • Stacks have two main operations: push (adds an element to the top) and pop (removes the top element).

    • Stacks can be implemented using arrays or linked lists.

    • Common applications of stacks include function call stack, undo/redo operations, and expression evaluation.

    • Example: A stack of books, where the last book placed is the first one to be re...

  • Answered by AI
  • Q16. Now implement one extra funtion called max() with give the maximum of all elements in the above stack with optimized time and space complexity?
  • Ans. 

    Implement max() function to find the maximum element in a stack with optimized time and space complexity.

    • Use an additional stack to keep track of the maximum element at each step.

    • When pushing an element onto the stack, compare it with the top element of the maximum stack and push the larger one.

    • When popping an element from the stack, also pop the top element from the maximum stack if they are equal.

    • The top element of t...

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: There were 4 questions of varying difficulty. Those attempted atleast 2 were selected for the next round.
Q1) Question based on Tower of hanoi problem. I solved it using dynamic programming.
Q2) Check for balanced parenthesis in an expression.
Q3)One adhoc question to calculate the maximum number of people present at a particular time in a hotel.
Q4) One other question based on string algorithms.
two adhoc questions
Tips: Lead in this round can benefit you in next rounds, so give your best shot
Total Questions: 4

Round: Technical Interview
Experience: The interviewer asked to write the full code for a couple of questions only
Tips: Prepare DS nicely.
Strong OOPs concepts.
They want optimized solution of all.
Be honest with your interviewer.
Don't pretend.

Round: Other Interview
Experience: Ask me write and compile the codes.
The interviewer was very friendly and helping nature.
He was giving hints where i stuck.
He was checking my thinking and prolem solving capability.
Tips: Correct explaination matters,time doesn't.Take your time.
Ask fro hint.
Be yourself.Don't pretend.
All the best :)

Skill Tips: Have conceptual knowledge of subjects, don't just mug up things. Interviewers are smart enough to make it out anyway.
Skills: C++, Object Oriented Programming, Algorithms And Data Structures, Ability To Think
College Name: NIT Allahabad
Motivation: Flat hierarchy.
Good progress by the company in its last 10 years of expansion.
opportunity to work with best minds of the country.
Decent salary.

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
5d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about Carwale?
Ask anonymously on communities.

Interview questions from similar companies

Interview Questionnaire 

8 Questions

  • Q1. Implement queue with the help of two stacks
  • Ans. 

    Queue can be implemented using two stacks by maintaining the order of elements in the stacks.

    • Create two stacks, let's call them stack1 and stack2

    • When an element is enqueued, push it to stack1

    • When an element is dequeued, pop all elements from stack1 and push them to stack2

    • Pop the top element from stack2 and return it as the dequeued element

    • If stack2 is empty, repeat step 3

    • To get the front element of the queue, peek the ...

  • Answered by AI
  • Q2. Iven a table “student” of with columns Name and Marks. You have to write a SQL query to get the 2nd highest marks from the table. Also write a query to find the nth highest marks, where n can be any number
  • Ans. 

    Retrieve the 2nd highest and nth highest marks from a student table using SQL queries.

    • Use the DISTINCT keyword to avoid duplicate marks.

    • For the 2nd highest marks: SELECT DISTINCT Marks FROM student ORDER BY Marks DESC LIMIT 1 OFFSET 1;

    • For nth highest marks: SELECT DISTINCT Marks FROM student ORDER BY Marks DESC LIMIT 1 OFFSET n-1; (replace n with the desired number)

    • Example for 2nd highest: If Marks are 90, 85, 90, 80, ...

  • Answered by AI
  • Q3. What is left join. Give example. And Full outer join?
  • Ans. 

    Left join returns all records from left table and matching records from right table. Full outer join returns all records from both tables.

    • Left join is used to combine two tables based on a common column.

    • In left join, all records from the left table are returned along with matching records from the right table.

    • If there is no match in the right table, NULL values are returned.

    • Example: SELECT * FROM table1 LEFT JOIN table...

  • Answered by AI
  • Q4. What is magic functions and autoloading in PHP?
  • Ans. 

    Magic functions are special methods in PHP that start with __. Autoloading is a way to automatically load classes.

    • Magic functions are used to handle certain events in PHP, such as object creation or property access.

    • Autoloading allows PHP to automatically load classes when they are needed, without requiring manual includes.

    • Magic functions can be used in conjunction with autoloading to dynamically load classes or handle ...

  • Answered by AI
  • Q5. Given three arrays sorted in non-decreasing order, print all common elements in these arrays. Examples: ar1[] = {1, 5, 10, 20, 40, 80} ar2[] = {6, 7, 20, 80, 100} ar3[] = {3, 4, 15, 20, 30, 70, 80, 120} Ou...
  • Ans. 

    Given three sorted arrays, find common elements.

    • Create three pointers to traverse each array

    • Compare the elements at the pointers and move the pointer of the smallest element

    • If all pointers point to the same element, add it to the result and move all pointers

    • Repeat until any pointer reaches the end of its array

  • Answered by AI
  • Q6. A puzzle. You will be given with a 3 Litre container & a 7 Litre Container. Measure exactly 5 Litres of water
  • Q7. Asked about one of my projects I mentioned in my resume?
  • Q8. Find if a number is a power of 2 or not?
  • Ans. 

    Check if a number is a power of 2 or not.

    • A power of 2 has only one bit set in its binary representation.

    • Use bitwise AND operator to check if the number is a power of 2.

    • If n is a power of 2, then n & (n-1) will be 0.

  • Answered by AI

Interview Preparation Tips

Skills: Data structures, PHP, Algortihm
College Name: na
Motivation: Overall it was a very good experience. They test you from every aspect. In the End I would like to say that Practo is one of the best companies to work for.

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: There was Pool Campus Placement of  4 Colleges together(NIT Jalandhar,NIT Hamirpur ,Candigarh University and CGC Landran ) at Chandigarh University.Written test was taken on Hacker Rank. There were 5 Coding Questions of Linklist , Dynamic Programming,Priority Queues etc . 
You didn't have to do All the questions (3 can get you to the next round).

One thing that need to be beware of is that on Hacker Rank Your Draft is Saved every second(or so). So don't copy from the internet and just paste there(they will get to know).
Tips: Make sure you practice lot of Algorithms.
Duration: 120 minutes
Total Questions: 5

Round: Problem Statement
Experience: Only 8 Students were selected for this round
20 mins were given for it
and afterwards each student had personal discussion(10 mins) with them to explain their schema .
3-4 Questions were also asked related to your schema and how to perform a particular query
Tips: You should Be Through with DBMS
Make sure there is no redundant table and Primary keys are marked

Round: Technical Interview
Experience: 2 were selected for the Interview
Firstly they make you very Comfortable and ask how were the previous Rounds.
Then they asked about the two questions of First Round and my approach 
Then couple of questions on The design that was made Earlier.
Then there were questions on How Internet Works ,gcc,Linux,git,sql.

Then the Interviewer asked if I have any question
I asked about (as the work on doctor's app) how they know the credibility of a doctor which is enlisted in their app.
Interviewer was really Impressed by the question and told me all about it with all details.


Both were selected
Tips: Be cool in the Interview
Think Loudly and Interact with them well.
If they want you to ask any question ,it should not be related to technical stuff ,it should be related to the company

College Name: NIT JALANDHAR

I applied via Referral

Interview Questionnaire 

5 Questions

  • Q1. I was asked to optimize the last program mentioned above
  • Q2. I was asked in detail about my internship experience and projects
  • Q3. I was asked why I did not contribute to any open source projects
  • Ans. 

    I haven't contributed to open source due to time constraints and focusing on personal projects and learning new technologies.

    • Time Constraints: Balancing work, personal projects, and learning new technologies has limited my availability.

    • Focus on Personal Projects: I've been dedicated to developing my own applications, such as a task management tool.

    • Learning New Technologies: I prioritized mastering frameworks like React...

  • Answered by AI
  • Q4. I was asked to explain the code of my android app from my dropbox account
  • Q5. The usual HR questions followed after that

Interview Preparation Tips

Skills:
College Name: NA
Are these interview questions helpful?

I appeared for an interview before Feb 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

It comprised of general aptitude questions and two coding questions. It was an offline test.

  • Q1. 

    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 ar...

  • Ans. 

    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 and print valid configurations where queens are placed safely.

    • Consider constraints and time limit for efficient solution.

    • Exam...

  • Answered by AI
  • Q2. 

    Sort 0 1 2 Problem Statement

    Given an integer array arr of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.

    Input:

    The first line contains an integer 'T' representing the n...
  • Ans. 

    Sort an integer array containing only 0s, 1s, and 2s in linear time complexity.

    • Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.

    • Iterate through the array and swap elements based on the values encountered.

    • Achieve sorting in a single scan over the array without using any extra space.

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

After having a technical discussion about my CV. He gave me two questions to code.

  • Q1. 

    Ninja and Substrings Problem Statement

    Ninja has to determine all the distinct substrings of size two that can be formed from a given string 'STR' comprising only lowercase alphabetic characters. These su...

  • Ans. 

    Find all unique contiguous substrings of size two from a given string.

    • Iterate through the string and extract substrings of size two

    • Use a set to store unique substrings

    • Return the set as an array of strings

  • Answered by AI
  • Q2. 

    Cycle Detection in a Singly Linked List

    Determine if a given singly linked list of integers forms a cycle or not.

    A cycle in a linked list occurs when a node's next points back to a previous node in the ...

  • Ans. 

    Detect if a singly linked list forms a cycle by checking if a node's next points back to a previous node.

    • Traverse the linked list using two pointers, one moving one step at a time and the other moving two steps at a time.

    • If the two pointers meet at any point, there is a cycle in the linked list.

    • If one of the pointers reaches the end of the list (null), there is no cycle.

  • Answered by AI
Round 3 - HR 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This was supposed to be the HR round but out of surprise the interviewer started by giving me a question to code. 
After I approached this question with the right solution he just asked about my family. After that he said to wait. After half an hour the results were announced. A total of three students were hired and I was amongst one of them.

  • Q1. 

    Balanced Parentheses Combinations

    Given an integer N representing the number of pairs of parentheses, find all the possible combinations of balanced parentheses using the given number of pairs.

    Explanati...

  • Ans. 

    Generate all possible combinations of balanced parentheses for a given number of pairs.

    • Use recursion to generate all possible combinations of balanced parentheses.

    • Keep track of the number of open and close parentheses used in each combination.

    • Return the valid combinations as an array of strings.

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMagicbricks interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 5 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

9 Questions

  • Q1. What is event bubbling?
  • Ans. 

    Event bubbling is the propagation of an event from the innermost child element to the outermost parent element.

    • Events triggered on a child element will also trigger on its parent elements

    • The event travels up the DOM tree until it reaches the document object

    • Can be stopped using event.stopPropagation()

    • Can be useful for event delegation

  • Answered by AI
  • Q2. Difference between .on(‘click’,function() and .click(function())
  • Ans. 

    The .on('click',function() is a more flexible method than .click(function())

    • The .on() method can handle multiple events and selectors

    • The .click() method can only handle one event and one selector

    • The .on() method can also handle dynamically added elements

    • The .click() method cannot handle dynamically added elements

  • Answered by AI
  • Q3. Write a function to check if two strings are anagram or not
  • Ans. 

    Function to check if two strings are anagram or not

    • Create two character arrays from the strings

    • Sort the arrays

    • Compare the sorted arrays

  • Answered by AI
  • Q4. Given an array of integers which can be in one of four order – i.Increasing 2.Decreasing 3.decreasing then increasing 4.increasing then decreasing .Write a function to find the type of array
  • Ans. 

    Function to determine the order of integers in an array.

    • Check first and last element to determine if increasing or decreasing

    • Check for inflection point to determine if order changes

    • Return order type as string

  • Answered by AI
  • Q5. How can you improve the performance of a site.(Only frontend)
  • Ans. 

    Optimize images, minify code, reduce HTTP requests, use caching, and lazy loading.

    • Optimize images using compression and appropriate file formats

    • Minify code to reduce file size and improve load times

    • Reduce HTTP requests by combining files and using sprites

    • Use caching to store frequently accessed data locally

    • Implement lazy loading to defer loading of non-critical resources

  • Answered by AI
  • Q6. Design database schema for a movie site.Where user can watch the movie,genre of movie,give ratings and recommended movies to user.Also Write an algorithm to show recommended movies to user
  • Ans. 

    Design a database schema for a movie site with user ratings and recommendations.

    • Create tables for movies, users, ratings, and recommendations

    • Use foreign keys to link tables

    • Include columns for movie genre and user watch history

    • Algorithm for recommendations can use user watch history and ratings to suggest similar movies

  • Answered by AI
  • Q7. By tossing a coin we can get either head or tail, i have a function toss() which return head or tail with equal probability
  • Ans. 

    Using a coin toss function, we can generate random binary outcomes for various applications in programming.

    • The toss() function simulates a fair coin toss, returning 'head' or 'tail'.

    • It can be used in games to make random decisions, like choosing a player to start.

    • In algorithms, it can help in randomized algorithms, such as quicksort.

    • Example: If toss() returns 'head', you might proceed with one branch of logic; if 'tail...

  • Answered by AI
  • Q8. You have to write a function for dice which will return number from 1-6 with equal probability. constraints : you can not use random function, you can use only toss function
  • Ans. 

    Function to simulate dice roll with equal probability without using random function

    • Use a toss function that returns either 0 or 1 with equal probability

    • Call the toss function 3 times and convert the result to a binary number

    • If the binary number is greater than 0 and less than or equal to 6, return it

    • If the binary number is greater than 6, repeat the process

  • Answered by AI
  • Q9. Write a query to fetch duplicate email from table?
  • Ans. 

    Query to fetch duplicate email from table

    • Use GROUP BY and HAVING clause to filter out duplicates

    • SELECT email, COUNT(*) FROM table_name GROUP BY email HAVING COUNT(*) > 1;

    • This will return all the duplicate emails in the table

  • Answered by AI

Interview Preparation Tips

Skills: data structure, Algorithm
College Name: na
Motivation: Practo is the market leader in digital healthcare management with millions of consumers using our products to find doctors, book appointments and manage their healthcare efficiently. Practo Ray is the platform of choice for the vast majority of doctors and clinics deploying cloud based clinic management solution.I recently got an offer from Practo, here is my interview experience:

Skills evaluated in this interview

Software Engineer Interview Questions & Answers

Practo user image BEKKAM VENKATA ADITYA

posted on 27 Sep 2015

I applied via Campus Placement

Interview Questionnaire 

4 Questions

  • Q1. General questions. Where are you from, tell about yourself etc..,
  • Q2. Asked me about the projects which i have mentioned in my resume
  • Q3. Some algorithmic questions including data structures. Time complexity, space complexity etc.,
  • Q4. How would you design a snake game present in basic nokia mobiles. Just the data structure part and some functions which are used as the game goes on

Interview Preparation Tips

Round: Test
Experience: A bit difficult but sensible way to get started with the selection procedure. Questions purely attack the algorithmic and stastitic aspects.
Tips: Get yourself ready with conceptual clartity regarding algorithms and stastics . Don't be ambitious to attempt all the questions, completely solving one problem would be more than enough for getting through this level.
Duration: 120 minutes
Total Questions: 3

Round: Technical Interview
Experience: Believe me. You never feel inferior, it's really interactive and very friendly. Interviewer gave me a few chances and hints whenever i've gone wrong. Overall interview experience was awesome.
Tips: If you're up to this round, they believe you have the potential. So don't panic if you are unable to answer their questions. Just tell them which aspects which you are comfortable with and they will proceed correspondingly, Just be honest whatsoever.

Skill Tips: Prefer having some revision about the above skills before undergoing the selection process.
Skills: Math Puzzles, Algorithmic Approach To Problem Solving, Data Structures
Duration: 2months
College Name: IIT Madras
Funny Moments: Receiving the offer letter from HR official who visited our campus :)

Carwale Interview FAQs

What are the top questions asked in Carwale SDE (Software Development Engineer) interview?

Some of the top questions asked at the Carwale SDE (Software Development Engineer) interview -

  1. A string is given consisting of lowercase alphabets. Write a function which ret...read more
  2. Given a balance and 100 coins;out of which,one is heavier. Find minimum number ...read more
  3. Delete nodes in linkedlist which have a greater value on right si...read more

Tell us how to improve this page.

Interview Questions from Similar Companies

MagicBricks Interview Questions
4.2
 • 335 Interviews
Tracxn Interview Questions
3.1
 • 105 Interviews
Practo Interview Questions
3.1
 • 77 Interviews
Zolo Interview Questions
3.3
 • 57 Interviews
Netmeds.com Interview Questions
3.7
 • 48 Interviews
Impact Guru Interview Questions
3.6
 • 46 Interviews
Uplers Interview Questions
3.9
 • 43 Interviews
Yahoo Interview Questions
4.6
 • 30 Interviews
BookMyShow Interview Questions
3.8
 • 27 Interviews
View all

Carwale SDE (Software Development Engineer) Reviews and Ratings

based on 2 reviews

3.1/5

Rating in categories

3.1

Skill development

2.4

Work-life balance

2.4

Salary

3.8

Job security

3.1

Company culture

3.1

Promotions

3.1

Work satisfaction

Explore 2 Reviews and Ratings
Accounts Manager
141 salaries
unlock blur

₹3 L/yr - ₹5.2 L/yr

Key Account Manager
97 salaries
unlock blur

₹3.3 L/yr - ₹7.3 L/yr

Regional Manager
35 salaries
unlock blur

₹4.7 L/yr - ₹10.2 L/yr

Product Manager
30 salaries
unlock blur

₹16 L/yr - ₹25 L/yr

Software Development Engineer
23 salaries
unlock blur

₹6.7 L/yr - ₹13.8 L/yr

Explore more salaries
Compare Carwale with

MagicBricks

4.2
Compare

Netmeds.com

3.7
Compare

Practo

3.1
Compare

Tracxn

3.1
Compare
write
Share an Interview