Filter interviews by
Asked to create a generics
Generics to sum of integer and float
The function checks if a string is a substring of another string.
Use the built-in string methods like 'indexOf' or 'includes' to check for substring.
If the language supports regular expressions, you can also use them to find substrings.
Consider the case sensitivity of the strings when comparing.
Code to multiply two matrices of dimension M*N and N*K.
Create a result matrix of dimension M*K.
Iterate through each row of the first matrix.
For each row, iterate through each column of the second matrix.
For each element in the row of the first matrix, multiply it with the corresponding element in the column of the second matrix.
Sum up the products and store the result in the corresponding position of the result matrix.
...
SQL query to perform matrix multiplication using two tables with row, col, and value columns.
Use JOIN operation to combine the two tables based on matching row and col values.
Use GROUP BY clause to group the result by row and col values.
Use SUM function to calculate the dot product of corresponding row and col values.
Use INSERT INTO statement to insert the result into a new table.
Prototype in JavaScript is an object that is associated with every function and object by default.
Prototype is used to add properties and methods to an object.
It allows objects to inherit properties and methods from other objects.
Modifying the prototype of a function affects all instances of that function.
Prototypes can be used to create new objects based on existing objects.
The prototype chain allows for property and
Classes in JavaScript are written using the class keyword.
Use the class keyword followed by the class name to define a class.
Use the constructor method to initialize class properties.
Add methods to the class using the class prototype.
Use the new keyword to create an instance of the class.
The number of different ways to climb a ladder of N steps by taking 1 or 2 steps at a time.
This is a classic problem that can be solved using dynamic programming.
The number of ways to climb N steps is equal to the sum of the number of ways to climb N-1 steps and N-2 steps.
The base cases are when N is 0 or 1, where there is only 1 way to climb the ladder.
For example, for N=4, there are 5 different ways: [1, 1, 1, 1], [1
Print a square matrix in spiral order
Start by defining the boundaries of the matrix
Iterate through the matrix in a spiral pattern, printing each element
Adjust the boundaries after each iteration to move inward
Repeat until all elements are printed
Retrieve the second highest marks obtained by each student from a table with student name, subject, and marks.
Use the RANK() function to assign a rank to each row based on the marks in descending order.
Filter the result to only include rows with rank 2 for each student.
Group the result by student name to get the second highest marks for each student.
The .live() method attaches an event handler to the current and future elements, while .delegate() attaches an event handler to a parent element.
The .live() method is deprecated in newer versions of jQuery.
The .delegate() method is preferred over .live() for performance reasons.
Both methods are used to handle events for dynamically added elements.
Example: $(document).live('click', 'button', function() { ... });
Example:...
Chaining in jQuery allows multiple methods to be called on a single element in a single line of code.
Chaining simplifies code and improves readability.
Each method in the chain operates on the result of the previous method.
The chain ends with a method that does not return a jQuery object.
Example: $('div').addClass('highlight').fadeOut();
A callback function is a function that is passed as an argument to another function and is executed later.
Callback functions are commonly used in event-driven programming.
They allow asynchronous execution of code.
Callback functions can be used to handle responses from APIs or user interactions.
They can be anonymous functions or named functions.
Example: setTimeout(function() { console.log('Hello!'); }, 1000);
The .bind() function in jQuery is used to attach an event handler function to one or more elements.
It allows you to specify the event type and the function to be executed when the event occurs.
The .bind() function can be used to bind multiple events to the same element.
It can also be used to pass additional data to the event handler function.
The .bind() function is deprecated in jQuery version 3.0 and above. It is reco
The angle between the hour and minute hands of a clock can be calculated using a formula.
The hour hand moves 30 degrees per hour and 0.5 degrees per minute.
The minute hand moves 6 degrees per minute.
Calculate the angle between the two hands using the formula: |30H - 11M/2|, where H is the hour and M is the minute.
Yes, it is possible to create a slideshow without using JavaScript.
Use CSS animations and transitions to create the slideshow.
Use HTML and CSS to structure and style the slideshow.
Utilize keyframe animations to create the slide transitions.
Use radio buttons or checkboxes to control the slideshow navigation.
Apply the :target pseudo-class to create a simple slideshow without JavaScript.
The men can take turns riding the scooter, allowing them to reach point B faster.
The men can form a queue and take turns riding the scooter.
The person riding the scooter can drop it off at a certain point and the next person can pick it up.
The scooter can be passed along the line of men until everyone reaches point B.
I applied via Campus Placement and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Oct 2019. There were 3 interview rounds.
I applied via Company Website and was interviewed before May 2020. There were 4 interview rounds.
I applied via tcs and was interviewed before Jun 2020. There were 4 interview rounds.
I applied via Referral and was interviewed before Sep 2020. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed before Oct 2020. There was 1 interview round.
Abstraction is the process of hiding complex implementation details and exposing only the necessary information.
Abstraction helps in reducing complexity and increasing efficiency.
It allows us to focus on the essential features of an object or system.
Abstraction can be achieved through abstract classes, interfaces, and encapsulation.
For example, a car can be abstracted as a vehicle with certain properties and methods.
Ab...
Hiding implementation means keeping the internal details of a class or function hidden from the outside world.
It is a fundamental principle of object-oriented programming.
It helps in achieving encapsulation and abstraction.
It prevents the user from accessing the internal workings of a class or function.
Examples include private variables and methods in a class.
It allows for easier maintenance and modification of code.
It...
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Hard
Exam was in the morning in 2nd shift. It was a difficult .
You need to determine the sum of even digits and odd digits separately from a given integer.
The first line of input is an integer T
representing the number of test c...
Implement a function to find the sum of even and odd digits separately in a given integer.
Iterate through each digit of the integer and check if it is even or odd.
Keep track of the sum of even and odd digits separately.
Return the sums of even and odd digits for each test case.
Round duration - 30 minutes
Round difficulty - Hard
It was in the morning and there were approx 500 candidates for interview. Interviewers were very nice and cooperative.
SQL questions related to joins
Types of joins in SQL (inner join, left join, right join, full outer join)
Difference between inner join and outer join
Common join conditions (using ON vs WHERE)
Handling NULL values in joins
Performance considerations when using joins
Round duration - 10 minutes
Round difficulty - Medium
It was in the morning and interviewer was very nice and polite.
Tip 1 : Be confident and speak politely with a smile.
Tip 2 : Groom yourself very well in a professional way.
Tip 3 : Prepare everything mentioned in your resume.
Tip 4 : Also maintain positive body language as everything get noticed in an interview.
Tip 5 : Try to work on projects and prepare it very well including synopsis of project.
Tip 6 : Prepare core subjects and important topics.
Tip 7 : prepare company related questions as well.
Tip 8 : Maintain eye contact with interviewer.
Tip 1 : Mention Projects.
Tip 2 : Mention accurate and true things only.
Tip 3 : Resume should be neat and clean.
Tip 4 : Mention your achievements in resume.
Tip 5 : Resume should not be very lengthy, it should be precise.
Tip 6 : Prepare your resume by following a proper format.
Tip 7 : Carry your resume in a file.
based on 2 interviews
Interview experience
Accountant
2.5k
salaries
| ₹0.2 L/yr - ₹3.3 L/yr |
fresher
1.4k
salaries
| ₹0.2 L/yr - ₹4 L/yr |
Project Manager
356
salaries
| ₹3.5 L/yr - ₹20 L/yr |
QA
38
salaries
| ₹1.5 L/yr - ₹5.1 L/yr |
Assistant Manager Quality
17
salaries
| ₹3 L/yr - ₹10 L/yr |
MakeMyTrip
Yatra
Cleartrip
Goibibo