Filter interviews by
Data type is a classification of data based on the type of value it holds.
Data type determines the operations that can be performed on the data
Examples of data types include integers, strings, booleans, and floats
Data types can be static or dynamic depending on the programming language
Arrays are homogeneous data structures while lists are heterogeneous data structures in Python.
Arrays are fixed in size while lists are dynamic.
Arrays can only contain elements of the same data type while lists can contain elements of different data types.
Arrays are faster and more memory-efficient for numerical operations.
Lists have more built-in functions and are more versatile for general-purpose programming.
Ex...
Lists are mutable while tuples are immutable in Python.
Lists use square brackets [] while tuples use parentheses ().
Elements in a list can be added, removed, or modified while tuples cannot be modified.
Lists are used for collections of homogeneous items while tuples are used for heterogeneous items.
Lists are generally used for large collections of data while tuples are used for smaller collections or for data that...
A function is a block of code that performs a specific task and can be called multiple times throughout a program.
Functions are defined using the 'def' keyword followed by the function name and parentheses.
Functions can take arguments (inputs) and return values (outputs).
Functions can be called multiple times throughout a program, making code more efficient and modular.
Example: def add_numbers(x, y): return x + y
E...
A keyword is a reserved word in a programming language that has a specific meaning and cannot be used as a variable name.
Keywords are used to define the syntax and structure of a programming language.
They cannot be used as variable names or identifiers.
Examples of keywords in Python include 'if', 'else', 'for', 'while', 'def', 'class', and 'import'.
A nested loop is a loop inside another loop. It allows iterating over multiple levels of data structures.
Nested loops are used when we need to perform repetitive tasks within repetitive tasks.
The inner loop is executed for each iteration of the outer loop.
Nested loops can be used to iterate over multi-dimensional arrays or nested data structures.
Example: Printing a multiplication table using nested loops.
A while loop is a control flow statement that allows code to be executed repeatedly based on a condition.
The loop continues until the condition becomes false
The condition is checked before each iteration
The loop body must include a way to modify the condition to avoid an infinite loop
A for loop is a control flow statement that iterates over a sequence of elements and executes a block of code for each element.
A for loop is used to iterate over a sequence such as a list, tuple, or string.
It consists of an initialization, condition, and increment/decrement statement.
The loop continues until the condition is false.
The code block inside the loop is executed for each element in the sequence.
Example:...
Python is a high-level programming language known for its simplicity and readability.
Python is an interpreted language, which means it does not need to be compiled before running.
It has a large standard library that provides many useful modules and functions.
Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
It is widely used in web development, data a...
I applied via Naukri.com and was interviewed in Sep 2021. There were 3 interview rounds.
Python is a high-level programming language known for its simplicity and readability.
Python is an interpreted language, which means it does not need to be compiled before running.
It has a large standard library that provides many useful modules and functions.
Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
It is widely used in web development, data analys...
reang is not a recognized term in Python development.
reang is not a Python keyword, module, or function.
There is no known reference or documentation for reang in Python.
It is possible that reang is a typo or a mispronunciation of another term.
A while loop is a control flow statement that allows code to be executed repeatedly based on a condition.
The loop continues until the condition becomes false
The condition is checked before each iteration
The loop body must include a way to modify the condition to avoid an infinite loop
A nested loop is a loop inside another loop. It allows iterating over multiple levels of data structures.
Nested loops are used when we need to perform repetitive tasks within repetitive tasks.
The inner loop is executed for each iteration of the outer loop.
Nested loops can be used to iterate over multi-dimensional arrays or nested data structures.
Example: Printing a multiplication table using nested loops.
A for loop is a control flow statement that iterates over a sequence of elements and executes a block of code for each element.
A for loop is used to iterate over a sequence such as a list, tuple, or string.
It consists of an initialization, condition, and increment/decrement statement.
The loop continues until the condition is false.
The code block inside the loop is executed for each element in the sequence.
Example: for ...
A keyword is a reserved word in a programming language that has a specific meaning and cannot be used as a variable name.
Keywords are used to define the syntax and structure of a programming language.
They cannot be used as variable names or identifiers.
Examples of keywords in Python include 'if', 'else', 'for', 'while', 'def', 'class', and 'import'.
A function is a block of code that performs a specific task and can be called multiple times throughout a program.
Functions are defined using the 'def' keyword followed by the function name and parentheses.
Functions can take arguments (inputs) and return values (outputs).
Functions can be called multiple times throughout a program, making code more efficient and modular.
Example: def add_numbers(x, y): return x + y
Exampl...
Data type is a classification of data based on the type of value it holds.
Data type determines the operations that can be performed on the data
Examples of data types include integers, strings, booleans, and floats
Data types can be static or dynamic depending on the programming language
PEP stands for Python Enhancement Proposal, which is a design document providing information or describing a new feature for Python.
PEP is used to propose and discuss new features or changes in Python
PEP is maintained by the Python community
PEP is assigned a number and categorized based on its type
Examples of PEPs include PEP 8 (Style Guide for Python Code) and PEP 20 (The Zen of Python)
Lists are mutable while tuples are immutable in Python.
Lists use square brackets [] while tuples use parentheses ().
Elements in a list can be added, removed, or modified while tuples cannot be modified.
Lists are used for collections of homogeneous items while tuples are used for heterogeneous items.
Lists are generally used for large collections of data while tuples are used for smaller collections or for data that shou...
Lambda functions are anonymous functions that can be defined in a single line of code.
Lambda functions are defined using the lambda keyword.
They can take any number of arguments, but can only have one expression.
They are often used as arguments for higher-order functions.
Example: lambda x: x**2 defines a lambda function that squares its input.
Arrays are homogeneous data structures while lists are heterogeneous data structures in Python.
Arrays are fixed in size while lists are dynamic.
Arrays can only contain elements of the same data type while lists can contain elements of different data types.
Arrays are faster and more memory-efficient for numerical operations.
Lists have more built-in functions and are more versatile for general-purpose programming.
Example...
Top trending discussions
I applied via Naukri.com and was interviewed before Sep 2019. There were 6 interview rounds.
posted on 15 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Easy
It happens in very friendly manner.
Given an 'M x N' matrix, print all the possible paths from the top-left corner to the bottom-right corner. You can only move either right (from (i,j) to (i,j+1)) or dow...
Print all possible paths from top-left to bottom-right in a matrix by moving only right or down.
Use backtracking to explore all possible paths from top-left to bottom-right in the matrix.
At each cell, recursively explore moving right and down until reaching the bottom-right corner.
Keep track of the current path and add it to the result when reaching the destination.
Yes, I can create 2 tables in SQL and perform operations like INSERT, SELECT, UPDATE, and DELETE.
Create Table 1: CREATE TABLE employees (id INT, name VARCHAR(50), salary DECIMAL(10,2));
Create Table 2: CREATE TABLE departments (dept_id INT, dept_name VARCHAR(50));
Insert Data: INSERT INTO employees VALUES (1, 'John Doe', 50000);
Select Data: SELECT * FROM employees WHERE salary > 40000;
Update Data: UPDATE employees SET...
Round duration - 90 minutes
Round difficulty - Medium
No problem occur very friendly environment.
Round duration - 90 minutes
Round difficulty - Hard
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Explore all possible directions (up, down, left, right) from each cell.
Add the current direction to the path and recursively explore further.
If the destination is reached, add the path to the list of valid paths.
Tip 1 : Competitive programming plays a major role when you are appearing for coding rounds as a fresher. In the coding rounds, you won't get direct problems copied from Geeksforgeeks or Leetcode. You would be required to use your logical thinking to go ahead in the process. This is where competitive programming helps.
Tip 2 : Coding rounds are all about Coding + Timing. Most people fail to excel due to the pressure of a timer ticking on your head. So, instead of just solving problems, try to participate in timed contests. This will help you be used to the pressure of the timer.
Tip 3 : Many big companies like Microsoft, Amazon, and even Google expect you to be good at standard problems. So, once you are done with coding round by your logical skills and competitive programming, you must be well versed with some standard problems in order to excel.
Application resume tips for other job seekersTip 1 : Make it short, crisp, and simple. It is always good to have a 1 pager resume.
Tip 2 : Resume must comprise of the following: Educational Qualifications, Technical skills, Projects, Work experience (if any), Achievements. Other than this, you may include some extra co-curricular achievements.
posted on 13 Jan 2015
I am a software developer with experience in various programming languages and frameworks.
Proficient in Java, C++, and Python
Familiar with web development using HTML, CSS, and JavaScript
Experience with database management systems such as MySQL and MongoDB
Strong problem-solving and analytical skills
Worked on projects involving machine learning and artificial intelligence
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a method in a subclass that is already defined in the su...
Switch case is used for multiple conditions while if else is used for binary conditions.
Switch case is faster than if else for multiple conditions.
If else can handle complex conditions while switch case cannot.
Switch case can only compare values of the same data type.
If else can handle null values while switch case cannot.
Example: switch (day) { case 1: console.log('Monday'); break; case 2: console.log('Tuesday'); brea...
Interface and abstract class are both used for abstraction in object-oriented programming.
An interface is a collection of abstract methods that define a contract for a class to implement.
An abstract class is a class that cannot be instantiated and may contain abstract methods.
Interfaces are used to achieve multiple inheritance in Java.
Abstract classes can have non-abstract methods and instance variables.
An example of a...
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A shape class can have multiple subclasses like circle, square, etc. and all can be treated as shapes.
Example: A method can have different implementations in different classes but with the sa...
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reusability and saves time and effort in writing new code.
The existing class is called the parent or base class, and the new class is called the child or derived class.
The child class inherits all the properties and methods of the parent class and can also add its ...
Default case in switch case statement
Default case is executed when no other case matches the switch expression
It is optional and can be placed anywhere in the switch statement
It is often used to handle unexpected input or errors
It should always be the last case in the switch statement
I am a passionate software developer with a strong background in web development and a love for problem-solving.
Experienced in HTML, CSS, JavaScript, and various web development frameworks
Proficient in backend development using languages like Java, Python, and Node.js
Familiar with database management systems such as MySQL and MongoDB
Strong problem-solving skills and ability to work well in a team environment
I tend to get overly focused on details, which can sometimes slow down my progress.
I have a tendency to spend too much time on perfecting small details
I sometimes struggle with prioritizing tasks due to my focus on details
I am working on improving my time management skills to balance detail-oriented work with efficiency
Yes, I have received offers from two other companies.
Received offers from Company A and Company B
Currently evaluating all offers to make an informed decision
Considering factors like company culture, growth opportunities, and compensation
I would like to join Google because of their innovative projects and work culture.
Google is known for its cutting-edge technology and innovative projects.
They have a strong focus on employee well-being and work-life balance.
Google offers opportunities for career growth and development.
The company has a diverse and inclusive work culture.
Google is a leader in the tech industry with a global presence.
Yes, I have worked in multiple teams in various projects.
Worked in a team of developers to create a new software application
Collaborated with designers, testers, and project managers to meet project deadlines
Participated in daily stand-up meetings to discuss progress and roadblocks
Yes, they are similar.
All 8 metal balls are of the same material.
They have the same size and weight.
They have the same physical properties.
They are interchangeable in any given situation.
C is a procedural programming language while C++ is an object-oriented programming language.
C is a low-level language while C++ is a high-level language.
C++ supports object-oriented programming concepts like classes, inheritance, and polymorphism.
C++ has better support for exception handling and templates.
C++ is more complex than C and requires more memory.
C++ is used for developing applications like video games, while...
Structures are arrangements of elements that form a framework or framework-like support.
Structures can be found in various fields such as engineering, architecture, and biology.
They can be made of different materials such as steel, wood, or bone.
Examples include bridges, buildings, and the skeletal system.
Structures can be designed to withstand different types of forces such as compression, tension, or bending.
Three steps for using functions in C.
Declare the function with its return type, name, and parameters.
Define the function by writing the code for it.
Call the function by using its name and passing arguments if necessary.
The limit for the number of arguments passed to functions is not fixed. Arrays or structures can be used to pass more parameters.
The limit for the number of arguments passed to functions is not fixed and depends on the programming language and system architecture.
In C programming language, there is no limit on the number of arguments that can be passed to a function.
In Java, the maximum number of arguments that can be ...
if else is used for simple conditions while switch case is used for multiple conditions.
if else is a sequential decision-making statement while switch case is a multi-branch decision-making statement
if else is used when there are only a few conditions to be checked while switch case is used when there are multiple conditions to be checked
if else can have multiple conditions in a single statement while switch case can o...
Member functions are functions that are defined inside a class and can access the class's private and protected members.
Member functions are also known as methods.
They can be used to manipulate the data members of an object.
They can be overloaded, meaning multiple functions with the same name but different parameters can exist within a class.
They can be declared as const, meaning they do not modify the object's state.
E...
Find the output of c=++a+b-- where a=5 and b=4.
The value of a is incremented by 1 before the addition operation
The value of b is decremented by 1 after the addition operation
The final value of c is 10
The value of a becomes 6 and the value of b becomes 3
10 plants can be planted in 5 rows with 4 plants in each row.
Divide the plants into groups of 4.
Arrange the groups in 5 rows.
Each row will have 4 plants.
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for polymorphism and inheritance.
C++ has a standard template library (STL) which C does not have.
C++ allows function overloading while C does not.
C++ has exception handling while C does not.
For loop is used for iterating over a sequence while while loop is used for iterating until a condition is met.
For loop is used when the number of iterations is known beforehand
While loop is used when the number of iterations is not known beforehand
For loop is faster than while loop for iterating over a sequence
While loop is useful for iterating until a specific condition is met
For loop can be used with range() functio...
To reverse a string without using any looping and inbuilt functions, we can use recursion.
Create a function that takes a string as input.
If the length of the string is 0 or 1, return the string.
Otherwise, call the function recursively with the substring starting from the second character and concatenate the first character at the end.
Return the reversed string.
Example: reverseString('hello') returns 'olleh'.
A priority queue can be implemented using a single queue or multiple queues.
One approach is to use a single queue and assign priorities to elements using a separate data structure.
Another approach is to use multiple queues, each representing a different priority level.
For example, if there are three priority levels, three queues can be used to implement the priority queue.
An array of objects can be used to implement a heterogeneous array.
Each element in the array can be an object that represents a different data type.
The objects can have different properties and methods based on their respective data types.
For example, an element can be an object representing a string with a 'value' property and a 'length' method.
Developed a web-based inventory management system for a retail company.
Used HTML, CSS, and JavaScript for the front-end development.
Implemented a RESTful API using Node.js and Express for the back-end.
Utilized a MySQL database to store and manage inventory data.
Implemented features like product search, order management, and reporting.
Ensured data security and user authentication using encryption and JWT.
Collaborated wi...
The missing rupee is not actually missing. The calculation is misleading and does not account for the total amount paid.
The initial amount paid by each person was Rs.10, totaling Rs.30.
The owner gave them a discount of Rs.5, so they paid Rs.25 in total.
The broker took Rs.2, leaving them with Rs.23.
When the broker returned Rs.1 to each person, they each received Rs.1 back, totaling Rs.3.
So, the total amount paid by the ...
Inheritance in Java allows a class to inherit properties and methods from another class.
Inheritance is achieved using the 'extends' keyword.
The class that is being inherited from is called the superclass or parent class.
The class that inherits from the superclass is called the subclass or child class.
Subclasses can access the public and protected members of the superclass.
Inheritance promotes code reusability and allow...
A program to check if a given number is a palindrome or not.
Convert the number to a string.
Reverse the string and compare it with the original string.
If they are equal, the number is a palindrome.
If not, the number is not a palindrome.
Normalisation is the process of organizing data in a database to reduce redundancy and improve data integrity.
It involves breaking down a table into smaller tables and defining relationships between them.
Normalization helps to eliminate data inconsistencies and anomalies.
There are different levels of normalization, with each level having specific rules to follow.
For example, first normal form (1NF) requires that each t...
Yes, I am ready to relocate anywhere in India or outside upon company needs.
I am open to exploring new locations and cultures.
I understand that relocation may be necessary for career growth and opportunities.
I am adaptable and willing to adjust to new environments.
I have experience working in diverse teams and can easily integrate into new settings.
I would be ready to accept a project in Java even if I was trained in DotNet earlier.
I have a strong foundation in programming principles and concepts, which can be applied to any language.
I am confident in my ability to quickly learn and adapt to new technologies.
I have experience working with multiple programming languages and frameworks.
I can leverage my knowledge of DotNet to understand similar concepts in Java.
I a...
I want to join Sapient because of its reputation for innovative projects and collaborative work environment.
Sapient is known for working on cutting-edge projects that push the boundaries of technology
I value the collaborative work environment at Sapient, where team members support each other to achieve success
I am impressed by Sapient's commitment to professional development and growth opportunities for employees
My expectations from Sapient
I expect Sapient to provide a challenging and innovative work environment
I expect Sapient to offer opportunities for professional growth and learning
I expect Sapient to have a collaborative and supportive team culture
I expect Sapient to provide competitive compensation and benefits
I expect Sapient to have a strong focus on quality and delivering excellent software solutions
I appeared for an interview before Nov 2016.
based on 1 review
Rating in categories
Software Engineer
29
salaries
| ₹3 L/yr - ₹10 L/yr |
Software Developer
25
salaries
| ₹2.4 L/yr - ₹6.5 L/yr |
Desktop Support Engineer
12
salaries
| ₹1.2 L/yr - ₹3.2 L/yr |
GIS Engineer
12
salaries
| ₹1 L/yr - ₹3 L/yr |
Softwaretest Engineer
12
salaries
| ₹1.8 L/yr - ₹6.7 L/yr |
Genpact
DXC Technology
Sutherland Global Services
Optum Global Solutions